Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ha » jmx » [javadoc | source]
org.jboss.ha.jmx
public interface: HAServiceMBean [javadoc | source]

All Implemented Interfaces:
    ServiceMBean, NotificationBroadcaster

All Known Implementing Classes:
    HASingletonControllerTester, HAServiceMBeanSupport, HANotificationBroadcasterExampleMBean, HASingletonControllerMBean, HASingletonController, HAILSharedStateMBean, HASingletonSupportMBean, HASingletonSupport, HANotificationBroadcasterExample, HAILSharedState, HAServiceMBeanSupportTester, HASingletonSupportTester, HASingletonMBean

HA-Service interface. Defines common functionality for partition symmetric (farming) services.

Method from org.jboss.ha.jmx.HAServiceMBean Summary:
callMethodOnPartition,   getDistributedState,   getHAPartition,   getPartitionName,   isRegisterThreadContextClassLoader,   sendNotification,   setClusterPartition,   setDistributedState,   setHAPartition,   setRegisterThreadContextClassLoader
Method from org.jboss.ha.jmx.HAServiceMBean Detail:
 public List callMethodOnPartition(String methodName,
    Object[] args,
    Class[] types) throws Exception
    Convenience method for broadcasting a call to all members of a partition.
 public Serializable getDistributedState(String key)
    Convenience method for sharing state across a cluster partition. Delegates to the DistributedStateService
 public HAPartition getHAPartition()
    Get the underlying partition used by this service.
 public String getPartitionName()
    Gets the name of the partition used by this service. This is a convenience method as the partition name is an attribute of HAPartition.
 public boolean isRegisterThreadContextClassLoader()
    Test whether the thread context classloader should be used in RPC calls.
 public  void sendNotification(Notification notification)
    Broadcast the notification to the remote listener nodes (if any) and then invoke super.sendNotification() to notify local listeners.
 public  void setClusterPartition(ClusterPartitionMBean clusterPartition)Deprecated! use -  #setHAPartition(HAPartition) 

    Sets the underlying partition used by this service.
 public  void setDistributedState(String key,
    Serializable value) throws Exception
    Convenience method for sharing state across a cluster partition. Delegates to the DistributedStateService
 public  void setHAPartition(HAPartition clusterPartition)
    Sets the underlying partition used by this service.
 public  void setRegisterThreadContextClassLoader(boolean register)
    Sets a flag specifying whether the calling thread's context classloader should be used when making RPC calls. This flag must be set before the RPC handler is registered in startService(). The default value is false. This would typically be used in conjunction with a scoped classloader.