public interface ClusterPartitionMBean extends org.jboss.system.ServiceMBean(Code)
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 $ version:
getAllowSynchronousMembershipNotifications() 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.
setAllowSynchronousMembershipNotifications(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.
public boolean getAllowSynchronousMembershipNotifications()(Code)
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).
true if registered listeners that don't implementAsynchHAMembershipExtendedListener orAsynchHAMembershipListener will be notifiedsynchronously of membership changes; false ifthose listeners will be notified asynchronously. Defaultis false.
Gets the multiplexer channel factory that should be used to
create the JGroups channel.
the multiplexed channel factory, or null ifone isn't configured
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 void setAllowSynchronousMembershipNotifications(boolean allowSync)(Code)
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).
Parameters: allowSync - true if registered listeners that don't implement AsynchHAMembershipExtendedListener orAsynchHAMembershipListener should be notifiedsynchronously of membership changes; false ifthose listeners can be notified asynchronously. Defaultis false.
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
ClusterPartitionMBean.setMultiplexer(JChannelFactoryMBean) multiplexer is
used.