|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
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 Debugger |
debugger
|
protected java.lang.String |
jgProps
|
protected long |
method_call_timeout
|
protected java.net.InetAddress |
nodeAddress
|
protected java.lang.String |
nodeName
|
protected HAPartitionImpl (src) |
partition
|
protected java.lang.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 (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.ha.framework.server.ClusterPartitionMBean (src) |
OBJECT_NAME |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
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()
Sub-classes should override this method to provide custum 'create' logic. |
protected java.lang.String |
generateUniqueNodeName()
|
java.util.Vector |
getCurrentView()
Return the list of member nodes that built from the current view |
boolean |
getDeadlockDetection()
Determine if deadlock detection is enabled |
HAPartition (src) |
getHAPartition()
Access to the underlying HAPartition without going through JNDI |
java.lang.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) ) |
java.lang.String |
getName()
Use the short class name as the default for the service name. |
java.net.InetAddress |
getNodeAddress()
The node address used to generate the node name |
java.lang.String |
getNodeName()
Uniquely identifies this node. |
protected ObjectName (src) |
getObjectName(MBeanServer (src) server,
ObjectName (src) name)
Sub-classes should override this method if they only need to set their object name during MBean pre-registration. |
java.lang.String |
getPartitionName()
Name of the partition being built. |
java.lang.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(java.net.InetAddress address)
|
void |
setNodeName(java.lang.String node)
|
void |
setPartitionConfig(org.w3c.dom.Element config)
Convert a list of elements to the JG property string |
void |
setPartitionName(java.lang.String newName)
|
void |
setPartitionProperties(java.lang.String newProps)
|
void |
setStateTransferTimeout(long timeout)
|
java.lang.String |
showHistory()
|
java.lang.String |
showHistoryAsXML()
|
void |
startChannelDebugger()
|
void |
startChannelDebugger(boolean accumulative)
|
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
void |
stopChannelDebugger()
|
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
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 (src) |
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 (src) |
getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Field Detail |
protected java.lang.String partitionName
protected java.lang.String jgProps
protected HAPartitionImpl (src) partition
protected boolean deadlock_detection
protected org.jgroups.JChannel channel
protected Debugger debugger
protected boolean use_debugger
protected java.lang.String nodeName
protected java.net.InetAddress nodeAddress
protected long state_transfer_timeout
protected long method_call_timeout
Constructor Detail |
public ClusterPartition()
Method Detail |
public java.lang.String getPartitionName()
ClusterPartitionMBean (src)
getPartitionName
in interface ClusterPartitionMBean (src)
public void setPartitionName(java.lang.String newName)
setPartitionName
in interface ClusterPartitionMBean (src)
public java.lang.String getPartitionProperties()
ClusterPartitionMBean (src)
getPartitionProperties
in interface ClusterPartitionMBean (src)
public void setPartitionProperties(java.lang.String newProps)
setPartitionProperties
in interface ClusterPartitionMBean (src)
public void setPartitionConfig(org.w3c.dom.Element config)
setPartitionConfig
in interface ClusterPartitionMBean (src)
public java.lang.String getNodeName()
getNodeName
in interface ClusterPartitionMBean (src)
public void setNodeName(java.lang.String node) throws java.lang.Exception
setNodeName
in interface ClusterPartitionMBean (src)
java.lang.Exception
public java.net.InetAddress getNodeAddress()
ClusterPartitionMBean (src)
getNodeAddress
in interface ClusterPartitionMBean (src)
public void setNodeAddress(java.net.InetAddress address)
setNodeAddress
in interface ClusterPartitionMBean (src)
public java.lang.String getJGroupsVersion()
ClusterPartitionMBean (src)
getJGroupsVersion
in interface ClusterPartitionMBean (src)
public long getStateTransferTimeout()
getStateTransferTimeout
in interface ClusterPartitionMBean (src)
public void setStateTransferTimeout(long timeout)
setStateTransferTimeout
in interface ClusterPartitionMBean (src)
public long getMethodCallTimeout()
ClusterPartitionMBean (src)
HAPartition.callMethodOnCluster(String, String, Object[], Class[], boolean)
)
getMethodCallTimeout
in interface ClusterPartitionMBean (src)
public void setMethodCallTimeout(long timeout)
setMethodCallTimeout
in interface ClusterPartitionMBean (src)
public boolean getDeadlockDetection()
ClusterPartitionMBean (src)
getDeadlockDetection
in interface ClusterPartitionMBean (src)
public void setDeadlockDetection(boolean doit)
setDeadlockDetection
in interface ClusterPartitionMBean (src)
protected ObjectName (src) getObjectName(MBeanServer (src) server, ObjectName (src) name) throws MalformedObjectNameException (src)
ServiceMBeanSupport (src)
getObjectName
in class ServiceMBeanSupport (src)
MalformedObjectNameException (src)
public HAPartition (src) getHAPartition()
ClusterPartitionMBean (src)
getHAPartition
in interface ClusterPartitionMBean (src)
public java.util.Vector getCurrentView()
getCurrentView
in interface ClusterPartitionMBean (src)
public java.lang.String getName()
ServiceMBeanSupport (src)
getName
in interface ServiceMBean (src)
getName
in class ServiceMBeanSupport (src)
protected void createService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
createService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected java.lang.String generateUniqueNodeName() throws java.lang.Exception
java.lang.Exception
public java.lang.String showHistory()
showHistory
in interface ClusterPartitionMBean (src)
public java.lang.String showHistoryAsXML()
showHistoryAsXML
in interface ClusterPartitionMBean (src)
public void startChannelDebugger()
startChannelDebugger
in interface ClusterPartitionMBean (src)
public void startChannelDebugger(boolean accumulative)
startChannelDebugger
in interface ClusterPartitionMBean (src)
public void stopChannelDebugger()
stopChannelDebugger
in interface ClusterPartitionMBean (src)
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |