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<java.net.InetAddress,java.lang.Double> |
getLoadInfo() |
void |
onChange(java.net.InetAddress endpoint,
ApplicationState state,
VersionedValue value) |
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 |
startBroadcasting() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beforeChange, onAlive, onDead, onRestart
public static final LoadBroadcaster instance
public void onChange(java.net.InetAddress endpoint, ApplicationState state, VersionedValue value)
onChange
in interface IEndpointStateChangeSubscriber
public void onJoin(java.net.InetAddress endpoint, EndpointState epState)
IEndpointStateChangeSubscriber
onJoin
in interface IEndpointStateChangeSubscriber
endpoint
- endpoint for which the state change occurred.epState
- state that actually changed for the above endpoint.public void onRemove(java.net.InetAddress endpoint)
onRemove
in interface IEndpointStateChangeSubscriber
public java.util.Map<java.net.InetAddress,java.lang.Double> getLoadInfo()
public void startBroadcasting()
Copyright © 2022 The Apache Software Foundation