FileDocCategorySizeDatePackage
ClusterPartitionMBean.javaAPI DocJBoss 4.2.17991Fri Jul 13 20:52:38 BST 2007org.jboss.ha.framework.server

ClusterPartitionMBean

public interface ClusterPartitionMBean implements org.jboss.system.ServiceMBean
Management Bean for Cluster HAPartitions. It will start a JGroups channel and initialize the ReplicantManager and DistributedStateService.
author
Bill Burke.
author
Sacha Labourey.
version
$Revision: 60110 $

Revisions:

Fields Summary
ObjectName
OBJECT_NAME
Constructors Summary
Methods Summary
public booleangetAllowSynchronousMembershipNotifications()
Returns whether this partition will synchronously notify any HAPartition.HAMembershipListener of membership changes using the calling thread from the underlying group communications layer (e.g. JGroups).

return
true if registered listeners that don't implement AsynchHAMembershipExtendedListener or AsynchHAMembershipListener will be notified synchronously of membership changes; false if those listeners will be notified asynchronously. Default is false.

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

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

public booleangetDeadlockDetection()
Determine if deadlock detection is enabled

public org.jboss.ha.framework.interfaces.HAPartitiongetHAPartition()
Access to the underlying HAPartition without going through JNDI

return
the HAPartition for the cluster service

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

public longgetMethodCallTimeout()
Max time (in ms) to wait for synchronous group method calls ({@link HAPartition#callMethodOnCluster(String, String, Object[], Class[], boolean)})

public org.jgroups.jmx.JChannelFactoryMBeangetMultiplexer()
Gets the multiplexer channel factory that should be used to create the JGroups channel.

return
the multiplexed channel factory, or null if one isn't configured

public java.lang.StringgetMultiplexerStack()
Gets the name of the protocol stack the multiplexer channel factory should use to create the JGroups channel.

return
the stack name, or null

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

public java.lang.StringgetNodeName()
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)

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

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

return
the protocol stack used by this ClusterPartition, or null if the {@link #setMultiplexer(JChannelFactoryMBean) multiplexer} is configured but the channel has not been created yet.

public longgetStateTransferTimeout()

public voidsetAllowSynchronousMembershipNotifications(boolean allowSync)
Sets whether this partition will synchronously notify any HAPartition.HAMembershipListener of membership changes using the calling thread from the underlying group communications layer (e.g. JGroups).

param
allowSync true if registered listeners that don't implement AsynchHAMembershipExtendedListener or AsynchHAMembershipListener should be notified synchronously of membership changes; false if those listeners can be notified asynchronously. Default is false.

public voidsetDeadlockDetection(boolean doit)

public voidsetMethodCallTimeout(long timeout)

public voidsetMultiplexer(org.jgroups.jmx.JChannelFactoryMBean muxFactory)
Sets the multiplexer channel factory that should be used to create the JGroups channel. If this and a {@link #setMultiplexerStack() multiplexer stack name} are set, the channel will come from the multiplexer and properties {@link #setPartitionConfig(Element) partitionConfig} and {@link #setPartitionProperties(String) partitionProperties} will be ingored.

public voidsetMultiplexerStack(java.lang.String stackName)
Sets the name of the protocol stack the multiplexer channel factory should use to create the JGroups channel. If this and a {@link #setMultiplexer() multiplexed channel factory} are set, the channel will come from the multiplexer and properties {@link #setPartitionConfig(Element) partitionConfig} and {@link #setPartitionProperties(String) partitionProperties} will be ingored.

param
stackName the name of one of the protocols stacks included in the multiplexed channel factor's configuration

public voidsetNodeAddress(java.net.InetAddress address)

public voidsetNodeName(java.lang.String node)

public voidsetPartitionConfig(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:

Ignored if the {@link #setMultiplexer(JChannelFactoryMBean) multiplexer} is used.

public voidsetPartitionName(java.lang.String newName)

public voidsetPartitionProperties(java.lang.String newProps)

public voidsetStateTransferTimeout(long timeout)

public java.lang.StringshowHistory()

public java.lang.StringshowHistoryAsXML()

public voidstartChannelDebugger()

public voidstartChannelDebugger(boolean accumulative)

public voidstopChannelDebugger()