public class LoadBroadcaster extends java.lang.Object implements IEndpointStateChangeSubscriber
| Modifier and Type | Field and Description |
|---|---|
static LoadBroadcaster |
instance |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<InetAddressAndPort,java.lang.Double> |
getLoadInfo() |
void |
onChange(InetAddressAndPort endpoint,
ApplicationState state,
VersionedValue value) |
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 |
startBroadcasting() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeforeChange, onAlive, onDead, onRestartpublic static final LoadBroadcaster instance
public void onChange(InetAddressAndPort endpoint, ApplicationState state, VersionedValue value)
onChange in interface IEndpointStateChangeSubscriberpublic void onJoin(InetAddressAndPort endpoint, EndpointState epState)
IEndpointStateChangeSubscriberonJoin in interface IEndpointStateChangeSubscriberendpoint - endpoint for which the state change occurred.epState - state that actually changed for the above endpoint.public void onRemove(InetAddressAndPort endpoint)
onRemove in interface IEndpointStateChangeSubscriberpublic java.util.Map<InetAddressAndPort,java.lang.Double> getLoadInfo()
public void startBroadcasting()
Copyright © 2009-2022 The Apache Software Foundation