org.jboss.ha.framework.server
Interface ClusterPartitionMBean

All Superinterfaces:
Service (src) , ServiceMBean (src)
All Known Implementing Classes:
ClusterPartition (src)

public interface ClusterPartitionMBean
extends ServiceMBean (src)

Management Bean for Cluster HAPartitions. It will start a JGroups channel and initialize the ReplicantManager and DistributedStateService.


Field Summary
static ObjectName (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
 
Method Summary
 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.net.InetAddress getNodeAddress()
          The node address used to generate the node name
 java.lang.String getNodeName()
          Uniquely identifies this node.
 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)
          A write-only attribute that allows for an xml specification of the PartitionProperties 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)
           
 void stopChannelDebugger()
           
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Field Detail

OBJECT_NAME

public static final ObjectName (src)  OBJECT_NAME
Method Detail

getPartitionName

public java.lang.String getPartitionName()
Name of the partition being built. All nodes/services belonging to a partition with the same name are clustered together.


setPartitionName

public void setPartitionName(java.lang.String newName)

getPartitionProperties

public java.lang.String getPartitionProperties()
Get JGroups property string a la JDBC see JGroups web site for more information


setPartitionProperties

public void setPartitionProperties(java.lang.String newProps)

setPartitionConfig

public void setPartitionConfig(org.w3c.dom.Element config)
A write-only attribute that allows for an xml specification of the PartitionProperties string. For example, a string like: UDP(mcast_addr=228.1.2.3):PING(timeout=2000):MERGE2(min_interval=5000;max_interval=10000):FD" would be specified in xml as:


getNodeName

public java.lang.String getNodeName()
Uniquely identifies this node. MUST be unique accros the whole cluster! Cannot be changed once the partition has been started (otherwise an exception is thrown)


setNodeName

public void setNodeName(java.lang.String node)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getNodeAddress

public java.net.InetAddress getNodeAddress()
The node address used to generate the node name


setNodeAddress

public void setNodeAddress(java.net.InetAddress address)

getJGroupsVersion

public java.lang.String getJGroupsVersion()
The version of JGroups this is running on


getStateTransferTimeout

public long getStateTransferTimeout()

setStateTransferTimeout

public void setStateTransferTimeout(long timeout)

getMethodCallTimeout

public long getMethodCallTimeout()
Max time (in ms) to wait for synchronous group method calls (HAPartition.callMethodOnCluster(String, String, Object[], Class[], boolean))


setMethodCallTimeout

public void setMethodCallTimeout(long timeout)

getDeadlockDetection

public boolean getDeadlockDetection()
Determine if deadlock detection is enabled


setDeadlockDetection

public void setDeadlockDetection(boolean doit)

getHAPartition

public HAPartition (src)  getHAPartition()
Access to the underlying HAPartition without going through JNDI

Returns:
the HAPartition for the cluster service

getCurrentView

public java.util.Vector getCurrentView()
Return the list of member nodes that built from the current view

Returns:
A Vector Strings representing the host:port values of the nodes

showHistory

public java.lang.String showHistory()

showHistoryAsXML

public java.lang.String showHistoryAsXML()

startChannelDebugger

public void startChannelDebugger()

startChannelDebugger

public void startChannelDebugger(boolean accumulative)

stopChannelDebugger

public void stopChannelDebugger()