Package org.apache.cassandra.streaming
Interface TableStreamManager
-
- All Known Implementing Classes:
CassandraStreamManager
public interface TableStreamManager
The main streaming hook for a storage implementation. From here, the streaming system can get instances ofStreamReceiver
,IncomingStream
, andOutgoingStream
, which expose the interfaces into the the underlying storage implementation needed to make streaming work.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<OutgoingStream>
createOutgoingStreams(StreamSession session, RangesAtEndpoint replicas, TimeUUID pendingRepair, PreviewKind previewKind)
Returns a collection ofOutgoingStream
s that contains the data selected by the given replicas, pendingRepair, and preview.StreamReceiver
createStreamReceiver(StreamSession session, int totalStreams)
Creates aStreamReceiver
for the given session, expecting the given number of streamsIncomingStream
prepareIncomingStream(StreamSession session, StreamMessageHeader header)
Creates anIncomingStream
for the given header
-
-
-
Method Detail
-
createStreamReceiver
StreamReceiver createStreamReceiver(StreamSession session, int totalStreams)
Creates aStreamReceiver
for the given session, expecting the given number of streams
-
prepareIncomingStream
IncomingStream prepareIncomingStream(StreamSession session, StreamMessageHeader header)
Creates anIncomingStream
for the given header
-
createOutgoingStreams
java.util.Collection<OutgoingStream> createOutgoingStreams(StreamSession session, RangesAtEndpoint replicas, TimeUUID pendingRepair, PreviewKind previewKind)
Returns a collection ofOutgoingStream
s that contains the data selected by the given replicas, pendingRepair, and preview. There aren't any requirements on how data is divided between the outgoing streams
-
-