SMILA 1.0 API documentation

org.eclipse.smila.processing.bpel
Interface WorkflowUpdateWatcher

All Known Implementing Classes:
ZkUpdateWatcher

public interface WorkflowUpdateWatcher

service interface for workflow update watchers.


Method Summary
 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.
 

Method Detail

registerProcessor

void registerProcessor(WorkflowProcessor processor)
register a workflow processor to be notified on updates.


startWatching

boolean startWatching()
install a ZK watch on the root node to get notifications about changes.

Returns:
true if watched was installed successfully

stopWatching

void stopWatching()
stop watching: ZK watch on root node will not be reinstalled. Does not remove a currently installed watch, so it's possible that remaining watches will still receive notifications after this call.


startPolling

void startPolling()
start polling for updates.


startPolling

void startPolling(int pollIntervalSeconds)
start polling for updates with custom interval.


stopPolling

void stopPolling()
stop polling for updates.


workflowLoadedOnStart

void workflowLoadedOnStart(java.lang.String workflowName,
                           java.lang.String timestamp)
                           throws ProcessingException
Initialize notification structure for workflow, call on initial load on service start. Does not trigger notifications for other nodes, just ensure that the node is created.

Throws:
ProcessingException

workflowUpdated

void workflowUpdated(java.lang.String workflowName,
                     java.lang.String timestamp)
                     throws ProcessingException
Send update notification, call on custom workflow creation or update.

Throws:
ProcessingException

workflowDeleted

void workflowDeleted(java.lang.String workflowName)
                     throws ProcessingException
Send delete notification, call on custom workflow remove.

Throws:
ProcessingException

checkWorkflowVersions

void checkWorkflowVersions()
compare cluster versions of workflows with local versions and update local deployment.


SMILA 1.0 API documentation