public interface WorkflowUpdateWatcher
Modifier and Type | Method and Description |
---|---|
void |
checkWorkflowVersions()
compare cluster versions of workflows with local versions and update local deployment.
|
void |
registerProcessor(WorkflowProcessor processor)
register a workflow processor to be notified on updates.
|
void |
startPolling()
start polling for updates.
|
void |
startPolling(int pollIntervalSeconds)
start polling for updates with custom interval.
|
boolean |
startWatching()
install a ZK watch on the root node to get notifications about changes.
|
void |
stopPolling()
stop polling for updates.
|
void |
stopWatching()
stop watching: ZK watch on root node will not be reinstalled.
|
void |
workflowDeleted(java.lang.String workflowName)
Send delete notification, call on custom workflow remove.
|
void |
workflowLoadedOnStart(java.lang.String workflowName,
java.lang.String timestamp)
Initialize notification structure for workflow, call on initial load on service start.
|
void |
workflowUpdated(java.lang.String workflowName,
java.lang.String timestamp)
Send update notification, call on custom workflow creation or update.
|
void registerProcessor(WorkflowProcessor processor)
boolean startWatching()
void stopWatching()
void startPolling()
void startPolling(int pollIntervalSeconds)
void stopPolling()
void workflowLoadedOnStart(java.lang.String workflowName, java.lang.String timestamp) throws ProcessingException
ProcessingException
void workflowUpdated(java.lang.String workflowName, java.lang.String timestamp) throws ProcessingException
ProcessingException
void workflowDeleted(java.lang.String workflowName) throws ProcessingException
ProcessingException
void checkWorkflowVersions()