Cluster

Description

Functions to operate on the cluster

Functions

NameSignature and Synopsis
createSchedulervoid createScheduler(String schedulerName, long pollInterval, long refreshAhead)
Creates a cluster wide scheduler for time dependent jobs
createWorkManagervoid createWorkManager(String name, int threadPool)
Creates a work manager to schedule background jobs
getAgentIdint getAgentId()
Returns the unique id of the agent
getAgentNameSring getAgentName()
Returns the agent name
getClusterNameSring getClusterName()
Returns the name of the BE cluster that this agent is connected
getSiteIdlong getSiteId()
Returns the site-id of the cluster
isEventRecoveredboolean isEventRecovered(SimpleEvent evt)
This function returns true if the passed event is received from another agent in the cluster. The function will return false if the event was created in this agent.
registerStateMachineTimeoutCallbackvoid registerStateMachineTimeoutCallback(String entityURI, String ruleFunctionURI)
Register a rule function to pre-process state machine timeouts. The pre-processor should be used to load and/or lock associated objects.
scheduleEventvoid scheduleEvent(String schedulerName, String workKey, SimpleEvent et, long scheduledTime)
Schedules a simple event to be sent to the default destination after scheduledTime
stopWorkManagervoid stopWorkManager(String name)
Shuts down the work manager. This call will wait for all the current jobs to finish