Package org.opendaylight.raft.spi
@Export
package org.opendaylight.raft.spi
Classes that are helpful for implementing RAFT.
-
ClassDescriptionA
SizedStreamSourceproviding access to a slice of a regular file, similar to aByteBuffer.Abstract base class forRaftPolicyResolverimplementations.A ProgressTracker subclass which usesticksWorkedPerClosedTaskto compute delays.AnOutputStreamwhich 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.AnOutputStreamimplementation 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 andSnapshotSources.AnOutputStreamthat starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.Configuration forFileBackedOutputStream.A factory for creatingFileBackedOutputStreaminstances.AnAbstractFileStreamSourcebacked by an explicitly-managed file.The state part logical content of an InstallSnapshot RPC.AnInstallableSnapshotbacked by aSnapshotSource.Enumeration of supported LZ4 block sizes.A LZ4-compressedSnapshotSource.Utilities supporting LZ4 compression and decompression.RaftPolicyResolverfor OSGi.ASnapshotSourcecorresponding directly to the serialization format of a snapshot.Base class for tracking throughput and computing delays when processing stream of tasks.The RaftPolicy is intended to change the default behavior of Raft.A component capable of instantiating aRaftPolicyfrom its symbolic name.Support forObjectInputStreams backed by an explicit ordered set ofClassLoaders plus theClassLoader.getPlatformClassLoader().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.AnStreamSourcewhich knows its size.A source of bytes comprising the contents of a snapshot.Interface capturing the ability to openInputStreams.A reference to a file which needs to be deleted once no longer in use.AnAbstractFileStreamSourcebacked by aTransientFile.A lazily-sourcesStreamSource.Well-knownRaftPolicyimplementations.