|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
HA-Service interface. Defines common functionality for partition symmetric (farming) services.
Field Summary |
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 | |
void |
callMethodOnPartition(java.lang.String methodName,
java.lang.Object[] args)
Convenience method for broadcasting a call to all members of a partition. |
java.io.Serializable |
getDistributedState(java.lang.String key)
Convenience method for sharing state across a cluster partition. |
java.lang.String |
getPartitionName()
Name of the underlying partition that determine the cluster to use. |
void |
sendNotification(Notification (src) notification)
Broadcast the notification to the remote listener nodes (if any) and then invoke super.sendNotification() to notify local listeners. |
void |
setDistributedState(java.lang.String key,
java.io.Serializable value)
Convenience method for sharing state across a cluster partition. |
void |
setPartitionName(java.lang.String partitionName)
Set the name of the underlying partition that determine the cluster to use. |
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 |
Methods inherited from interface javax.management.NotificationBroadcaster (src) |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Method Detail |
public java.lang.String getPartitionName()
public void setPartitionName(java.lang.String partitionName)
public void callMethodOnPartition(java.lang.String methodName, java.lang.Object[] args) throws java.lang.Exception
methodName
- args
-
java.lang.Exception
public java.io.Serializable getDistributedState(java.lang.String key)
key
- key for the distributed object
public void setDistributedState(java.lang.String key, java.io.Serializable value) throws java.lang.Exception
key
- key for the distributed objectvalue
- the distributed object
java.lang.Exception
public void sendNotification(Notification (src) notification)
notification
- sent out to local listeners and other nodes. It should be serializable.
It is recommended that the source of the notification is an ObjectName of an MBean that
is is available on all nodes where the broadcaster MBean is registered.NotificationBroadcasterSupport.sendNotification(Notification)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |