|
SMILA 1.0 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.internal.ZkUpdateWatcher
public class ZkUpdateWatcher
Uses ZooKeeper to coordinate workflow updating in a SMILA cluster.
| Constructor Summary | |
|---|---|
ZkUpdateWatcher()
|
|
| Method Summary | |
|---|---|
protected void |
activate()
activate the service. |
void |
checkWorkflowVersions()
compare cluster versions of workflows with local versions and update local deployment. |
void |
initialize()
connect to Zookeeper and create root node. |
void |
registerProcessor(WorkflowProcessor processor)
register a workflow processor to be notified on updates. |
void |
setZkService(ZooKeeperService zkService)
service reference bind method. |
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 |
unsetZkService(ZooKeeperService zkService)
service reference unbind method. |
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 ZkUpdateWatcher()
| Method Detail |
|---|
public void setZkService(ZooKeeperService zkService)
public void unsetZkService(ZooKeeperService zkService)
public void registerProcessor(WorkflowProcessor processor)
WorkflowUpdateWatcher
registerProcessor in interface WorkflowUpdateWatcherprotected void activate()
public void initialize()
throws KeeperException
KeeperExceptionpublic boolean startWatching()
WorkflowUpdateWatcher
startWatching in interface WorkflowUpdateWatcherpublic void stopWatching()
WorkflowUpdateWatcher
stopWatching in interface WorkflowUpdateWatcherpublic void startPolling()
WorkflowUpdateWatcher
startPolling in interface WorkflowUpdateWatcherpublic void startPolling(int pollIntervalSeconds)
WorkflowUpdateWatcher
startPolling in interface WorkflowUpdateWatcherpublic void stopPolling()
WorkflowUpdateWatcher
stopPolling in interface WorkflowUpdateWatcher
public void workflowLoadedOnStart(java.lang.String workflowName,
java.lang.String timestamp)
throws ProcessingException
WorkflowUpdateWatcher
workflowLoadedOnStart in interface WorkflowUpdateWatcherProcessingException
public void workflowUpdated(java.lang.String workflowName,
java.lang.String timestamp)
throws ProcessingException
WorkflowUpdateWatcher
workflowUpdated in interface WorkflowUpdateWatcherProcessingException
public void workflowDeleted(java.lang.String workflowName)
throws ProcessingException
WorkflowUpdateWatcher
workflowDeleted in interface WorkflowUpdateWatcherProcessingExceptionpublic void checkWorkflowVersions()
WorkflowUpdateWatcher
checkWorkflowVersions in interface WorkflowUpdateWatcher
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||