org.apache.cassandra.streaming
Class StreamOutManager

java.lang.Object
  extended by org.apache.cassandra.streaming.StreamOutManager

public class StreamOutManager
extends java.lang.Object

This class manages the streaming of multiple files one after the other.


Field Summary
static com.google.common.collect.Multimap<java.net.InetAddress,StreamContext> destHosts
           
 
Method Summary
 void addFilesToStream(java.util.List<PendingFile> pendingFiles)
           
 void finishAndStartNext(java.lang.String pfname)
           
static StreamOutManager get(StreamContext context)
           
static java.util.Set<java.net.InetAddress> getDestinations()
           
static java.util.List<PendingFile> getOutgoingFiles(java.net.InetAddress host)
           
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.
static void remove(StreamContext context)
           
 void removePending(PendingFile pf)
           
 void retry(java.lang.String file)
           
 void waitForStreamCompletion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destHosts

public static final com.google.common.collect.Multimap<java.net.InetAddress,StreamContext> destHosts
Method Detail

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