org.apache.cassandra.streaming
Class StreamOutManager
java.lang.Object
org.apache.cassandra.streaming.StreamOutManager
public class StreamOutManager
- extends java.lang.Object
This class manages the streaming of multiple files one after the other.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
destHosts
public static final com.google.common.collect.Multimap<java.net.InetAddress,StreamContext> destHosts
get
public static StreamOutManager get(StreamContext context)
remove
public static void remove(StreamContext context)
getDestinations
public static java.util.Set<java.net.InetAddress> getDestinations()
getPendingFiles
public static java.util.List<PendingFile> getPendingFiles(StreamContext context)
- this method exists so that we don't have to call StreamOutManager.get() which has a nasty side-effect of
indicating that we are streaming to a particular host.
getOutgoingFiles
public static java.util.List<PendingFile> getOutgoingFiles(java.net.InetAddress host)
addFilesToStream
public void addFilesToStream(java.util.List<PendingFile> pendingFiles)
retry
public void retry(java.lang.String file)
finishAndStartNext
public void finishAndStartNext(java.lang.String pfname)
throws java.io.IOException
- Throws:
java.io.IOException
removePending
public void removePending(PendingFile pf)
waitForStreamCompletion
public void waitForStreamCompletion()
Copyright © 2010 The Apache Software Foundation