class ChecksumCancellableFSDataOutputStream extends CancellableFSDataOutputStream with Logging
An implementation of CancellableFSDataOutputStream that calculates the checksum of the file that the client is writing (main file) incrementally, while it is being written. It then writes the main file and an additional checksum file, which will be used for verification by ChecksumFSDataInputStream on file read.
- Alphabetic
- By Inheritance
- ChecksumCancellableFSDataOutputStream
- Logging
- CancellableFSDataOutputStream
- FSDataOutputStream
- Abortable
- IOStatisticsSource
- StreamCapabilities
- CanSetDropBehind
- Syncable
- DataOutputStream
- DataOutput
- FilterOutputStream
- OutputStream
- Flushable
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ChecksumCancellableFSDataOutputStream(mainStream: CancellableFSDataOutputStream, path: Path, checksumStream: CancellableFSDataOutputStream, uploadThreadPool: ExecutionContext)
- mainStream
Output stream for the main file the client wants to write to
- path
The path of the main file
- checksumStream
Output stream for the checksum file to write the computed checksum
- uploadThreadPool
Thread pool used to concurrently upload the main and checksum file
Type Members
- implicit class LogStringContext extends AnyRef
- Definition Classes
- Logging
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def MDC(key: LogKey, value: Any): MDC
- Attributes
- protected
- Definition Classes
- Logging
- def abort(): AbortableResult
- Definition Classes
- FSDataOutputStream → Abortable
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cancel(): Unit
Cancel the
underlyingStreamand ensure that the output file is not generated.Cancel the
underlyingStreamand ensure that the output file is not generated.- Definition Classes
- ChecksumCancellableFSDataOutputStream → CancellableFSDataOutputStream
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def close(): Unit
- Definition Classes
- ChecksumCancellableFSDataOutputStream → FSDataOutputStream → FilterOutputStream → OutputStream → Closeable → AutoCloseable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flush(): Unit
- Definition Classes
- DataOutputStream → FilterOutputStream → OutputStream → Flushable
- Annotations
- @throws(classOf[java.io.IOException])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getIOStatistics(): IOStatistics
- Definition Classes
- FSDataOutputStream → IOStatisticsSource
- def getPos(): Long
- Definition Classes
- FSDataOutputStream
- def getWrappedStream(): OutputStream
- Definition Classes
- FSDataOutputStream
- Annotations
- @LimitedPrivate()
- def hasCapability(arg0: String): Boolean
- Definition Classes
- FSDataOutputStream → StreamCapabilities
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hflush(): Unit
- Definition Classes
- FSDataOutputStream → Syncable
- Annotations
- @throws(classOf[java.io.IOException])
- def hsync(): Unit
- Definition Classes
- FSDataOutputStream → Syncable
- Annotations
- @throws(classOf[java.io.IOException])
- def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def log: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logName: String
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def setDropBehind(arg0: Boolean): Unit
- Definition Classes
- FSDataOutputStream → CanSetDropBehind
- Annotations
- @throws(classOf[java.io.IOException])
- final def size(): Int
- Definition Classes
- DataOutputStream
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- FSDataOutputStream → AnyRef → Any
- val underlyingStream: OutputStream
- Attributes
- protected
- Definition Classes
- CancellableFSDataOutputStream
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withLogContext(context: Map[String, String])(body: => Unit): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def write(arg0: Array[Byte], arg1: Int, arg2: Int): Unit
- Definition Classes
- DataOutputStream → DataOutput → FilterOutputStream → OutputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def write(arg0: Int): Unit
- Definition Classes
- DataOutputStream → DataOutput → FilterOutputStream → OutputStream
- Annotations
- @throws(classOf[java.io.IOException])
- def write(arg0: Array[Byte]): Unit
- Definition Classes
- FilterOutputStream → OutputStream
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeBoolean(arg0: Boolean): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeByte(arg0: Int): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeBytes(arg0: String): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeChar(arg0: Int): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeChars(arg0: String): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeDouble(arg0: Double): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeFloat(arg0: Float): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeInt(arg0: Int): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeLong(arg0: Long): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeShort(arg0: Int): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
- final def writeUTF(arg0: String): Unit
- Definition Classes
- DataOutputStream → DataOutput
- Annotations
- @throws(classOf[java.io.IOException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)