Package org.apache.cassandra.service
Class LoadBroadcaster
- java.lang.Object
-
- org.apache.cassandra.service.LoadBroadcaster
-
- All Implemented Interfaces:
IEndpointStateChangeSubscriber
public class LoadBroadcaster extends java.lang.Object implements IEndpointStateChangeSubscriber
-
-
Field Summary
Fields Modifier and Type Field Description static LoadBroadcaster
instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 endpointvoid
onRemove(InetAddressAndPort endpoint)
void
startBroadcasting()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.gms.IEndpointStateChangeSubscriber
beforeChange, onAlive, onDead, onRestart
-
-
-
-
Field Detail
-
instance
public static final LoadBroadcaster instance
-
-
Method Detail
-
onChange
public void onChange(InetAddressAndPort endpoint, ApplicationState state, VersionedValue value)
- Specified by:
onChange
in interfaceIEndpointStateChangeSubscriber
-
onJoin
public void onJoin(InetAddressAndPort endpoint, EndpointState epState)
Description copied from interface:IEndpointStateChangeSubscriber
Use to inform interested parties about the change in the state for specified endpoint- Specified by:
onJoin
in interfaceIEndpointStateChangeSubscriber
- Parameters:
endpoint
- endpoint for which the state change occurred.epState
- state that actually changed for the above endpoint.
-
onRemove
public void onRemove(InetAddressAndPort endpoint)
- Specified by:
onRemove
in interfaceIEndpointStateChangeSubscriber
-
getLoadInfo
public java.util.Map<InetAddressAndPort,java.lang.Double> getLoadInfo()
-
startBroadcasting
public void startBroadcasting()
-
-