Package org.copperengine.management
Interface PersistentProcessingEngineMXBean
-
- All Superinterfaces:
ProcessingEngineMXBean
public interface PersistentProcessingEngineMXBean extends ProcessingEngineMXBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteBroken(java.lang.String workflowInstanceId)Entirely deletes the provided worklow instance if it is in the error state.voiddeleteFiltered(WorkflowInstanceFilter filter)voiddeleteWaiting(java.lang.String workflowInstanceId)DBStorageMXBeangetDBStorage()java.lang.StringgetEngineClusterId()Gets EngineClusterId to make it possible grouping engines into engine cluster.voidrestart(java.lang.String workflowInstanceId)Trigger restart a workflow instance that is in the error state.voidrestartAll()voidrestartFiltered(WorkflowInstanceFilter filter)Trigger restart all workflow instances that are in error state.-
Methods inherited from interface org.copperengine.management.ProcessingEngineMXBean
countWorkflowInstances, getDependencyInjectorType, getDequeuedCount, getEngineId, getEngineType, getErrorCount, getFinishedCount, getInvalidCount, getNumberOfWorkflowInstances, getProcessorPools, getRunningCount, getState, getStatisticsCollectorType, getWaitingCount, getWorkflowInstanceStates, getWorkflowRepository, queryActiveWorkflowInstance, queryActiveWorkflowInstances, queryEngineActivity, queryWorkflowInstance, queryWorkflowInstances, queryWorkflowInstances
-
-
-
-
Method Detail
-
restart
void restart(java.lang.String workflowInstanceId) throws java.lang.ExceptionTrigger restart a workflow instance that is in the error state. If workflow id is unknown or the workflow is not in broken state, nothing happens.- Parameters:
workflowInstanceId- workflow instance id as string- Throws:
java.lang.Exception- When some database operations fail, i.e. connection lost, transaction problems, ..
-
restartFiltered
void restartFiltered(WorkflowInstanceFilter filter) throws java.lang.Exception
Trigger restart all workflow instances that are in error state.- Parameters:
filter- the WorkflowInstanceFilter- Throws:
java.lang.Exception- When some database operations fail, i.e. connection lost, transaction problems, ..
-
restartAll
void restartAll() throws java.lang.Exception- Throws:
java.lang.Exception
-
deleteBroken
void deleteBroken(java.lang.String workflowInstanceId) throws java.lang.ExceptionEntirely deletes the provided worklow instance if it is in the error state. If it currently holds a lock, the lock is released.- Parameters:
workflowInstanceId- workflow instance id as string- Throws:
java.lang.Exception- when the delete operation fails
-
deleteWaiting
void deleteWaiting(java.lang.String workflowInstanceId) throws java.lang.Exception- Throws:
java.lang.Exception
-
deleteFiltered
void deleteFiltered(WorkflowInstanceFilter filter) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDBStorage
DBStorageMXBean getDBStorage()
-
getEngineClusterId
java.lang.String getEngineClusterId()
Gets EngineClusterId to make it possible grouping engines into engine cluster. Engines in one engine cluster should use same Database, in other case grouping will show incorrect data in copper monitoring- Returns:
- the engineClusterId
-
-