|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cassandra.streaming.StreamInSession
public class StreamInSession
each context gets its own StreamInSession. So there may be >1 Session per host
Method Summary | |
---|---|
void |
addFiles(java.util.Collection<PendingFile> files)
|
void |
closeIfFinished()
|
static StreamInSession |
create(java.net.InetAddress host,
java.lang.Runnable callback)
|
void |
finished(PendingFile remoteFile,
PendingFile localFile)
|
static StreamInSession |
get(java.net.InetAddress host,
long sessionId)
|
java.net.InetAddress |
getHost()
|
static java.util.Set<PendingFile> |
getIncomingFiles(java.net.InetAddress host)
query the status of incoming files. |
long |
getSessionId()
|
static java.util.Set<java.net.InetAddress> |
getSources()
query method to determine which hosts are streaming to this node. |
void |
retry(PendingFile remoteFile)
|
void |
setCurrentFile(PendingFile file)
|
void |
setTable(java.lang.String table)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static StreamInSession create(java.net.InetAddress host, java.lang.Runnable callback)
public static StreamInSession get(java.net.InetAddress host, long sessionId)
public void setCurrentFile(PendingFile file)
public void setTable(java.lang.String table)
public void addFiles(java.util.Collection<PendingFile> files)
public void finished(PendingFile remoteFile, PendingFile localFile) throws java.io.IOException
java.io.IOException
public void retry(PendingFile remoteFile) throws java.io.IOException
java.io.IOException
public void closeIfFinished() throws java.io.IOException
java.io.IOException
public long getSessionId()
public java.net.InetAddress getHost()
public static java.util.Set<java.net.InetAddress> getSources()
public static java.util.Set<PendingFile> getIncomingFiles(java.net.InetAddress host)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |