Class StreamTask

  • Direct Known Subclasses:
    StreamReceiveTask, StreamTransferTask

    public abstract class StreamTask
    extends java.lang.Object
    StreamTask is an abstraction of the streaming task performed over specific ColumnFamily.
    • Field Detail

      • session

        protected final StreamSession session
        StreamSession that this task belongs
      • tableId

        protected final TableId tableId
    • Method Detail

      • 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

        public StreamSummary getSummary()
        Returns:
        StreamSummary that describes this task