|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEndpointStateChangeSubscriber
This is called by an instance of the IEndpointStateChangePublisher to notify interested parties about changes in the the state associated with any endpoint. For instance if node A figures there is a changes in state for an endpoint B it notifies all interested parties of this change. It is upto to the registered instance to decide what he does with this change. Not all modules maybe interested in all state changes.
Method Summary | |
---|---|
void |
onAlive(java.net.InetAddress endpoint,
EndpointState state)
|
void |
onChange(java.net.InetAddress endpoint,
ApplicationState state,
VersionedValue value)
|
void |
onDead(java.net.InetAddress endpoint,
EndpointState state)
|
void |
onJoin(java.net.InetAddress endpoint,
EndpointState epState)
Use to inform interested parties about the change in the state for specified endpoint |
void |
onRemove(java.net.InetAddress endpoint)
|
void |
onRestart(java.net.InetAddress endpoint,
EndpointState state)
Called whenever a node is restarted. |
Method Detail |
---|
void onJoin(java.net.InetAddress endpoint, EndpointState epState)
endpoint
- endpoint for which the state change occurred.epState
- state that actually changed for the above endpoint.void onChange(java.net.InetAddress endpoint, ApplicationState state, VersionedValue value)
void onAlive(java.net.InetAddress endpoint, EndpointState state)
void onDead(java.net.InetAddress endpoint, EndpointState state)
void onRemove(java.net.InetAddress endpoint)
void onRestart(java.net.InetAddress endpoint, EndpointState state)
state.isAlive() == false
as state
is from before the restarted node is marked up.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |