org.apache.cassandra.streaming
Class StreamIn

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

public class StreamIn
extends java.lang.Object

for streaming data from other nodes in to this one


Constructor Summary
StreamIn()
           
 
Method Summary
static PendingFile getContextMapping(PendingFile remote)
          Translates remote files to local files by creating a local sstable per remote sstable.
static void requestFile(StreamContext context, PendingFile file)
          Request for transferring a single file.
static void requestRanges(java.net.InetAddress source, java.lang.String tableName, java.util.Collection<Range> ranges)
          Request ranges to be transferred from source to local node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamIn

public StreamIn()
Method Detail

requestRanges

public static void requestRanges(java.net.InetAddress source,
                                 java.lang.String tableName,
                                 java.util.Collection<Range> ranges)
Request ranges to be transferred from source to local node


requestFile

public static void requestFile(StreamContext context,
                               PendingFile file)
Request for transferring a single file. This happens subsequent of #requestRanges() being called.

Parameters:
file - Pending File that needs to be transferred

getContextMapping

public static PendingFile getContextMapping(PendingFile remote)
                                     throws java.io.IOException
Translates remote files to local files by creating a local sstable per remote sstable.

Throws:
java.io.IOException


Copyright © 2010 The Apache Software Foundation