|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.processing.bpel.WorkflowUpdateWatcher
public class WorkflowUpdateWatcher
Uses ZooKeeper to coordinate workflow updating in a SMILA cluster.
| Constructor Summary | |
|---|---|
WorkflowUpdateWatcher(ZooKeeperService zkService,
WorkflowProcessor processor)
create instance. |
|
| Method Summary | |
|---|---|
void |
checkWorkflowVersions()
compare cluster versions of workflows with local versions and update local deployment. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkflowUpdateWatcher(ZooKeeperService zkService,
WorkflowProcessor processor)
throws ProcessingException
ProcessingException - error initializing the root node.| Method Detail |
|---|
public boolean startWatching()
public void stopWatching()
public void startPolling()
public void startPolling(int pollIntervalSeconds)
public void stopPolling()
public void workflowLoadedOnStart(java.lang.String workflowName,
java.lang.String timestamp)
throws ProcessingException
ProcessingException
public void workflowUpdated(java.lang.String workflowName,
java.lang.String timestamp)
throws ProcessingException
ProcessingException
public void workflowDeleted(java.lang.String workflowName)
throws ProcessingException
ProcessingExceptionpublic void checkWorkflowVersions()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||