Interface InstanceRegistryRepository
-
public interface InstanceRegistryRepository
Repository for managing TASK_REACTOR.INSTANCE_REGISTRY table
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskReactorInstance
fetch(Identifier instanceId)
Fetches a Task Reactor instance with given identifierList<TaskReactorInstance>
fetchAll()
Fetches all Task Reactor instances registered in the connectorList<TaskReactorInstance>
fetchAllInitialized()
Fetches all initialized Task Reactor instances registered in the connectorstatic InstanceRegistryRepository
getInstance(Session session)
Creates a new instance ofInstanceRegistryRepository
void
setActive(Identifier instanceId)
Changes isActive flag to true for given instancevoid
setInactive(Identifier instanceId)
Changes isActive flag to false for given instance
-
-
-
Method Detail
-
fetchAll
List<TaskReactorInstance> fetchAll()
Fetches all Task Reactor instances registered in the connector- Returns:
- list of instances
-
fetchAllInitialized
List<TaskReactorInstance> fetchAllInitialized()
Fetches all initialized Task Reactor instances registered in the connector- Returns:
- list of instances
-
fetch
TaskReactorInstance fetch(Identifier instanceId)
Fetches a Task Reactor instance with given identifier- Parameters:
instanceId
- id of an instance- Returns:
- instance object when an instance with given id exists, otherwise null
-
setInactive
void setInactive(Identifier instanceId)
Changes isActive flag to false for given instance- Parameters:
instanceId
- id of an instance
-
setActive
void setActive(Identifier instanceId)
Changes isActive flag to true for given instance- Parameters:
instanceId
- id of an instance
-
getInstance
static InstanceRegistryRepository getInstance(Session session)
Creates a new instance ofInstanceRegistryRepository
- Parameters:
session
- session- Returns:
- new instance
-
-