Class ResumeInstanceExecutor
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.commands.processor.executors.ResumeInstanceExecutor
-
- All Implemented Interfaces:
CommandExecutor
public class ResumeInstanceExecutor extends Object implements CommandExecutor
Executor of theRESUME_INSTANCE
command.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Command command)
Resumes an instance of Task Reactor.static ResumeInstanceExecutor
getInstance(Session session, Identifier instanceName)
Creates new instance ofResumeInstanceExecutor
-
-
-
Method Detail
-
getInstance
public static ResumeInstanceExecutor getInstance(Session session, Identifier instanceName)
Creates new instance ofResumeInstanceExecutor
- Parameters:
session
- sessioninstanceName
- name of Task Reactor instance- Returns:
- new ResumeInstanceExecutor object
-
execute
public void execute(Command command)
Resumes an instance of Task Reactor. It starts all Task Reactor's active worker tasks and changes isActive flag in INSTANCE_REGISTRY table.- Specified by:
execute
in interfaceCommandExecutor
- Parameters:
command
- command to be executed - for RESUME_INSTANCE command no payload is needed
-
-