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
aquireState
state. |
Modifier and Type | Method and Description |
---|---|
ActiveElectionState.State |
ActiveElectionManager.getState() |
ActiveElectionState.State |
ActiveElectionState.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
true if the managed service is acceptable to advance the state to
advanceState . |
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
pollingState is not available make an attempt to find an ACTIVE state, if ACTIVE
was found notify the IActiveElectionListener
and 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.