org.apache.cassandra.io
Class Streaming
java.lang.Object
org.apache.cassandra.io.Streaming
public class Streaming
- extends java.lang.Object
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 |
RING_DELAY
public static final int RING_DELAY
- See Also:
- Constant Field Values
Streaming
public Streaming()
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