public class DBLiteWorkflowStoreService extends LiteWorkflowStoreService implements Instrumentable
LiteWorkflowStoreService.LiteActionHandler, LiteWorkflowStoreService.LiteControlNodeHandler, LiteWorkflowStoreService.LiteDecisionHandler
Modifier and Type | Field and Description |
---|---|
static String |
CONF_METRICS_INTERVAL_MINS |
static String |
CONF_METRICS_INTERVAL_WINDOW |
static String |
CONF_PREFIX |
CONF_NODE_DEF_VERSION, CONF_PREFIX_USER_RETRY, CONF_USER_RETRY_ERROR_CODE, CONF_USER_RETRY_ERROR_CODE_EXT, CONF_USER_RETRY_INTEVAL, CONF_USER_RETRY_MAX, NODE_DEF_VERSION_0, NODE_DEF_VERSION_1, USER_ERROR_CODE_ALL
TRANSIENT_VAR_PREFIX, WORKFLOW_BEAN
DEFAULT_LOCK_TIMEOUT, lockTimeout
Constructor and Description |
---|
DBLiteWorkflowStoreService() |
Modifier and Type | Method and Description |
---|---|
WorkflowStore |
create()
Return a workflow store instance with a fresh transaction.
|
<S extends Store> |
create(S store)
Return a workflow store instance with an existing transaction.
|
void |
destroy()
Destroy the service.
|
WorkflowLib |
getWorkflowLibWithNoDB()
Return the workflow lib without DB connection.
|
void |
init(Services services)
Initialize the service.
|
void |
instrument(Instrumentation instr)
Set the system instrumentation.
|
getNodeDefDefaultVersion, getUserRetryErrorCode, liteExecute, liteFail, liteKill
getActionsToFail, getActionsToKill, getActionsToStart, getInterface
public static final String CONF_PREFIX
public static final String CONF_METRICS_INTERVAL_MINS
public static final String CONF_METRICS_INTERVAL_WINDOW
public DBLiteWorkflowStoreService()
public void init(Services services) throws ServiceException
Service
Service
singleton at start up time.init
in interface Service
services
- services singleton initializing the service.ServiceException
- thrown if the service could not initialize.public void destroy()
Service
Service
singleton at shutdown time.public WorkflowLib getWorkflowLibWithNoDB()
getWorkflowLibWithNoDB
in class WorkflowStoreService
public WorkflowStore create() throws StoreException
WorkflowStoreService
create
in class WorkflowStoreService
StoreException
- thrown if the workflow store could not be created.public <S extends Store> WorkflowStore create(S store) throws StoreException
WorkflowStoreService
create
in class WorkflowStoreService
StoreException
- thrown if the workflow store could not be created.public void instrument(Instrumentation instr)
Instrumentable
instrument
in interface Instrumentable
instr
- system instrumentation.Copyright © 2015 Apache Software Foundation. All Rights Reserved.