|
|||||||||||
| 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
Management Bean for Cluster HAPartitions. It will start a JGroups channel and initialize the ReplicantManager and DistributedStateService.
| Field Summary | |
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 String |
generateUniqueNodeName()
|
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 |
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, destroyService, 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, 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 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 ClusterPartitionMBeanpublic 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 ClusterPartitionMBean
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameExceptionpublic HAPartition getHAPartition()
ClusterPartitionMBean
getHAPartition in interface ClusterPartitionMBeanpublic Vector getCurrentView()
getCurrentView in interface ClusterPartitionMBeanpublic String getName()
getName in interface org.jboss.system.ServiceMBean
protected void createService()
throws Exception
Exception
protected void startService()
throws Exception
Exception
protected void stopService()
throws Exception
Exceptionprotected 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 | ||||||||||