1 22 package org.jboss.ha.singleton; 23 24 25 import org.jboss.ha.framework.interfaces.ClusterNode; 26 import org.jboss.ha.framework.interfaces.HAPartition; 27 28 35 public interface HASingletonElectionPolicyMBean 36 extends org.jboss.system.ServiceMBean 37 { 38 44 void setManagedSingleton(Object singleton); 45 Object getManagedSingleton(); 46 47 53 void setHAPartition(HAPartition partition); 54 HAPartition getHAPartition(); 55 56 60 ClusterNode pickSingleton(); 61 62 67 ClusterNode pickSingleton(HAPartition partition); 68 69 74 public boolean isElectedMaster(); 75 76 81 public boolean isElectedMaster(HAPartition partiton); 82 } 83 | Popular Tags |