Package org.apache.cassandra.streaming
Class StreamTask
java.lang.Object
org.apache.cassandra.streaming.StreamTask
- Direct Known Subclasses:
StreamReceiveTask,StreamTransferTask
StreamTask is an abstraction of the streaming task performed over specific ColumnFamily.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StreamSessionStreamSession that this task belongsprotected final TableId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidabort()Abort the task.abstract intabstract long
-
Field Details
-
session
StreamSession that this task belongs -
tableId
-
-
Constructor Details
-
StreamTask
-
-
Method Details
-
getTotalNumberOfFiles
public abstract int getTotalNumberOfFiles()- Returns:
- total number of files this task receives/streams.
-
getTotalSize
public abstract long getTotalSize()- Returns:
- total bytes expected to receive
-
abort
public abstract void abort()Abort the task. Subclass should implement cleaning up resources. -
getSummary
- Returns:
- StreamSummary that describes this task
-