|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.streaming.StreamOut
public class StreamOut
This class handles streaming data from one node to another. For StreamingRepair and Unbootstrap 1. The ranges are transferred on a single file basis. 2. Each transfer has the header information for the sstable being transferred. 3. List of the pending files are maintained, as this is the source node. For StreamRequests 1. The ranges are compiled and the first file transferred. 2. The header contains the first file info + all the remaining pending files info. 3. List of the pending files are not maintained, that will be maintained by the destination node
Constructor Summary | |
---|---|
StreamOut()
|
Method Summary | |
---|---|
static void |
transferRanges(java.net.InetAddress target,
java.lang.String tableName,
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 |
transferRangesForRequest(StreamContext context,
java.lang.String tableName,
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(StreamContext context,
java.lang.String table,
java.util.Collection<SSTableReader> sstables,
java.util.Collection<Range> ranges)
Transfers matching portions of a group of sstables from a single table to the target endpoint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamOut()
Method Detail |
---|
public static void transferRanges(java.net.InetAddress target, java.lang.String tableName, java.util.Collection<Range> ranges, java.lang.Runnable callback)
public static void transferRangesForRequest(StreamContext context, java.lang.String tableName, java.util.Collection<Range> ranges, java.lang.Runnable callback)
public static void transferSSTables(StreamContext context, java.lang.String table, java.util.Collection<SSTableReader> sstables, java.util.Collection<Range> ranges) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |