站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 cluster API Documentation 英文版文档

ClusterPartitionMBean (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档


org.jboss.ha.framework.server
Interface ClusterPartitionMBean

All Superinterfaces:
org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
ClusterPartition

public interface ClusterPartitionMBean
extends org.jboss.system.ServiceMBean

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

Version:
$Revision: 1.19 $

Revisions:

Author:
Bill Burke., Sacha Labourey.

Field Summary
static javax.management.ObjectName 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
 
Method Summary
 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))
 InetAddress getNodeAddress()
          The node address used to generate the node name
 String getNodeName()
          Uniquely identifies this node.
 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)
          A write-only attribute that allows for an xml specification of the PartitionProperties string.
 void setPartitionName(String newName)
           
 void setPartitionProperties(String newProps)
           
 void setStateTransferTimeout(long timeout)
           
 String showHistory()
           
 String showHistoryAsXML()
           
 void startChannelDebugger()
           
 void startChannelDebugger(boolean accumulative)
           
 void stopChannelDebugger()
           
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

OBJECT_NAME

public static final javax.management.ObjectName OBJECT_NAME
Method Detail

getPartitionName

public 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(String newName)

getPartitionProperties

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


setPartitionProperties

public void setPartitionProperties(String newProps)

setPartitionConfig

public void setPartitionConfig(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 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(String node)
                 throws Exception
Throws:
Exception

getNodeAddress

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


setNodeAddress

public void setNodeAddress(InetAddress address)

getJGroupsVersion

public 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 getHAPartition()
Access to the underlying HAPartition without going through JNDI

Returns:
the HAPartition for the cluster service

getCurrentView

public 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 String showHistory()

showHistoryAsXML

public String showHistoryAsXML()

startChannelDebugger

public void startChannelDebugger()

startChannelDebugger

public void startChannelDebugger(boolean accumulative)

stopChannelDebugger

public void stopChannelDebugger()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.