|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.streaming.StreamOutSession
public class StreamOutSession
This class manages the streaming of multiple files one after the other.
| Field Summary | |
|---|---|
java.lang.String |
table
|
| Method Summary | |
|---|---|
void |
addFilesToStream(java.util.List<PendingFile> pendingFiles)
|
void |
begin()
|
void |
close()
|
void |
convict(java.net.InetAddress endpoint,
double phi)
Convict the specified endpoint. |
static StreamOutSession |
create(java.lang.String table,
java.net.InetAddress host,
long sessionId)
|
static StreamOutSession |
create(java.lang.String table,
java.net.InetAddress host,
long sessionId,
java.lang.Runnable callback)
|
static StreamOutSession |
create(java.lang.String table,
java.net.InetAddress host,
java.lang.Runnable callback)
|
static StreamOutSession |
get(java.net.InetAddress host,
long sessionId)
|
static java.util.Set<java.net.InetAddress> |
getDestinations()
|
java.util.Collection<PendingFile> |
getFiles()
|
java.net.InetAddress |
getHost()
|
static java.util.List<PendingFile> |
getOutgoingFiles(java.net.InetAddress host)
|
long |
getSessionId()
|
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. |
void |
retry()
|
void |
startNext()
|
void |
validateCurrentFile(java.lang.String file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String table
| Method Detail |
|---|
public static StreamOutSession create(java.lang.String table,
java.net.InetAddress host,
java.lang.Runnable callback)
public static StreamOutSession create(java.lang.String table,
java.net.InetAddress host,
long sessionId)
public static StreamOutSession create(java.lang.String table,
java.net.InetAddress host,
long sessionId,
java.lang.Runnable callback)
public static StreamOutSession get(java.net.InetAddress host,
long sessionId)
public java.net.InetAddress getHost()
public long getSessionId()
public void addFilesToStream(java.util.List<PendingFile> pendingFiles)
public void retry()
public void startNext()
throws java.io.IOException
java.io.IOExceptionpublic void close()
public java.util.Collection<PendingFile> getFiles()
public static java.util.Set<java.net.InetAddress> getDestinations()
public static java.util.List<PendingFile> getOutgoingFiles(java.net.InetAddress host)
public void validateCurrentFile(java.lang.String file)
public void begin()
public void onJoin(java.net.InetAddress endpoint,
EndpointState epState)
IEndpointStateChangeSubscriber
onJoin in interface IEndpointStateChangeSubscriberendpoint - 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 IEndpointStateChangeSubscriberpublic void onRemove(java.net.InetAddress endpoint)
onRemove in interface IEndpointStateChangeSubscriber
public void onRestart(java.net.InetAddress endpoint,
EndpointState epState)
IEndpointStateChangeSubscriberstate.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 IFailureDetectionEventListenerendpoint - 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 | |||||||||