FileDocCategorySizeDatePackage
HASingletonSupportMBean.javaAPI DocJBoss 4.2.12466Fri Jul 13 20:52:36 BST 2007org.jboss.ha.singleton

HASingletonSupportMBean

public interface HASingletonSupportMBean implements HASingletonMBean
The management interface for the singleton support service.
author
Alex Fu
version
$Revision$

Fields Summary
Constructors Summary
Methods Summary
public HASingletonElectionPolicygetElectionPolicy()

public booleangetRestartOnMerge()
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.

return
true if a restart will occur, false otherwise

public voidsetElectionPolicy(HASingletonElectionPolicy mb)
The HASingleton election policy MBean

public voidsetRestartOnMerge(boolean restartOnMerge)
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.

param
restartOnMerge true if a restart should occur, false otherwise