Package org.opendaylight.raft.spi
@Export
package org.opendaylight.raft.spi
Classes that are helpful for implementing RAFT.
-
ClassDescriptionA
SizedStreamSource
providing access to a slice of a regular file, similar to aByteBuffer
.A ProgressTracker subclass which usesticksWorkedPerClosedTask
to compute delays.AnOutputStream
which stats off writing to a ByteBuf, but switches to a file.The moral equivalent of abyte[]
, but perhaps allocated in chunks so as to be GC-friendly.AnOutputStream
implementation which collects data is a series ofbyte[]
chunks, each of which has a fixed maximum size.Enumeration of compression schemes we support for data streams andSnapshotSource
s.AnOutputStream
that starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.Configuration forFileBackedOutputStream
.A factory for creatingFileBackedOutputStream
instances.AnAbstractFileStreamSource
backed by an explicitly-managed file.The state part logical content of an InstallSnapshot RPC.AnInstallableSnapshot
backed by aSnapshotSource
.Enumeration of supported LZ4 block sizes.A LZ4-compressedSnapshotSource
.Utilities supporting LZ4 compression and decompression.ASnapshotSource
corresponding directly to the serialization format of a snapshot.Base class for tracking throughput and computing delays when processing stream of tasks.A FileBackedOutputStream that allows for sharing in that it maintains a usage count and the backing file isn't deleted until the usage count reaches 0.AnStreamSource
which knows its size.A source of bytes comprising the contents of a snapshot.Interface capturing the ability to openInputStream
s.A reference to a file which needs to be deleted once no longer in use.AnAbstractFileStreamSource
backed by aTransientFile
.A lazily-sourcesStreamSource
.