org.apache.cassandra.streaming
Class StreamOutSession
java.lang.Object
org.apache.cassandra.streaming.StreamOutSession
public class StreamOutSession
- extends java.lang.Object
This class manages the streaming of multiple files one after the other.
Field Summary |
java.lang.String |
table
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
public final java.lang.String table
create
public static StreamOutSession create(java.lang.String table,
java.net.InetAddress host,
java.lang.Runnable callback)
create
public static StreamOutSession create(java.lang.String table,
java.net.InetAddress host,
long sessionId)
create
public static StreamOutSession create(java.lang.String table,
java.net.InetAddress host,
long sessionId,
java.lang.Runnable callback)
get
public static StreamOutSession get(java.net.InetAddress host,
long sessionId)
getHost
public java.net.InetAddress getHost()
getSessionId
public long getSessionId()
addFilesToStream
public void addFilesToStream(java.util.List<PendingFile> pendingFiles)
retry
public void retry()
startNext
public void startNext()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
getDestinations
public static java.util.Set<java.net.InetAddress> getDestinations()
getOutgoingFiles
public static java.util.List<PendingFile> getOutgoingFiles(java.net.InetAddress host)
validateCurrentFile
public void validateCurrentFile(java.lang.String file)
begin
public void begin()
Copyright © 2011 The Apache Software Foundation