1 22 package org.jboss.ha.jmx; 23 24 import java.io.Serializable ; 25 26 import javax.management.Notification ; 27 import javax.management.NotificationBroadcaster ; 28 29 import org.jboss.ha.framework.server.ClusterPartitionMBean; 30 31 41 42 public interface HAServiceMBean 43 extends org.jboss.system.ServiceMBean, NotificationBroadcaster 44 { 45 46 51 String getPartitionName(); 52 53 59 void setPartitionName(String partitionName); 60 61 66 ClusterPartitionMBean getClusterPartition(); 67 68 74 void setClusterPartition(ClusterPartitionMBean clusterPartition); 75 76 77 86 public void callMethodOnPartition(String methodName, Object [] args) 87 throws Exception ; 88 89 98 public Serializable getDistributedState(String key); 99 100 110 public void setDistributedState(String key, Serializable value) 111 throws Exception ; 112 113 114 127 public void sendNotification(Notification notification); 128 129 } 130 | Popular Tags |