| Package | Description | 
|---|---|
| com.gigaspaces.cluster.activeelection | |
| com.gigaspaces.cluster.activeelection.core | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | PriorityElectionFilter. isAcceptable(ActiveElectionState.State aquireState,
            List<ServiceItem> candidateSrv)This method provides the condition to advance the manage member to  aquireStatestate. | 
| Modifier and Type | Method and Description | 
|---|---|
| ActiveElectionState.State | ActiveElectionState. getState() | 
| ActiveElectionState.State | ActiveElectionManager. getState() | 
| static ActiveElectionState.State | ActiveElectionState.State. valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static ActiveElectionState.State[] | ActiveElectionState.State. values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | ActiveElectionManager. changeState(ActiveElectionState.State oldState,
           ActiveElectionState.State newState,
           boolean force)Change the service state on naming service. | 
| boolean | IActiveElectionDecisionFilter. isAcceptable(ActiveElectionState.State advanceState,
            List<ServiceItem> candidateSrv)Returns  trueif the managed service is acceptable to advance the state toadvanceState. | 
| protected boolean | ActiveElectionManager. isAdvanceToStateAllowed(ActiveElectionState.State currentState,
                       ActiveElectionState.State acquireState)Request to advance to the new state. | 
| protected List<ServiceItem> | ActiveElectionManager. lookup(ActiveElectionState.State state,
      int maxMatches)Lookup the services with desired state. | 
| protected ServiceItem | ActiveElectionManager. pollStateUntilAvailable(ActiveElectionState.State pollingState)Poll the desired service state on naming service while available, when the
  pollingStateis not available make an attempt to find an ACTIVE state, if ACTIVE
 was found notify theIActiveElectionListenerand return the active service. | 
| void | ActiveElectionState. setState(ActiveElectionState.State state) | 
| Constructor and Description | 
|---|
| ActiveElectionState(ActiveElectionState.State state)construct this ActiveElectionState with the given State | 
Copyright © GigaSpaces.