Class PauseInstanceExecutor
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.commands.processor.executors.PauseInstanceExecutor
-
- All Implemented Interfaces:
CommandExecutor
public class PauseInstanceExecutor extends Object implements CommandExecutor
Executor of thePAUSE_INSTANCEcommand.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Command command)Pauses an instance of Task Reactor.static PauseInstanceExecutorgetInstance(Session session, Identifier instanceName)Creates new instance ofPauseInstanceExecutor.
-
-
-
Method Detail
-
getInstance
public static PauseInstanceExecutor getInstance(Session session, Identifier instanceName)
Creates new instance ofPauseInstanceExecutor.- Parameters:
session- Snowpark session objectinstanceName- name of the Task Reactor instance- Returns:
- new executor instance
-
execute
public void execute(Command command)
Pauses an instance of Task Reactor. It suspends all Task Reactor tasks: worker tasks and dispatcher task and changes isActive flag in INSTANCE_REGISTRY table.- Specified by:
executein interfaceCommandExecutor- Parameters:
command- command to be executed - for PAUSE_INSTANCE command no payload is needed
-
-