|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ha.framework.server.ClusterPartition
public class ClusterPartition
Management Bean for Cluster HAPartitions. It will start a JGroups channel and initialize the ReplicantManager and DistributedStateService.
| Field Summary | |
|---|---|
protected boolean |
allow_sync_events
|
protected org.jgroups.JChannel |
channel
|
protected boolean |
deadlock_detection
|
protected org.jgroups.debug.Debugger |
debugger
|
protected String |
jgProps
|
protected long |
method_call_timeout
|
protected InetAddress |
nodeAddress
|
protected String |
nodeName
|
protected HAPartitionImpl |
partition
|
protected String |
partitionName
|
protected long |
state_transfer_timeout
Number of milliseconds to wait until state has been transferred. |
protected boolean |
use_debugger
|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.ha.framework.server.ClusterPartitionMBean |
|---|
OBJECT_NAME |
| Fields inherited from interface org.jboss.system.ServiceMBean |
|---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
ClusterPartition()
|
|
| Method Summary | |
|---|---|
protected void |
createService()
|
protected void |
destroyService()
|
protected String |
generateUniqueNodeName()
|
boolean |
getAllowSynchronousMembershipNotifications()
Returns whether this partition will synchronously notify any HAPartition.HAMembershipListener of membership changes using the calling thread from the underlying group communications layer (e.g. |
Vector |
getCurrentView()
Return the list of member nodes that built from the current view |
boolean |
getDeadlockDetection()
Determine if deadlock detection is enabled |
HAPartition |
getHAPartition()
Access to the underlying HAPartition without going through JNDI |
String |
getJGroupsVersion()
The version of JGroups this is running on |
long |
getMethodCallTimeout()
Max time (in ms) to wait for synchronous group method calls ( HAPartition.callMethodOnCluster(String, String, Object[], Class[], boolean)) |
String |
getName()
|
InetAddress |
getNodeAddress()
The node address used to generate the node name |
String |
getNodeName()
Uniquely identifies this node. |
protected javax.management.ObjectName |
getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
String |
getPartitionName()
Name of the partition being built. |
String |
getPartitionProperties()
Get JGroups property string a la JDBC see JGroups web site for more information |
long |
getStateTransferTimeout()
|
void |
setAllowSynchronousMembershipNotifications(boolean allowSync)
Sets whether this partition will synchronously notify any HAPartition.HAMembershipListener of membership changes using the calling thread from the underlying group communications layer (e.g. |
void |
setDeadlockDetection(boolean doit)
|
void |
setMethodCallTimeout(long timeout)
|
void |
setNodeAddress(InetAddress address)
|
void |
setNodeName(String node)
|
void |
setPartitionConfig(Element config)
Convert a list of elements to the JG property string |
void |
setPartitionName(String newName)
|
void |
setPartitionProperties(String newProps)
|
void |
setStateTransferTimeout(long timeout)
|
String |
showHistory()
|
String |
showHistoryAsXML()
|
void |
startChannelDebugger()
|
void |
startChannelDebugger(boolean accumulative)
|
protected void |
startService()
|
void |
stopChannelDebugger()
|
protected void |
stopService()
|
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, destroy, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.ServiceMBean |
|---|
getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Field Detail |
|---|
protected String partitionName
protected String jgProps
protected HAPartitionImpl partition
protected boolean deadlock_detection
protected boolean allow_sync_events
protected org.jgroups.JChannel channel
protected org.jgroups.debug.Debugger debugger
protected boolean use_debugger
protected String nodeName
protected InetAddress nodeAddress
protected long state_transfer_timeout
protected long method_call_timeout
| Constructor Detail |
|---|
public ClusterPartition()
| Method Detail |
|---|
public String getPartitionName()
ClusterPartitionMBean
getPartitionName in interface ClusterPartitionMBeanpublic void setPartitionName(String newName)
setPartitionName in interface ClusterPartitionMBeanpublic String getPartitionProperties()
ClusterPartitionMBean
getPartitionProperties in interface ClusterPartitionMBeanpublic void setPartitionProperties(String newProps)
setPartitionProperties in interface ClusterPartitionMBeanpublic void setPartitionConfig(Element config)
setPartitionConfig in interface ClusterPartitionMBeanpublic String getNodeName()
getNodeName in interface ClusterPartitionMBean
public void setNodeName(String node)
throws Exception
setNodeName in interface ClusterPartitionMBeanExceptionpublic InetAddress getNodeAddress()
ClusterPartitionMBean
getNodeAddress in interface ClusterPartitionMBeanpublic void setNodeAddress(InetAddress address)
setNodeAddress in interface ClusterPartitionMBeanpublic String getJGroupsVersion()
ClusterPartitionMBean
getJGroupsVersion in interface ClusterPartitionMBeanpublic long getStateTransferTimeout()
getStateTransferTimeout in interface ClusterPartitionMBeanpublic void setStateTransferTimeout(long timeout)
setStateTransferTimeout in interface ClusterPartitionMBeanpublic long getMethodCallTimeout()
ClusterPartitionMBeanHAPartition.callMethodOnCluster(String, String, Object[], Class[], boolean))
getMethodCallTimeout in interface ClusterPartitionMBeanpublic void setMethodCallTimeout(long timeout)
setMethodCallTimeout in interface ClusterPartitionMBeanpublic boolean getDeadlockDetection()
ClusterPartitionMBean
getDeadlockDetection in interface ClusterPartitionMBeanpublic void setDeadlockDetection(boolean doit)
setDeadlockDetection in interface ClusterPartitionMBeanpublic boolean getAllowSynchronousMembershipNotifications()
ClusterPartitionMBean
getAllowSynchronousMembershipNotifications in interface ClusterPartitionMBeantrue if registered listeners that don't implement
AsynchHAMembershipExtendedListener or
AsynchHAMembershipListener will be notified
synchronously of membership changes; false if
those listeners will be notified asynchronously. Default
is false.public void setAllowSynchronousMembershipNotifications(boolean allowSync)
ClusterPartitionMBean
setAllowSynchronousMembershipNotifications in interface ClusterPartitionMBeanallowSync - true if registered listeners that don't
implement AsynchHAMembershipExtendedListener or
AsynchHAMembershipListener should be notified
synchronously of membership changes; false if
those listeners can be notified asynchronously. Default
is false.
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
getObjectName in class org.jboss.system.ServiceMBeanSupportjavax.management.MalformedObjectNameExceptionpublic HAPartition getHAPartition()
ClusterPartitionMBean
getHAPartition in interface ClusterPartitionMBeanpublic Vector getCurrentView()
getCurrentView in interface ClusterPartitionMBeanpublic String getName()
getName in interface org.jboss.system.ServiceMBeangetName in class org.jboss.system.ServiceMBeanSupport
protected void createService()
throws Exception
createService in class org.jboss.system.ServiceMBeanSupportException
protected void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
protected void stopService()
throws Exception
stopService in class org.jboss.system.ServiceMBeanSupportException
protected void destroyService()
throws Exception
destroyService in class org.jboss.system.ServiceMBeanSupportException
protected String generateUniqueNodeName()
throws Exception
Exceptionpublic String showHistory()
showHistory in interface ClusterPartitionMBeanpublic String showHistoryAsXML()
showHistoryAsXML in interface ClusterPartitionMBeanpublic void startChannelDebugger()
startChannelDebugger in interface ClusterPartitionMBeanpublic void startChannelDebugger(boolean accumulative)
startChannelDebugger in interface ClusterPartitionMBeanpublic void stopChannelDebugger()
stopChannelDebugger in interface ClusterPartitionMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||