Class InMemoryTaskRef
- java.lang.Object
-
- com.snowflake.connectors.common.task.InMemoryTaskRef
-
- All Implemented Interfaces:
com.snowflake.connectors.common.task.TaskRef
public class InMemoryTaskRef extends Object implements com.snowflake.connectors.common.task.TaskRef
In memory implementation ofTaskRef
.
-
-
Constructor Summary
Constructors Constructor Description InMemoryTaskRef(com.snowflake.connectors.common.object.ObjectName taskName, Map<com.snowflake.connectors.common.object.ObjectName,com.snowflake.connectors.common.task.TaskProperties> store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
alterSchedule(String schedule)
void
alterScheduleIfExists(String schedule)
void
alterWarehouse(String warehouse)
void
alterWarehouseIfExists(String warehouse)
boolean
checkIfExists()
void
drop()
void
dropIfExists()
void
execute()
com.snowflake.connectors.common.task.TaskProperties
fetch()
void
grantMonitorPrivilegeToRole(String role)
com.snowflake.connectors.common.object.ObjectName
name()
void
resume()
void
resumeIfExists()
void
suspend()
void
suspendIfExists()
-
-
-
Constructor Detail
-
InMemoryTaskRef
public InMemoryTaskRef(com.snowflake.connectors.common.object.ObjectName taskName, Map<com.snowflake.connectors.common.object.ObjectName,com.snowflake.connectors.common.task.TaskProperties> store)
-
-
Method Detail
-
name
public com.snowflake.connectors.common.object.ObjectName name()
- Specified by:
name
in interfacecom.snowflake.connectors.common.task.TaskRef
-
execute
public void execute()
- Specified by:
execute
in interfacecom.snowflake.connectors.common.task.TaskRef
-
checkIfExists
public boolean checkIfExists()
- Specified by:
checkIfExists
in interfacecom.snowflake.connectors.common.task.TaskRef
-
resume
public void resume()
- Specified by:
resume
in interfacecom.snowflake.connectors.common.task.TaskRef
-
resumeIfExists
public void resumeIfExists()
- Specified by:
resumeIfExists
in interfacecom.snowflake.connectors.common.task.TaskRef
-
suspend
public void suspend()
- Specified by:
suspend
in interfacecom.snowflake.connectors.common.task.TaskRef
-
suspendIfExists
public void suspendIfExists()
- Specified by:
suspendIfExists
in interfacecom.snowflake.connectors.common.task.TaskRef
-
drop
public void drop()
- Specified by:
drop
in interfacecom.snowflake.connectors.common.task.TaskRef
-
dropIfExists
public void dropIfExists()
- Specified by:
dropIfExists
in interfacecom.snowflake.connectors.common.task.TaskRef
-
alterSchedule
public void alterSchedule(String schedule)
- Specified by:
alterSchedule
in interfacecom.snowflake.connectors.common.task.TaskRef
-
alterScheduleIfExists
public void alterScheduleIfExists(String schedule)
- Specified by:
alterScheduleIfExists
in interfacecom.snowflake.connectors.common.task.TaskRef
-
alterWarehouse
public void alterWarehouse(String warehouse)
- Specified by:
alterWarehouse
in interfacecom.snowflake.connectors.common.task.TaskRef
-
alterWarehouseIfExists
public void alterWarehouseIfExists(String warehouse)
- Specified by:
alterWarehouseIfExists
in interfacecom.snowflake.connectors.common.task.TaskRef
-
grantMonitorPrivilegeToRole
public void grantMonitorPrivilegeToRole(String role)
- Specified by:
grantMonitorPrivilegeToRole
in interfacecom.snowflake.connectors.common.task.TaskRef
-
fetch
public com.snowflake.connectors.common.task.TaskProperties fetch()
- Specified by:
fetch
in interfacecom.snowflake.connectors.common.task.TaskRef
-
-