public interface IActiveElectionDecisionFilter
ActiveElectionState.State
state.ActiveElectionManager
to identify whether the managed service
candidate is acceptable to advance current state to advanceState
.isAcceptable(ActiveElectionState.State, List)
returns true
, otherwise the state stays without no change.ActiveElectionManager
,
ActiveElectionState.State
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ServiceItem service1,
ServiceItem service2) |
ICandidateEntry |
getCandidateEntry(ServiceItem service) |
boolean |
isAcceptable(ActiveElectionState.State advanceState,
List<ServiceItem> candidateSrv)
Returns
true if the managed service is acceptable to advance the state to
advanceState . |
boolean isAcceptable(ActiveElectionState.State advanceState, List<ServiceItem> candidateSrv)
true
if the managed service is acceptable to advance the state to
advanceState
.advanceState
- The advance state (The state to aquire).candidateSrv
- The service candidates to aquire advanceState
.true
if the advanceState
is acceptable by this filter.int compareTo(ServiceItem service1, ServiceItem service2)
ICandidateEntry getCandidateEntry(ServiceItem service)
Copyright © GigaSpaces.