Class InMemoryTaskManagement
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.InMemoryTaskManagement
-
- All Implemented Interfaces:
com.snowflake.connectors.common.task.TaskLister
,com.snowflake.connectors.common.task.TaskRepository
,com.snowflake.connectors.taskreactor.TaskReactorExistenceVerifier
public class InMemoryTaskManagement extends Object implements com.snowflake.connectors.common.task.TaskRepository, com.snowflake.connectors.common.task.TaskLister, com.snowflake.connectors.taskreactor.TaskReactorExistenceVerifier
In memory implementation ofTaskRepository
andTaskLister
.
-
-
Constructor Summary
Constructors Constructor Description InMemoryTaskManagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
com.snowflake.connectors.common.task.TaskRef
create(com.snowflake.connectors.common.task.TaskDefinition definition, boolean replace, boolean ifNotExists)
com.snowflake.connectors.common.task.TaskRef
fetch(com.snowflake.connectors.common.object.ObjectName objectName)
Map<com.snowflake.connectors.common.object.ObjectName,com.snowflake.connectors.common.task.TaskProperties>
fetchAll()
boolean
isTaskReactorConfigured()
Optional<com.snowflake.connectors.common.task.TaskProperties>
showTask(com.snowflake.connectors.common.object.ObjectName taskName)
List<com.snowflake.connectors.common.task.TaskProperties>
showTasks(String schema)
List<com.snowflake.connectors.common.task.TaskProperties>
showTasks(String schema, String like)
-
-
-
Method Detail
-
create
public com.snowflake.connectors.common.task.TaskRef create(com.snowflake.connectors.common.task.TaskDefinition definition, boolean replace, boolean ifNotExists)
- Specified by:
create
in interfacecom.snowflake.connectors.common.task.TaskRepository
-
fetch
public com.snowflake.connectors.common.task.TaskRef fetch(com.snowflake.connectors.common.object.ObjectName objectName)
- Specified by:
fetch
in interfacecom.snowflake.connectors.common.task.TaskRepository
-
clear
public void clear()
-
showTask
public Optional<com.snowflake.connectors.common.task.TaskProperties> showTask(com.snowflake.connectors.common.object.ObjectName taskName)
- Specified by:
showTask
in interfacecom.snowflake.connectors.common.task.TaskLister
-
showTasks
public List<com.snowflake.connectors.common.task.TaskProperties> showTasks(String schema)
- Specified by:
showTasks
in interfacecom.snowflake.connectors.common.task.TaskLister
-
showTasks
public List<com.snowflake.connectors.common.task.TaskProperties> showTasks(String schema, String like)
- Specified by:
showTasks
in interfacecom.snowflake.connectors.common.task.TaskLister
-
fetchAll
public Map<com.snowflake.connectors.common.object.ObjectName,com.snowflake.connectors.common.task.TaskProperties> fetchAll()
-
isTaskReactorConfigured
public boolean isTaskReactorConfigured()
- Specified by:
isTaskReactorConfigured
in interfacecom.snowflake.connectors.taskreactor.TaskReactorExistenceVerifier
-
-