public interface IEndpointStateChangeSubscriber
Modifier and Type | Method and Description |
---|---|
void |
beforeChange(InetAddressAndPort endpoint,
EndpointState currentState,
ApplicationState newStateKey,
VersionedValue newValue) |
void |
onAlive(InetAddressAndPort endpoint,
EndpointState state) |
void |
onChange(InetAddressAndPort endpoint,
ApplicationState state,
VersionedValue value) |
void |
onDead(InetAddressAndPort endpoint,
EndpointState state) |
void |
onJoin(InetAddressAndPort endpoint,
EndpointState epState)
Use to inform interested parties about the change in the state
for specified endpoint
|
void |
onRemove(InetAddressAndPort endpoint) |
void |
onRestart(InetAddressAndPort endpoint,
EndpointState state)
Called whenever a node is restarted.
|
void onJoin(InetAddressAndPort endpoint, EndpointState epState)
endpoint
- endpoint for which the state change occurred.epState
- state that actually changed for the above endpoint.void beforeChange(InetAddressAndPort endpoint, EndpointState currentState, ApplicationState newStateKey, VersionedValue newValue)
void onChange(InetAddressAndPort endpoint, ApplicationState state, VersionedValue value)
void onAlive(InetAddressAndPort endpoint, EndpointState state)
void onDead(InetAddressAndPort endpoint, EndpointState state)
void onRemove(InetAddressAndPort endpoint)
void onRestart(InetAddressAndPort endpoint, EndpointState state)
state.isAlive() == false
as state
is from before the restarted node is marked up.Copyright © 2009-2021 The Apache Software Foundation