| org.jboss.ha.jmx.HAServiceMBeanSupport org.jboss.ha.singleton.HASingletonSupport
All known Subclasses: org.jboss.ha.singleton.HASingletonController,
HASingletonSupport | public HASingletonSupport()(Code) | | Default CTOR
|
_stopOldMaster | public void _stopOldMaster()(Code) | | This method will be invoked twice by the local node
when it stops as well as by the remote
|
getRestartOnMerge | public boolean getRestartOnMerge()(Code) | | Gets whether this singleton will stop and restart itself if it is the
master and a cluster merge occurs.
A restart allows the service to reset any state that may
have gotten out-of-sync with the rest of the cluster while
the just-merged split was in effect.
true if a restart will occur, false otherwise |
isMasterNode | public boolean isMasterNode()(Code) | | true if this cluster node has the active mbean singleton, false otherwise |
makeThisNodeMaster | protected void makeThisNodeMaster()(Code) | | |
partitionTopologyChanged | public void partitionTopologyChanged(List newReplicants, int newViewID)(Code) | | When topology changes, a new master is elected based on the result
of the isDRMMasterReplica() call.
See Also: HAServiceMBeanSupport.partitionTopologyChanged(Listint) See Also: DistributedReplicantManager#isMasterReplica(String); |
restartMaster | protected void restartMaster()(Code) | | |
setRestartOnMerge | public void setRestartOnMerge(boolean restartOnMerge)(Code) | | Sets whether this singleton will stop and restart itself if it is the
master and a cluster merge occurs?
A restart allows the service to reset any state that may
have gotten out-of-sync with the rest of the cluster while
the just-merged split was in effect.
Parameters: restartOnMerge - true if a restart should occur, false otherwise |
startNewMaster | protected void startNewMaster()(Code) | | |
startSingleton | public void startSingleton()(Code) | | Extending classes should override this method and implement the custom
singleton logic. Only one node in the cluster is the active master.
If the current node is elected for master, this method is invoked.
When another node is elected for master for some reason, the
stopSingleton() method is invokded.
When the extending class is a stateful singleton, it will
usually use putDistributedState() and getDistributedState() to save in
the cluster environment information that will be needed by the next node
elected for master should the current master node fail.
See Also: HASingleton |
stopSingleton | public void stopSingleton()(Code) | | Extending classes should override this method and implement the custom
singleton logic. Only one node in the cluster is the active master.
If the current node is master and another node is elected for master, this
method is invoked.
See Also: HASingleton |
|
|