|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.dht.RangeStreamer
public class RangeStreamer
Assists in streaming ranges to a node.
Nested Class Summary | |
---|---|
static class |
RangeStreamer.FailureDetectorSourceFilter
Source filter which excludes any endpoints that are not alive according to a failure detector. |
static interface |
RangeStreamer.ISourceFilter
A filter applied to sources to stream from when constructing a fetch map. |
static class |
RangeStreamer.SingleDatacenterFilter
Source filter which excludes any endpoints that are not in a specific data center. |
Field Summary | |
---|---|
protected java.lang.String |
exceptionMessage
|
protected java.util.concurrent.CountDownLatch |
latch
|
Constructor Summary | |
---|---|
RangeStreamer(TokenMetadata metadata,
java.net.InetAddress address,
OperationType opType)
|
Method Summary | |
---|---|
void |
addRanges(java.lang.String table,
java.util.Collection<Range<Token>> ranges)
|
void |
addSourceFilter(RangeStreamer.ISourceFilter filter)
|
void |
convict(java.net.InetAddress endpoint,
double phi)
Convict the specified endpoint. |
void |
fetch()
|
static com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>> |
getWorkMap(com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress> rangesWithSourceTarget)
|
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 epState)
Called whenever a node is restarted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.concurrent.CountDownLatch latch
protected volatile java.lang.String exceptionMessage
Constructor Detail |
---|
public RangeStreamer(TokenMetadata metadata, java.net.InetAddress address, OperationType opType)
Method Detail |
---|
public void addSourceFilter(RangeStreamer.ISourceFilter filter)
public void addRanges(java.lang.String table, java.util.Collection<Range<Token>> ranges)
public static com.google.common.collect.Multimap<java.net.InetAddress,Range<Token>> getWorkMap(com.google.common.collect.Multimap<Range<Token>,java.net.InetAddress> rangesWithSourceTarget)
public void fetch()
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 onChange(java.net.InetAddress endpoint, ApplicationState state, VersionedValue value)
onChange
in interface IEndpointStateChangeSubscriber
public void onAlive(java.net.InetAddress endpoint, EndpointState state)
onAlive
in interface IEndpointStateChangeSubscriber
public void onDead(java.net.InetAddress endpoint, EndpointState state)
onDead
in interface IEndpointStateChangeSubscriber
public void onRemove(java.net.InetAddress endpoint)
onRemove
in interface IEndpointStateChangeSubscriber
public void onRestart(java.net.InetAddress endpoint, EndpointState epState)
IEndpointStateChangeSubscriber
state.isAlive() == false
as state
is from before the restarted node is marked up.
onRestart
in interface IEndpointStateChangeSubscriber
public void convict(java.net.InetAddress endpoint, double phi)
IFailureDetectionEventListener
convict
in interface IFailureDetectionEventListener
endpoint
- endpoint to be convictedphi
- the value of phi with with ep was convicted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |