org.apache.cassandra.io
Class Streaming

java.lang.Object
  extended by org.apache.cassandra.io.Streaming

public class Streaming
extends java.lang.Object


Nested Class Summary
static class Streaming.StreamFinishedVerbHandler
           
static class Streaming.StreamInitiateDoneVerbHandler
           
static class Streaming.StreamInitiateVerbHandler
           
 
Field Summary
static int RING_DELAY
           
 
Constructor Summary
Streaming()
           
 
Method Summary
static void requestRanges(java.net.InetAddress source, java.util.Collection<Range> ranges)
          Request ranges to be transferred
static void transferRanges(java.net.InetAddress target, java.util.Collection<Range> ranges, java.lang.Runnable callback)
          Split out files for all tables on disk locally for each range and then stream them to the target endpoint.
static void transferSSTables(java.net.InetAddress target, java.util.List<SSTableReader> sstables, java.lang.String table)
          Transfers a group of sstables from a single table to the target endpoint and then marks them as ready for local deletion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RING_DELAY

public static final int RING_DELAY
See Also:
Constant Field Values
Constructor Detail

Streaming

public Streaming()
Method Detail

transferRanges

public static void transferRanges(java.net.InetAddress target,
                                  java.util.Collection<Range> ranges,
                                  java.lang.Runnable callback)
Split out files for all tables on disk locally for each range and then stream them to the target endpoint.


transferSSTables

public static void transferSSTables(java.net.InetAddress target,
                                    java.util.List<SSTableReader> sstables,
                                    java.lang.String table)
                             throws java.io.IOException
Transfers a group of sstables from a single table to the target endpoint and then marks them as ready for local deletion.

Throws:
java.io.IOException

requestRanges

public static void requestRanges(java.net.InetAddress source,
                                 java.util.Collection<Range> ranges)
Request ranges to be transferred



Copyright © 2010 The Apache Software Foundation