public interface ScheduledJobManager
ScheduledJob
instances. There is only ever
one active ScheduledJobManager in the cluster (the master). If the current master fails, another node may become active (master/slave HA config).Modifier and Type | Method and Description |
---|---|
Map<String,SystemEventFactory> |
getEventFactories()
Retrieve the list of factories responsible for creating
SystemEvent instances
upon job execution. |
DatabaseSystemEventNode |
getEventNode()
This ScheduledJobManager instance is also a node in the cluster.
|
long |
getJobThreadPoolCount()
The number of Quartz thread available for jobs execution.
|
long |
getMasterNodeHeartbeatIntervalSeconds()
The amount of time between each heartbeat update for this node, if active.
|
long |
getNodePurgeIntervalSeconds()
The amount of time between each master purge attempt.
|
long |
getNodePurgeThresholdSeconds()
The amount of time an active master is allowed to not update it's heartbeat status before being a purge candidate.
|
org.quartz.Scheduler |
getScheduler()
Retrieve the internal Quartz scheduler instance.
|
boolean |
isMaster() |
boolean |
isPause()
Whether this node is paused.
|
void |
reset()
Programatically remove this node from master/active status.
|
void |
setEventFactories(Map<String,SystemEventFactory> eventFactories) |
void |
setEventNode(DatabaseSystemEventNode eventNode) |
void |
setJobThreadPoolCount(long jobThreadPoolCount) |
void |
setMaster(boolean master) |
void |
setMasterNodeHeartbeatIntervalSeconds(long masterNodeHeartbeatInterval) |
void |
setNodePurgeIntervalSeconds(long masterNodePurgeInterval) |
void |
setNodePurgeThresholdSeconds(long masterNodePurgeThreshold) |
void |
setPause(boolean pause) |
long getMasterNodeHeartbeatIntervalSeconds()
void setMasterNodeHeartbeatIntervalSeconds(long masterNodeHeartbeatInterval)
long getNodePurgeThresholdSeconds()
void setNodePurgeThresholdSeconds(long masterNodePurgeThreshold)
long getNodePurgeIntervalSeconds()
void setNodePurgeIntervalSeconds(long masterNodePurgeInterval)
boolean isPause()
void setPause(boolean pause)
long getJobThreadPoolCount()
void setJobThreadPoolCount(long jobThreadPoolCount)
void reset()
boolean isMaster()
void setMaster(boolean master)
Map<String,SystemEventFactory> getEventFactories()
SystemEvent
instances
upon job execution. Jobs, when fired, result in events. Event are then consumed, which is the end goal.void setEventFactories(Map<String,SystemEventFactory> eventFactories)
org.quartz.Scheduler getScheduler()
DatabaseSystemEventNode getEventNode()
DatabaseSystemEventNode
instance.void setEventNode(DatabaseSystemEventNode eventNode)
Copyright © 2019. All rights reserved.