|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HASingleton<E extends EventObject>
Basic interface for HA-Singleton services.
Field Summary | |
---|---|
static String |
HASINGLETON_STARTED_NOTIFICATION
|
static String |
HASINGLETON_STARTING_NOTIFICATION
Notifications emitted locally by an HASingleton to indicate state transitions |
static String |
HASINGLETON_STOPPED_NOTIFICATION
|
static String |
HASINGLETON_STOPPING_NOTIFICATION
|
Method Summary | |
---|---|
HASingletonElectionPolicy |
getElectionPolicy()
Gets the policy used to determine which cluster node will become the master when the service topology changes. |
boolean |
getRestartOnMerge()
Gets whether this singleton will stop and restart itself if it is the master and a cluster merge occurs. |
void |
setElectionPolicy(HASingletonElectionPolicy policy)
Sets the policy used to determine which cluster node will become the master when the service topology changes. |
void |
setRestartOnMerge(boolean restartOnMerge)
Sets whether this singleton will stop and restart itself if it is the master and a cluster merge occurs. |
Methods inherited from interface org.jboss.ha.framework.interfaces.HAService |
---|
create, destroy, getServiceHAName, isRegisterThreadContextClassLoader, setHAPartition, setRegisterThreadContextClassLoader, setServiceHAName, start, stop |
Methods inherited from interface org.jboss.ha.framework.interfaces.HAServiceKeyProvider |
---|
getHAPartition, getHAServiceKey |
Methods inherited from interface org.jboss.ha.framework.interfaces.EventListener |
---|
handleEvent |
Methods inherited from interface org.jboss.ha.framework.interfaces.HASingletonLifecycle |
---|
startSingleton, stopSingleton |
Methods inherited from interface org.jboss.ha.framework.interfaces.HASingletonMBean |
---|
isMasterNode |
Field Detail |
---|
static final String HASINGLETON_STARTING_NOTIFICATION
static final String HASINGLETON_STARTED_NOTIFICATION
static final String HASINGLETON_STOPPING_NOTIFICATION
static final String HASINGLETON_STOPPED_NOTIFICATION
Method Detail |
---|
void setElectionPolicy(HASingletonElectionPolicy policy)
policy
- the policy. Can be null
.HASingletonElectionPolicy getElectionPolicy()
null
.boolean getRestartOnMerge()
true
if a restart will occur, false
otherwisevoid setRestartOnMerge(boolean restartOnMerge)
restartOnMerge
- true
if a restart should occur,
false
otherwise. Default is
true
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |