Interface SchedulerCreator
-
public interface SchedulerCreator
Creator for instances ofScheduler
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectorResponse
createScheduler()
Creates a new scheduler instance.static SchedulerCreator
getInstance(Session session)
Gets a new instance of the default scheduler creator implementation.
-
-
-
Method Detail
-
createScheduler
ConnectorResponse createScheduler()
Creates a new scheduler instance.- Returns:
- a response with the code
OK
if the creation was successful, otherwise a response with an error code and an error message
-
getInstance
static SchedulerCreator getInstance(Session session)
Gets a new instance of the default scheduler creator implementation.Default implementation of the creator uses:
- a default implementation of
ConnectorConfigurationService
- a default implementation of
TaskRepository
- a default implementation of
TaskLister
The default scheduler creation process consists of:
- creation of
STATE.SCHEDULER_TASK
task - granting of
MONITOR
task privilege to theADMIN
application role - resumption of the task
- Parameters:
session
- Snowpark session object- Returns:
- a new creator instance
- a default implementation of
-
-