|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ClusterPartitionMBean
public void setPartitionName(String newName)
setPartitionName
in interface ClusterPartitionMBean
public String getPartitionProperties()
ClusterPartitionMBean
getPartitionProperties
in interface ClusterPartitionMBean
public void setPartitionProperties(String newProps)
setPartitionProperties
in interface ClusterPartitionMBean
public void setPartitionConfig(Element config)
setPartitionConfig
in interface ClusterPartitionMBean
public String getNodeName()
getNodeName
in interface ClusterPartitionMBean
public void setNodeName(String node) throws Exception
setNodeName
in interface ClusterPartitionMBean
Exception
public InetAddress getNodeAddress()
ClusterPartitionMBean
getNodeAddress
in interface ClusterPartitionMBean
public void setNodeAddress(InetAddress address)
setNodeAddress
in interface ClusterPartitionMBean
public String getJGroupsVersion()
ClusterPartitionMBean
getJGroupsVersion
in interface ClusterPartitionMBean
public long getStateTransferTimeout()
getStateTransferTimeout
in interface ClusterPartitionMBean
public void setStateTransferTimeout(long timeout)
setStateTransferTimeout
in interface ClusterPartitionMBean
public long getMethodCallTimeout()
ClusterPartitionMBean
HAPartition.callMethodOnCluster(String, String, Object[], Class[], boolean)
)
getMethodCallTimeout
in interface ClusterPartitionMBean
public void setMethodCallTimeout(long timeout)
setMethodCallTimeout
in interface ClusterPartitionMBean
public boolean getDeadlockDetection()
ClusterPartitionMBean
getDeadlockDetection
in interface ClusterPartitionMBean
public 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.MalformedObjectNameException
public HAPartition getHAPartition()
ClusterPartitionMBean
getHAPartition
in interface ClusterPartitionMBean
public Vector getCurrentView()
getCurrentView
in interface ClusterPartitionMBean
public 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
Exception
protected String generateUniqueNodeName() throws Exception
Exception
public String showHistory()
showHistory
in interface ClusterPartitionMBean
public String showHistoryAsXML()
showHistoryAsXML
in interface ClusterPartitionMBean
public void startChannelDebugger()
startChannelDebugger
in interface ClusterPartitionMBean
public void startChannelDebugger(boolean accumulative)
startChannelDebugger
in interface ClusterPartitionMBean
public void stopChannelDebugger()
stopChannelDebugger
in interface ClusterPartitionMBean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |