org.apache.cassandra.streaming
Class StreamInManager

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

public class StreamInManager
extends java.lang.Object

each context gets its own StreamInManager. So there may be >1 StreamInManager per host


Field Summary
static com.google.common.collect.Multimap<StreamContext,PendingFile> activeStreams
           
static com.google.common.collect.Multimap<java.net.InetAddress,StreamContext> sourceHosts
           
 
Method Summary
 void addFilesToRequest(java.util.List<PendingFile> pendingFiles)
           
 void finishAndRequestNext(PendingFile lastFile)
          Complete the transfer process of the existing file and then request the next file in the list
static StreamInManager get(StreamContext context)
           
static java.util.List<PendingFile> getIncomingFiles(java.net.InetAddress host)
          query the status of incoming files.
static java.util.Set<StreamContext> getSources()
          query method to determine which hosts are streaming to this node.
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activeStreams

public static final com.google.common.collect.Multimap<StreamContext,PendingFile> activeStreams

sourceHosts

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

get

public static StreamInManager get(StreamContext context)

addFilesToRequest

public void addFilesToRequest(java.util.List<PendingFile> pendingFiles)

finishAndRequestNext

public void finishAndRequestNext(PendingFile lastFile)
Complete the transfer process of the existing file and then request the next file in the list


remove

public void remove()

getSources

public static java.util.Set<StreamContext> getSources()
query method to determine which hosts are streaming to this node.


getIncomingFiles

public static java.util.List<PendingFile> getIncomingFiles(java.net.InetAddress host)
query the status of incoming files.



Copyright © 2010 The Apache Software Foundation