|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateListener
In order to be notified of state updates, the server replicas
must implement this interface. Servers implementing this interface
should be considered semi-actively replicated, were one
of the servers is elected as the group leader.
Note that it is required that the state object returned by the
getState()
method does implement/override the
hashCode()
method, since that is used to determine
if the leader state should be sent to the followers.
Method Summary | |
---|---|
java.lang.Object |
getState()
Method getState is invoked by the group leader,
and should return its current state. |
void |
putState(java.lang.Object state)
Method putState is invoked on followers to inform
them about the new state of the group leader. |
Method Detail |
---|
java.lang.Object getState()
getState
is invoked by the group leader,
and should return its current state.
void putState(java.lang.Object state)
putState
is invoked on followers to inform
them about the new state of the group leader.
state
- The state object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |