Skip navigation links
A B C D E F G H I J L M N O P Q R S T U V W Z 

A

abort() - Method in class org.apache.ratis.util.AtomicFileOutputStream
Close the atomic file, but do not "commit" the temporary file on top of the destination.
accept(LEFT, RIGHT) - Method in interface org.apache.ratis.util.function.CheckedBiConsumer
The same as BiConsumer.accept(Object, Object) except that this method is declared with a throws-clause.
accept(INPUT) - Method in interface org.apache.ratis.util.function.CheckedConsumer
The same as Consumer.accept(Object) except that this method is declared with a throws-clause.
accept(T, U, V) - Method in interface org.apache.ratis.util.function.TriConsumer
The same as BiConsumer.accept(Object, Object)} except that this method is declared with three parameters.
accumulate(long) - Method in class org.apache.ratis.util.LongMinMax
Update min and max with the given number.
acquire(Lock) - Static method in class org.apache.ratis.util.AutoCloseableLock
Acquire the given lock and then wrap it with AutoCloseableLock so that the given lock can be released by calling AutoCloseableLock.close(), or by using a try-with-resources statement as shown below.
acquire(Lock, Runnable) - Static method in class org.apache.ratis.util.AutoCloseableLock
 
acquire(int...) - Method in class org.apache.ratis.util.ResourceSemaphore.Group
 
Add(RaftGroup) - Constructor for class org.apache.ratis.protocol.GroupManagementRequest.Add
 
add(TimeDuration) - Method in class org.apache.ratis.util.TimeDuration
 
add(long, TimeUnit) - Method in class org.apache.ratis.util.TimeDuration
 
addRaftPeers(Collection<RaftPeer>) - Method in interface org.apache.ratis.protocol.RaftPeer.Add
Add the given peers.
addRaftPeers(RaftPeer...) - Method in interface org.apache.ratis.protocol.RaftPeer.Add
Add the given peers.
addRaftPeers(Collection<RaftPeer>) - Method in class org.apache.ratis.util.PeerProxyMap
 
address2String(InetSocketAddress) - Static method in interface org.apache.ratis.util.NetUtils
 
addSuccessor(RaftPeerId, RaftPeerId) - Method in class org.apache.ratis.protocol.RoutingTable.Builder
 
addSuccessors(RaftPeerId, Collection<RaftPeerId>) - Method in class org.apache.ratis.protocol.RoutingTable.Builder
 
addSuccessors(RaftPeerId, RaftPeerId...) - Method in class org.apache.ratis.protocol.RoutingTable.Builder
 
addTime(TimeDuration) - Method in class org.apache.ratis.util.Timestamp
 
addTimeMs(long) - Method in class org.apache.ratis.util.Timestamp
 
AdminAsynchronousProtocol - Interface in org.apache.ratis.protocol
Asynchronous version of AdminProtocol.
AdminProtocol - Interface in org.apache.ratis.protocol
For server administration.
allOf(Collection<CompletableFuture<T>>) - Static method in interface org.apache.ratis.util.JavaUtils
 
AlreadyClosedException - Exception in org.apache.ratis.protocol.exceptions
The corresponding object is already closed.
AlreadyClosedException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.AlreadyClosedException
 
AlreadyClosedException(String, Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.AlreadyClosedException
 
AlreadyExistsException - Exception in org.apache.ratis.protocol.exceptions
Signals that an attempt to create a file at a given pathname has failed because another file already existed at that path.
AlreadyExistsException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.AlreadyExistsException
 
AlreadyExistsException(Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.AlreadyExistsException
 
append(StringBuilder, Field) - Static method in interface org.apache.ratis.conf.ConfUtils
 
apply(LEFT, RIGHT) - Method in interface org.apache.ratis.util.function.CheckedBiFunction
The same as BiFunction.apply(Object, Object) except that this method is declared with a throws-clause.
apply(INPUT) - Method in interface org.apache.ratis.util.function.CheckedFunction
The same as Function.apply(Object) except that this method is declared with a throws-clause.
apply(INPUT, TimeDuration) - Method in interface org.apache.ratis.util.function.CheckedFunctionWithTimeout
The same as CheckedFunction.apply(Object) except that this method has a timeout parameter and throws TimeoutException.
apply(LongUnaryOperator) - Method in class org.apache.ratis.util.TimeDuration
Apply the given operator to the duration value of this object.
apply(CheckedBiFunction<Long, TimeUnit, OUTPUT, THROWABLE>) - Method in class org.apache.ratis.util.TimeDuration
Apply the given function to the (duration, unit) of this object.
as(Iterable<INPUT>, Function<INPUT, OUTPUT>) - Static method in interface org.apache.ratis.util.CollectionUtils
 
as(INPUT[], Function<INPUT, OUTPUT>) - Static method in interface org.apache.ratis.util.CollectionUtils
 
asBiConsumer(CompletableFuture<V>) - Static method in interface org.apache.ratis.util.JavaUtils
 
asCheckedFunction(CheckedConsumer<INPUT, THROWABLE>) - Static method in interface org.apache.ratis.util.function.CheckedConsumer
 
asCheckedSupplier(CheckedRunnable<THROWABLE>) - Static method in interface org.apache.ratis.util.function.CheckedRunnable
 
asIOException(Throwable) - Static method in interface org.apache.ratis.util.IOUtils
 
assertCurrentState(Set<LifeCycle.State>) - Method in class org.apache.ratis.util.LifeCycle
Assert if the current state equals to one of the expected states.
assertCurrentState(BiFunction<String, LifeCycle.State, T>, Set<LifeCycle.State>) - Method in class org.apache.ratis.util.LifeCycle
Assert if the current state equals to one of the expected states.
assertInstanceOf(Object, Class<T>) - Static method in interface org.apache.ratis.util.Preconditions
 
assertKey(String, int, Object, Class<?>) - Static method in interface org.apache.ratis.conf.ConfUtils
 
assertNotNull(T, Supplier<String>) - Static method in interface org.apache.ratis.util.Preconditions
 
assertNotNull(T, String) - Static method in interface org.apache.ratis.util.Preconditions
 
assertNotTerminated() - Static method in interface org.apache.ratis.util.ExitUtils
 
assertNull(Object, Supplier<String>) - Static method in interface org.apache.ratis.util.Preconditions
 
assertNull(Object, String) - Static method in interface org.apache.ratis.util.Preconditions
 
assertOpen() - Method in class org.apache.ratis.util.OpenCloseState
Assert this is open.
assertSame(long, long, String) - Static method in interface org.apache.ratis.util.Preconditions
 
assertTrue(boolean) - Static method in interface org.apache.ratis.util.Preconditions
Assert if the given value is true.
assertTrue(boolean, Object) - Static method in interface org.apache.ratis.util.Preconditions
Assert if the given value is true.
assertTrue(boolean, String, Object...) - Static method in interface org.apache.ratis.util.Preconditions
Assert if the given value is true.
assertTrue(boolean, Supplier<Object>) - Static method in interface org.apache.ratis.util.Preconditions
Assert if the given value is true.
assertUnique(Iterable<T>) - Static method in interface org.apache.ratis.util.Preconditions
 
assertUnique(Iterable<T>, Iterable<T>) - Static method in interface org.apache.ratis.util.Preconditions
 
AtomicFileOutputStream - Class in org.apache.ratis.util
A FilterOutputStream that writes to a file atomically.
AtomicFileOutputStream(File) - Constructor for class org.apache.ratis.util.AtomicFileOutputStream
 
AtomicFileOutputStream(File, File) - Constructor for class org.apache.ratis.util.AtomicFileOutputStream
 
attempt(CheckedSupplier<T, IOException>, Supplier<?>) - Static method in interface org.apache.ratis.util.FileUtils
 
attempt(CheckedSupplier<RETURN, THROWABLE>, int, TimeDuration, Supplier<?>, Logger) - Static method in interface org.apache.ratis.util.JavaUtils
Attempt to get a return value from the given supplier multiple times.
attempt(CheckedRunnable<THROWABLE>, int, TimeDuration, String, Logger) - Static method in interface org.apache.ratis.util.JavaUtils
Attempt to run the given op multiple times.
attemptRepeatedly(CheckedSupplier<RETURN, THROWABLE>, int, TimeDuration, String, Logger) - Static method in interface org.apache.ratis.util.JavaUtils
Attempt to get a return value from the given supplier multiple times.
attemptUntilTrue(BooleanSupplier, int, TimeDuration, String, Logger) - Static method in interface org.apache.ratis.util.JavaUtils
Attempt to wait the given condition to return true multiple times.
AutoCloseableLock - Class in org.apache.ratis.util
Wrap a lock with the AutoCloseable interface so that the AutoCloseableLock.close() method will unlock the lock.
AutoCloseableReadWriteLock - Class in org.apache.ratis.util
 
AutoCloseableReadWriteLock(Object) - Constructor for class org.apache.ratis.util.AutoCloseableReadWriteLock
 
await() - Method in class org.apache.ratis.util.AwaitForSignal
The same as Condition.await()
await(long, TimeUnit) - Method in class org.apache.ratis.util.AwaitForSignal
AwaitForSignal - Class in org.apache.ratis.util
This class is a partial implementation of Condition.
AwaitForSignal(Object) - Constructor for class org.apache.ratis.util.AwaitForSignal
 

B

build() - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
build() - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
build() - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
build() - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
build() - Method in class org.apache.ratis.protocol.RoutingTable.Builder
 
build() - Method in class org.apache.ratis.retry.ExceptionDependentRetry.Builder
 
build() - Method in class org.apache.ratis.retry.ExponentialBackoffRetry.Builder
 
build() - Method in class org.apache.ratis.security.TlsConf.Builder
 
Builder() - Constructor for class org.apache.ratis.protocol.RaftClientReply.Builder
 
Builder() - Constructor for class org.apache.ratis.protocol.RaftClientRequest.Builder
 
Builder() - Constructor for class org.apache.ratis.protocol.RaftPeer.Builder
 
Builder() - Constructor for class org.apache.ratis.retry.ExceptionDependentRetry.Builder
 
Builder() - Constructor for class org.apache.ratis.security.TlsConf.Builder
 
bytes2HexShortString(ByteString) - Static method in class org.apache.ratis.util.StringUtils
 
bytes2HexString(ByteString) - Static method in class org.apache.ratis.util.StringUtils
 
bytes2HexString(byte[]) - Static method in class org.apache.ratis.util.StringUtils
 
bytes2HexString(byte[], int, int) - Static method in class org.apache.ratis.util.StringUtils
 
bytes2HexString(ByteBuffer) - Static method in class org.apache.ratis.util.StringUtils
 
bytes2Object(byte[], Class<T>) - Static method in interface org.apache.ratis.util.IOUtils
 

C

callAsUnchecked(Callable<T>) - Static method in interface org.apache.ratis.util.JavaUtils
Invoke Callable.call() and, if there any, wrap the checked exception by RuntimeException.
callAsUnchecked(CheckedSupplier<OUTPUT, THROWABLE>, Function<THROWABLE, ? extends RuntimeException>) - Static method in interface org.apache.ratis.util.JavaUtils
 
CallId - Class in org.apache.ratis.rpc
A long ID for RPC calls.
cast(Object, Class<T>) - Static method in interface org.apache.ratis.util.JavaUtils
The same as Class.cast(Object) except that this method returns null (but not throw ClassCastException) if the given object is not an instance of the given class.
cast(Object) - Static method in interface org.apache.ratis.util.JavaUtils
 
CertificatesConf(Iterable<X509Certificate>) - Constructor for class org.apache.ratis.security.TlsConf.CertificatesConf
 
CertificatesConf(X509Certificate...) - Constructor for class org.apache.ratis.security.TlsConf.CertificatesConf
 
CertificatesConf(File) - Constructor for class org.apache.ratis.security.TlsConf.CertificatesConf
 
CheckedBiConsumer<LEFT,RIGHT,THROWABLE extends Throwable> - Interface in org.apache.ratis.util.function
BiConsumer with a throws-clause.
CheckedBiFunction<LEFT,RIGHT,OUTPUT,THROWABLE extends Throwable> - Interface in org.apache.ratis.util.function
BiFunction with a throws-clause.
CheckedConsumer<INPUT,THROWABLE extends Throwable> - Interface in org.apache.ratis.util.function
Consumer with a throws-clause.
CheckedFunction<INPUT,OUTPUT,THROWABLE extends Throwable> - Interface in org.apache.ratis.util.function
Function with a throws-clause.
CheckedFunctionWithTimeout<INPUT,OUTPUT,THROWABLE extends Throwable> - Interface in org.apache.ratis.util.function
Function with a timeout and a throws-clause.
CheckedRunnable<THROWABLE extends Throwable> - Interface in org.apache.ratis.util.function
Runnable with a throws-clause.
CheckedSupplier<OUTPUT,THROWABLE extends Throwable> - Interface in org.apache.ratis.util.function
Supplier with a throws-clause.
checkStateAndClose() - Method in class org.apache.ratis.util.LifeCycle
Check the current state and, if applicable, transit to LifeCycle.State.CLOSING.
checkStateAndClose(CheckedRunnable<T>) - Method in class org.apache.ratis.util.LifeCycle
Check the current state and, if applicable, run the given close method.
ChecksumException - Exception in org.apache.ratis.protocol.exceptions
Thrown for checksum errors.
ChecksumException(String, long) - Constructor for exception org.apache.ratis.protocol.exceptions.ChecksumException
 
CLASS_SIMPLE_NAMES - Static variable in interface org.apache.ratis.util.JavaUtils
 
Classes() - Constructor for class org.apache.ratis.util.ReflectionUtils.Classes
 
cleanup(Logger, Closeable...) - Static method in interface org.apache.ratis.util.IOUtils
Close the Closeable objects and ignore any Throwable or null pointers.
clear() - Method in class org.apache.ratis.conf.RaftProperties
Clears all keys from the configuration.
clear() - Method in class org.apache.ratis.util.DataBlockingQueue
 
clear() - Method in class org.apache.ratis.util.DataQueue
The same as Collection.clear().
clear() - Static method in interface org.apache.ratis.util.ExitUtils
Clear all previous terminate(..) calls, if there are any.
Client(Object) - Constructor for class org.apache.ratis.util.SlidingWindow.Client
 
ClientId - Class in org.apache.ratis.protocol
Id of Raft client.
ClientInvocationId - Class in org.apache.ratis.protocol
The id of a client invocation.
close() - Method in interface org.apache.ratis.io.CloseAsync
close() - Method in class org.apache.ratis.util.AtomicFileOutputStream
 
close() - Method in class org.apache.ratis.util.AutoCloseableLock
Unlock the underlying lock.
close() - Method in class org.apache.ratis.util.OpenCloseState
Transit to close state.
close() - Method in class org.apache.ratis.util.PeerProxyMap
 
close() - Method in class org.apache.ratis.util.ResourceSemaphore
Close the resource.
close() - Method in class org.apache.ratis.util.ResourceSemaphore.Group
 
close() - Method in class org.apache.ratis.util.SlidingWindow.Server
 
close() - Method in class org.apache.ratis.util.TimeoutScheduler
 
close() - Method in interface org.apache.ratis.util.UncheckedAutoCloseable
 
CloseAsync<REPLY> - Interface in org.apache.ratis.io
Support the CloseAsync.closeAsync() method.
closeAsync() - Method in interface org.apache.ratis.io.CloseAsync
Close asynchronously.
CLOSING_OR_CLOSED - Static variable in class org.apache.ratis.util.LifeCycle.States
 
CLOSING_OR_CLOSED_OR_EXCEPTION - Static variable in class org.apache.ratis.util.LifeCycle.States
 
CodeInjectionForTesting - Class in org.apache.ratis.util
Inject code for testing.
CodeInjectionForTesting.Code - Interface in org.apache.ratis.util
Code to be injected.
CollectionUtils - Interface in org.apache.ratis.util
 
combine(LongMinMax) - Method in class org.apache.ratis.util.LongMinMax
Combine that to this.
compareAndTransition(LifeCycle.State, LifeCycle.State) - Method in class org.apache.ratis.util.LifeCycle
If the current state is equal to the specified from state, then transition to the give to state; otherwise, make no change.
compareTo(TimeDuration) - Method in class org.apache.ratis.util.TimeDuration
 
compareTo(Timestamp) - Method in class org.apache.ratis.util.Timestamp
Compare two timestamps, t0 (this) and t1 (that).
completableFuture2String(CompletableFuture<?>, boolean) - Static method in class org.apache.ratis.util.StringUtils
 
completeExceptionally(Throwable) - Static method in interface org.apache.ratis.util.JavaUtils
 
computeIfAbsent(ConcurrentMap<K, V>, K, Supplier<V>, Runnable) - Static method in interface org.apache.ratis.util.CollectionUtils
 
computeIfAbsent(ConcurrentMap<K, V>, K, Supplier<V>) - Static method in interface org.apache.ratis.util.CollectionUtils
 
computeIfAbsent(RaftPeer) - Method in class org.apache.ratis.util.PeerProxyMap
This method is similar to Map.computeIfAbsent(Object, java.util.function.Function) except that this method does not require a mapping function.
computeMd5ForFile(File) - Static method in class org.apache.ratis.util.MD5FileUtil
Read dataFile and compute its MD5 checksum.
ConcurrentUtils - Interface in org.apache.ratis.util
Utilities related to concurrent programming.
ConfUtils - Interface in org.apache.ratis.conf
 
Constants() - Constructor for class org.apache.ratis.retry.RetryPolicies.Constants
 
consumerAsNullFunction(Consumer<INPUT>) - Static method in interface org.apache.ratis.util.function.FunctionUtils
Convert the given consumer to a function with any output type such that the returned function always returns null.
containsOption(WriteOption[], WriteOption) - Static method in interface org.apache.ratis.io.WriteOption
 
CorruptedFileException - Exception in org.apache.ratis.io
 
CorruptedFileException(File, String) - Constructor for exception org.apache.ratis.io.CorruptedFileException
 
Create() - Constructor for class org.apache.ratis.protocol.SnapshotManagementRequest.Create
 
createDirectories(File) - Static method in interface org.apache.ratis.util.FileUtils
 
createDirectories(Path) - Static method in interface org.apache.ratis.util.FileUtils
 
createLocalServerAddress(int) - Static method in interface org.apache.ratis.util.NetUtils
Creates count unique local addresses.
createLocalServerAddress() - Static method in interface org.apache.ratis.util.NetUtils
Creates a unique local address.
createNewFile(Path) - Static method in interface org.apache.ratis.util.FileUtils
 
createProxyImpl(RaftPeer) - Method in class org.apache.ratis.util.PeerProxyMap
 
createSocketAddr(String) - Static method in interface org.apache.ratis.util.NetUtils
The same as createSocketAddr(target, -1).
createSocketAddr(String, int) - Static method in interface org.apache.ratis.util.NetUtils
Create an InetSocketAddress from the given target and default port.
createSocketAddrForHost(String, int) - Static method in interface org.apache.ratis.util.NetUtils
Create a socket address with the given host and port.
currentDateTime() - Static method in class org.apache.ratis.util.StringUtils
 
currentTime() - Static method in class org.apache.ratis.util.Timestamp
 
currentTimeNanos() - Static method in class org.apache.ratis.util.Timestamp
 

D

Daemon - Class in org.apache.ratis.util
 
Daemon() - Constructor for class org.apache.ratis.util.Daemon
Construct a daemon thread.
Daemon(Runnable) - Constructor for class org.apache.ratis.util.Daemon
Construct a daemon thread with the given runnable.
Daemon(Runnable, String) - Constructor for class org.apache.ratis.util.Daemon
Construct a daemon thread with the given runnable.
DataBlockingQueue<E> - Class in org.apache.ratis.util
A queue for data elements such that the queue imposes limits on both number of elements and the data size in bytes.
DataBlockingQueue(Object, SizeInBytes, int, ToLongFunction<E>) - Constructor for class org.apache.ratis.util.DataBlockingQueue
 
DataQueue<E> - Class in org.apache.ratis.util
A queue for data elements such that the queue imposes limits on both number of elements and the data size in bytes.
DataQueue(Object, SizeInBytes, int, ToLongFunction<E>) - Constructor for class org.apache.ratis.util.DataQueue
 
DataStreamException - Exception in org.apache.ratis.protocol.exceptions
 
DataStreamException(RaftPeerId, Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.DataStreamException
 
DataStreamException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.DataStreamException
 
DataStreamFactory - Interface in org.apache.ratis.datastream
 
DataStreamPacket - Interface in org.apache.ratis.protocol
 
DataStreamPacketByteBuffer - Class in org.apache.ratis.datastream.impl
Implements DataStreamPacket with ByteBuffer.
DataStreamPacketByteBuffer(ClientId, RaftProtos.DataStreamPacketHeaderProto.Type, long, long, ByteBuffer) - Constructor for class org.apache.ratis.datastream.impl.DataStreamPacketByteBuffer
 
DataStreamPacketHeader - Class in org.apache.ratis.protocol
The header format is streamId, streamOffset, dataLength.
DataStreamPacketHeader(ClientId, RaftProtos.DataStreamPacketHeaderProto.Type, long, long, long) - Constructor for class org.apache.ratis.protocol.DataStreamPacketHeader
 
DataStreamPacketImpl - Class in org.apache.ratis.datastream.impl
This is an abstract implementation of DataStreamPacket.
DataStreamPacketImpl(ClientId, RaftProtos.DataStreamPacketHeaderProto.Type, long, long) - Constructor for class org.apache.ratis.datastream.impl.DataStreamPacketImpl
 
DataStreamReply - Interface in org.apache.ratis.protocol
 
DataStreamReplyByteBuffer - Class in org.apache.ratis.datastream.impl
Implements DataStreamReply with ByteBuffer.
DataStreamReplyByteBuffer.Builder - Class in org.apache.ratis.datastream.impl
 
DataStreamReplyHeader - Class in org.apache.ratis.protocol
The header format is DataStreamPacketHeader, bytesWritten and flags.
DataStreamReplyHeader(ClientId, RaftProtos.DataStreamPacketHeaderProto.Type, long, long, long, long, boolean, Collection<RaftProtos.CommitInfoProto>) - Constructor for class org.apache.ratis.protocol.DataStreamReplyHeader
 
DataStreamRequest - Interface in org.apache.ratis.protocol
 
DataStreamRequestByteBuffer - Class in org.apache.ratis.datastream.impl
Implements DataStreamRequest with ByteBuffer.
DataStreamRequestByteBuffer(DataStreamRequestHeader, ByteBuffer) - Constructor for class org.apache.ratis.datastream.impl.DataStreamRequestByteBuffer
 
DataStreamRequestFilePositionCount - Class in org.apache.ratis.datastream.impl
DataStreamRequestFilePositionCount(DataStreamRequestHeader, FilePositionCount) - Constructor for class org.apache.ratis.datastream.impl.DataStreamRequestFilePositionCount
 
DataStreamRequestHeader - Class in org.apache.ratis.protocol
The header format is the same DataStreamPacketHeader since there are no additional fields.
DataStreamRequestHeader(ClientId, RaftProtos.DataStreamPacketHeaderProto.Type, long, long, long, WriteOption...) - Constructor for class org.apache.ratis.protocol.DataStreamRequestHeader
 
dataStreamRequestType() - Static method in class org.apache.ratis.protocol.RaftClientRequest
 
DataStreamType - Interface in org.apache.ratis.datastream
The type of data stream implementations.
DataStreamType.Get - Interface in org.apache.ratis.datastream
An interface to get DataStreamType.
date() - Static method in interface org.apache.ratis.util.JavaUtils
 
delete(Path) - Static method in interface org.apache.ratis.util.FileUtils
Use Files.delete(Path) to delete the given path.
deleteFile(File) - Static method in interface org.apache.ratis.util.FileUtils
The same as passing f.toPath() to FileUtils.delete(Path).
deleteFileQuietly(File) - Static method in interface org.apache.ratis.util.FileUtils
The same as passing f.toPath() to FileUtils.delete(Path).
deleteFully(File) - Static method in interface org.apache.ratis.util.FileUtils
The same as passing f.toPath() to FileUtils.deleteFully(Path).
deleteFully(Path) - Static method in interface org.apache.ratis.util.FileUtils
Delete fully the given path.
digest(byte[]) - Static method in class org.apache.ratis.io.MD5Hash
Construct a hash value for a byte array.
digest(InputStream) - Static method in class org.apache.ratis.io.MD5Hash
Construct a hash value for the content from the InputStream.
digest(byte[], int, int) - Static method in class org.apache.ratis.io.MD5Hash
Construct a hash value for a byte array.
digest(byte[][], int, int) - Static method in class org.apache.ratis.io.MD5Hash
Construct a hash value for an array of byte array.
disableSystemExit() - Static method in interface org.apache.ratis.util.ExitUtils
Disable the use of System.exit(int).
dumpAllThreads(Consumer<String>) - Static method in interface org.apache.ratis.util.JavaUtils
 

E

elapsedTime() - Method in class org.apache.ratis.util.Timestamp
 
elapsedTimeMs() - Method in class org.apache.ratis.util.Timestamp
 
EMPTY - Static variable in interface org.apache.ratis.protocol.Message
 
EMPTY_BYTE_BUFFER - Static variable in class org.apache.ratis.datastream.impl.DataStreamPacketByteBuffer
 
EMPTY_COMPLETABLE_FUTURE_ARRAY - Static variable in interface org.apache.ratis.util.JavaUtils
 
EMPTY_STRING_ARRAY - Static variable in class org.apache.ratis.util.StringUtils
 
emptyArray() - Static method in class org.apache.ratis.protocol.RaftPeer
 
emptyClientId() - Static method in class org.apache.ratis.protocol.ClientId
 
emptyGroup() - Static method in class org.apache.ratis.protocol.RaftGroup
 
emptyGroupId() - Static method in class org.apache.ratis.protocol.RaftGroupId
 
endOfRequests(Consumer<REQUEST>) - Method in class org.apache.ratis.util.SlidingWindow.Server
Signal the end of requests.
equals(Object) - Method in class org.apache.ratis.io.MD5Hash
Returns true iff o is an MD5Hash whose digest contains the same values.
equals(Object) - Method in class org.apache.ratis.protocol.ClientInvocationId
 
equals(Object) - Method in class org.apache.ratis.protocol.RaftGroup
 
equals(Object) - Method in class org.apache.ratis.protocol.RaftGroupMemberId
 
equals(Object) - Method in class org.apache.ratis.protocol.RaftId
 
equals(Object) - Method in class org.apache.ratis.protocol.RaftPeer
 
equals(Object) - Method in class org.apache.ratis.protocol.RaftPeerId
 
equals(Object) - Method in class org.apache.ratis.retry.MultipleLinearRandomRetry
 
equals(Object) - Method in class org.apache.ratis.util.TimeDuration
 
equals(Object) - Method in class org.apache.ratis.util.Timestamp
 
ExceptionDependentRetry - Class in org.apache.ratis.retry
Exception dependent retry policy.
ExceptionDependentRetry.Builder - Class in org.apache.ratis.retry
 
execute(Object, Object, Object...) - Method in interface org.apache.ratis.util.CodeInjectionForTesting.Code
Execute the injected code for testing.
execute(String, Object, Object, Object...) - Static method in class org.apache.ratis.util.CodeInjectionForTesting
Execute the injected code, if there is any.
ExitUtils - Interface in org.apache.ratis.util
Facilitates hooking process termination for tests and debugging.
ExitUtils.ExitException - Exception in org.apache.ratis.util
 
ExitUtils.States - Class in org.apache.ratis.util
 
ExponentialBackoffRetry - Class in org.apache.ratis.retry
Retry Policy exponentially increases sleep time with randomness on successive retries.
ExponentialBackoffRetry.Builder - Class in org.apache.ratis.retry
 

F

fail(long, Throwable) - Method in class org.apache.ratis.util.SlidingWindow.Client
Fail all requests starting from the given seqNum.
fail(Throwable) - Method in interface org.apache.ratis.util.SlidingWindow.Request
 
FilePositionCount - Class in org.apache.ratis.io
Encapsulate a File with a starting position and a byte count.
FileUtils - Interface in org.apache.ratis.util
 
format(String, Object...) - Static method in class org.apache.ratis.util.StringUtils
The same as String.format(Locale.ENGLISH, format, objects).
forwardRequestType() - Static method in class org.apache.ratis.protocol.RaftClientRequest
 
FREEBSD - Static variable in class org.apache.ratis.util.PlatformUtils
 
FunctionUtils - Interface in org.apache.ratis.util.function
 

G

get(BiFunction<String, T, T>, String, T, Consumer<String>, BiConsumer<String, T>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
get(String, Class<T>) - Method in class org.apache.ratis.conf.Parameters
 
get(String) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property, null if no such property exists.
get(String, String) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name.
get() - Static method in class org.apache.ratis.rpc.CallId
 
get() - Method in interface org.apache.ratis.util.function.CheckedSupplier
The same as Supplier.get() except that this method is declared with a throws-clause.
get() - Method in class org.apache.ratis.util.MemoizedSupplier
 
get(String) - Static method in class org.apache.ratis.util.NetUtils.StaticResolution
 
get() - Method in interface org.apache.ratis.util.ReferenceCountedObject
 
get(int) - Method in class org.apache.ratis.util.ResourceSemaphore.Group
 
getAdd() - Method in class org.apache.ratis.protocol.GroupManagementRequest
 
getAddress() - Method in class org.apache.ratis.protocol.RaftPeer
 
getAdminAddress() - Method in class org.apache.ratis.protocol.RaftPeer
 
getAlreadyClosedException() - Method in class org.apache.ratis.protocol.RaftClientReply
If this reply has AlreadyClosedException, return it; otherwise return null.
getAndIncrement() - Static method in class org.apache.ratis.rpc.CallId
 
getAttemptCount() - Method in exception org.apache.ratis.protocol.exceptions.RaftRetryFailureException
 
getAttemptCount() - Method in interface org.apache.ratis.retry.RetryPolicy.Event
 
getBoolean(BiFunction<String, Boolean, Boolean>, String, boolean, Consumer<String>, BiConsumer<String, Boolean>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getBoolean(String, boolean) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property as a boolean.
getByteLimit() - Method in class org.apache.ratis.util.DataQueue
 
getBytesWritten() - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer
 
getBytesWritten() - Method in interface org.apache.ratis.protocol.DataStreamReply
 
getBytesWritten() - Method in class org.apache.ratis.protocol.DataStreamReplyHeader
 
getCallerStackTraceElement() - Static method in interface org.apache.ratis.util.JavaUtils
 
getCallId() - Method in exception org.apache.ratis.protocol.exceptions.NotReplicatedException
 
getCallId() - Method in class org.apache.ratis.protocol.RaftClientMessage
 
getCause() - Method in interface org.apache.ratis.retry.RetryPolicy.Event
 
getCauseCount() - Method in interface org.apache.ratis.retry.RetryPolicy.Event
 
getClass(String, Class<?>) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property as a Class.
getClass(String, Class<? extends BASE>, Class<BASE>) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property as a Class implementing the interface specified by xface.
getClass(String, Class<BASE>) - Static method in interface org.apache.ratis.util.ReflectionUtils
 
getClassByName(String) - Static method in interface org.apache.ratis.util.ReflectionUtils
Load a class by name.
getClassByName(String, ClassLoader) - Static method in interface org.apache.ratis.util.ReflectionUtils
Load a class by name through a specific classloader.
getClassByNameOrNull(String) - Static method in interface org.apache.ratis.util.ReflectionUtils
Load a class by name, returning null rather than throwing an exception if it couldn't be loaded.
getClassByNameOrNull(String, ClassLoader) - Static method in interface org.apache.ratis.util.ReflectionUtils
Load a class by name through a specific classloader, returning null rather than throwing an exception if it couldn't be loaded.
getClasses(String, Class<?>...) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property as an array of Class.
getClassLoader() - Static method in interface org.apache.ratis.util.ReflectionUtils
 
getClassSimpleName(Class<?>) - Static method in interface org.apache.ratis.util.JavaUtils
 
getClientAddress() - Method in class org.apache.ratis.protocol.RaftPeer
 
getClientId() - Method in class org.apache.ratis.datastream.impl.DataStreamPacketImpl
 
getClientId() - Method in class org.apache.ratis.protocol.ClientInvocationId
 
getClientId() - Method in interface org.apache.ratis.protocol.DataStreamPacket
 
getClientId() - Method in class org.apache.ratis.protocol.RaftClientMessage
 
getCommitInfos() - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer
 
getCommitInfos() - Method in interface org.apache.ratis.protocol.DataStreamReply
 
getCommitInfos() - Method in class org.apache.ratis.protocol.DataStreamReplyHeader
 
getCommitInfos() - Method in class org.apache.ratis.protocol.RaftClientReply
Get the commit information for the entire group.
getContent() - Method in interface org.apache.ratis.protocol.Message
 
getCount() - Method in class org.apache.ratis.io.FilePositionCount
 
getCreate() - Method in class org.apache.ratis.protocol.SnapshotManagementRequest
 
getCurrentStackTraceElement() - Static method in interface org.apache.ratis.util.JavaUtils
 
getCurrentState() - Method in class org.apache.ratis.util.LifeCycle
 
getDataLength() - Method in class org.apache.ratis.datastream.impl.DataStreamPacketByteBuffer
 
getDataLength() - Method in class org.apache.ratis.datastream.impl.DataStreamRequestFilePositionCount
 
getDataLength() - Method in interface org.apache.ratis.protocol.DataStreamPacket
 
getDataLength() - Method in class org.apache.ratis.protocol.DataStreamPacketHeader
 
getDataStream() - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
getDataStreamAddress() - Method in class org.apache.ratis.protocol.RaftPeer
 
getDataStreamException() - Method in class org.apache.ratis.protocol.RaftClientReply
If this reply has DataStreamException, return it; otherwise return null.
getDataStreamType() - Method in interface org.apache.ratis.datastream.DataStreamType.Get
 
getDefault() - Static method in class org.apache.ratis.rpc.CallId
 
getDigest() - Method in class org.apache.ratis.io.MD5Hash
Returns the digest bytes.
getDigester() - Static method in class org.apache.ratis.io.MD5Hash
Create a thread local MD5 digester
getDigestFileForFile(File) - Static method in class org.apache.ratis.util.MD5FileUtil
 
getDouble(BiFunction<String, Double, Double>, String, double, Consumer<String>, BiConsumer<String, Double>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getDouble(String, double) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property as a double.
getDuration() - Method in class org.apache.ratis.util.TimeDuration
 
getElementLimit() - Method in class org.apache.ratis.util.DataQueue
 
getEnum(String, T) - Method in class org.apache.ratis.conf.RaftProperties
Return value matching this enumerated type.
getException() - Method in class org.apache.ratis.protocol.RaftClientReply
 
getFile(BiFunction<String, File, File>, String, File, Consumer<String>, BiConsumer<String, File>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getFile(String, File) - Method in class org.apache.ratis.conf.RaftProperties
 
getFile() - Method in class org.apache.ratis.datastream.impl.DataStreamRequestFilePositionCount
 
getFile() - Method in class org.apache.ratis.io.FilePositionCount
 
getFiles(BiFunction<String, List<File>, List<File>>, String, List<File>, Consumer<String>, BiConsumer<String, List<File>>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getFiles(String, List<File>) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property as a list of File.
getFirstExitException() - Static method in interface org.apache.ratis.util.ExitUtils
 
getForward() - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
getFromFuture(CompletableFuture<T>, Supplier<Object>) - Static method in interface org.apache.ratis.util.IOUtils
 
getFromFuture(CompletableFuture<T>, Supplier<Object>, TimeDuration) - Static method in interface org.apache.ratis.util.IOUtils
 
getGroup() - Method in class org.apache.ratis.protocol.GroupInfoReply
 
getGroup() - Method in class org.apache.ratis.protocol.GroupManagementRequest.Add
 
getGroupId() - Method in class org.apache.ratis.protocol.GroupManagementRequest.Add
 
getGroupId() - Method in class org.apache.ratis.protocol.GroupManagementRequest.Op
 
getGroupId() - Method in class org.apache.ratis.protocol.GroupManagementRequest.Remove
 
getGroupId() - Method in class org.apache.ratis.protocol.RaftGroup
 
getGroupId() - Method in class org.apache.ratis.protocol.RaftGroupMemberId
 
getGroupIds() - Method in class org.apache.ratis.protocol.GroupListReply
 
getGroupInfo(GroupInfoRequest) - Method in interface org.apache.ratis.protocol.AdminProtocol
 
getGroupInfoAsync(GroupInfoRequest) - Method in interface org.apache.ratis.protocol.AdminAsynchronousProtocol
 
getGroupList(GroupListRequest) - Method in interface org.apache.ratis.protocol.AdminProtocol
 
getGroupListAsync(GroupListRequest) - Method in interface org.apache.ratis.protocol.AdminAsynchronousProtocol
 
getId() - Method in class org.apache.ratis.protocol.RaftPeer
 
getImplClass(Class<BASE>) - Static method in interface org.apache.ratis.util.ReflectionUtils
 
getImplClassName(Class<?>) - Static method in interface org.apache.ratis.util.ReflectionUtils
 
getInetSocketAddress(BiFunction<String, String, String>, String, String, Consumer<String>) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getInput() - Method in class org.apache.ratis.util.SizeInBytes
 
getInstance() - Static method in class org.apache.ratis.util.TimeoutScheduler
 
getInt(BiFunction<String, Integer, Integer>, String, int, Consumer<String>, BiConsumer<String, Integer>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getInt(String, int) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property as an int.
getKeyCertificates() - Method in class org.apache.ratis.security.TlsConf.KeyManagerConf
 
getKeyManager() - Method in class org.apache.ratis.security.TlsConf
 
getLeaderNotReadyException() - Method in class org.apache.ratis.protocol.RaftClientReply
 
getLeaderSteppingDownException() - Method in class org.apache.ratis.protocol.RaftClientReply
 
getListenersInNewConf() - Method in class org.apache.ratis.protocol.SetConfigurationRequest
 
getLogIndex() - Method in exception org.apache.ratis.protocol.exceptions.NotReplicatedException
 
getLogIndex() - Method in class org.apache.ratis.protocol.RaftClientReply
 
getLong(BiFunction<String, Long, Long>, String, long, Consumer<String>, BiConsumer<String, Long>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getLong(String, long) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property as a long.
getLongId() - Method in class org.apache.ratis.protocol.ClientInvocationId
 
getMax() - Method in class org.apache.ratis.util.LongMinMax
 
getMaxAttempts() - Method in class org.apache.ratis.retry.RetryPolicies.RetryLimited
 
getMessage() - Method in class org.apache.ratis.protocol.RaftClientReply
 
getMessage() - Method in class org.apache.ratis.protocol.RaftClientRequest
 
getMessageStream() - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
getMin() - Method in class org.apache.ratis.util.LongMinMax
 
getName() - Method in class org.apache.ratis.util.PeerProxyMap
 
getName(Class<?>, Object) - Static method in interface org.apache.ratis.util.SlidingWindow
 
getNewLeader() - Method in class org.apache.ratis.protocol.TransferLeadershipRequest
 
getNonNull(String, Class<T>) - Method in class org.apache.ratis.conf.Parameters
The same as Parameters.get(String, Class) except that this method throws a NullPointerException if the key does not map to any value.
getNotLeaderException() - Method in class org.apache.ratis.protocol.RaftClientReply
If this reply has NotLeaderException, return it; otherwise return null.
getNotReplicatedException() - Method in class org.apache.ratis.protocol.RaftClientReply
If this reply has NotReplicatedException, return it; otherwise return null.
getNumBytes() - Method in class org.apache.ratis.util.DataBlockingQueue
 
getNumBytes() - Method in class org.apache.ratis.util.DataQueue
 
getNumElements() - Method in class org.apache.ratis.util.DataBlockingQueue
 
getNumElements() - Method in class org.apache.ratis.util.DataQueue
 
getPause() - Method in class org.apache.ratis.protocol.LeaderElectionManagementRequest
 
getPeer(RaftPeerId) - Method in class org.apache.ratis.protocol.RaftGroup
 
getPeerId() - Method in class org.apache.ratis.protocol.RaftGroupMemberId
 
getPeers() - Method in exception org.apache.ratis.protocol.exceptions.NotLeaderException
 
getPeers() - Method in class org.apache.ratis.protocol.RaftGroup
 
getPeersInNewConf() - Method in class org.apache.ratis.protocol.SetConfigurationRequest
 
getPos() - Method in exception org.apache.ratis.protocol.exceptions.ChecksumException
 
getPosition() - Method in class org.apache.ratis.io.FilePositionCount
 
getPriority() - Method in class org.apache.ratis.protocol.RaftPeer
 
getPrivateKey() - Method in class org.apache.ratis.security.TlsConf.KeyManagerConf
 
getProxy(RaftPeerId) - Method in class org.apache.ratis.util.PeerProxyMap
 
getRaftGroupId() - Method in class org.apache.ratis.protocol.RaftClientMessage
 
getRaftGroupId() - Method in interface org.apache.ratis.protocol.RaftRpcMessage
 
getRaftPeerId(String) - Static method in class org.apache.ratis.protocol.RaftPeerId
 
getRaftPeerIdProto() - Method in class org.apache.ratis.protocol.RaftPeerId
 
getRaftPeerProto() - Method in class org.apache.ratis.protocol.RaftPeer
 
getRaw(String) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property, without doing variable expansion.If the key is deprecated, it returns the value of the first key which replaces the deprecated key and is not null.
getRead() - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
getRemove() - Method in class org.apache.ratis.protocol.GroupManagementRequest
 
getReplierId() - Method in class org.apache.ratis.protocol.RaftClientMessage
 
getReplierId() - Method in interface org.apache.ratis.protocol.RaftRpcMessage
 
getRequestorId() - Method in class org.apache.ratis.protocol.RaftClientMessage
 
getRequestorId() - Method in interface org.apache.ratis.protocol.RaftRpcMessage
 
getRequiredReplication() - Method in exception org.apache.ratis.protocol.exceptions.NotReplicatedException
 
getResume() - Method in class org.apache.ratis.protocol.LeaderElectionManagementRequest
 
getRoleInfoProto() - Method in class org.apache.ratis.protocol.GroupInfoReply
 
getRootThreadGroup() - Static method in interface org.apache.ratis.util.JavaUtils
 
getRoutingTable() - Method in class org.apache.ratis.protocol.RaftClientRequest
 
getRpcType() - Method in interface org.apache.ratis.rpc.RpcType.Get
 
getSeqNum() - Method in interface org.apache.ratis.util.SlidingWindow.Request
 
getServerId() - Method in exception org.apache.ratis.protocol.exceptions.LeaderNotReadyException
 
getServerId() - Method in class org.apache.ratis.protocol.RaftClientMessage
 
getSize(Message) - Static method in interface org.apache.ratis.protocol.Message
 
getSize() - Method in class org.apache.ratis.util.SizeInBytes
 
getSizeInBytes(BiFunction<String, SizeInBytes, SizeInBytes>, String, SizeInBytes, Consumer<String>, BiConsumer<String, SizeInBytes>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getSizeInBytes(String, SizeInBytes) - Method in class org.apache.ratis.conf.RaftProperties
 
getSizeInt() - Method in class org.apache.ratis.util.SizeInBytes
 
getSizeOfHeaderBodyLen() - Static method in class org.apache.ratis.protocol.DataStreamPacketHeader
 
getSizeOfHeaderLen() - Static method in class org.apache.ratis.protocol.DataStreamPacketHeader
 
getSleepTime() - Method in interface org.apache.ratis.retry.RetryPolicy.Action
 
getSlidingWindowEntry() - Method in class org.apache.ratis.protocol.RaftClientRequest
 
getStaleRead() - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
getStateMachineException() - Method in class org.apache.ratis.protocol.RaftClientReply
If this reply has StateMachineException, return it; otherwise return null.
getStatus() - Method in exception org.apache.ratis.util.ExitUtils.ExitException
 
getStreamId() - Method in class org.apache.ratis.datastream.impl.DataStreamPacketImpl
 
getStreamId() - Method in interface org.apache.ratis.protocol.DataStreamPacket
 
getStreamOffset() - Method in class org.apache.ratis.datastream.impl.DataStreamPacketImpl
 
getStreamOffset() - Method in interface org.apache.ratis.protocol.DataStreamPacket
 
getSuccessors(RaftPeerId) - Method in interface org.apache.ratis.protocol.RoutingTable
 
getSuggestedLeader() - Method in exception org.apache.ratis.protocol.exceptions.NotLeaderException
 
getSymbol() - Method in enum org.apache.ratis.util.TraditionalBinaryPrefix
 
getSymbols() - Method in enum org.apache.ratis.util.TimeDuration.Abbreviation
 
getTemporaryFile(File) - Static method in class org.apache.ratis.util.AtomicFileOutputStream
 
getThrowable() - Method in class org.apache.ratis.util.OpenCloseState
 
getTimeDuration(BiFunction<String, TimeDuration, TimeDuration>, String, TimeDuration, Consumer<String>, BiConsumer<String, TimeDuration>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getTimeDuration(String, TimeDuration, TimeUnit) - Method in class org.apache.ratis.conf.RaftProperties
Return time duration in the given time unit.
getTimeDuration(TimeUnit) - Method in class org.apache.ratis.conf.RaftProperties
 
getTimeoutMs() - Method in class org.apache.ratis.protocol.RaftClientRequest
 
getTlsConf(Function<String, TlsConf>, String, Consumer<String>) - Static method in interface org.apache.ratis.conf.ConfUtils
 
getTransferLeadershipException() - Method in class org.apache.ratis.protocol.RaftClientReply
 
getTrimmed(String) - Method in class org.apache.ratis.conf.RaftProperties
Get the value of the name property as a trimmed String, null if no such property exists.
getTrimmedStrings(String) - Method in class org.apache.ratis.conf.RaftProperties
Get the comma delimited values of the name property as an array of Strings, trimmed of the leading and trailing whitespace.
getTrimmedStrings(String) - Static method in class org.apache.ratis.util.StringUtils
Splits the given comma separated String.
getTrustCertificates() - Method in class org.apache.ratis.security.TlsConf.TrustManagerConf
 
getTrustManager() - Method in class org.apache.ratis.security.TlsConf
 
getType() - Method in class org.apache.ratis.datastream.impl.DataStreamPacketImpl
 
getType() - Method in interface org.apache.ratis.protocol.DataStreamPacket
 
getType() - Method in class org.apache.ratis.protocol.RaftClientRequest
 
getTypeCase() - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
getUnit() - Method in class org.apache.ratis.util.TimeDuration
 
getUuid() - Method in class org.apache.ratis.protocol.RaftId
 
getValue() - Method in class org.apache.ratis.util.PureJavaCrc32C
 
getValue() - Method in enum org.apache.ratis.util.TraditionalBinaryPrefix
 
getWatch() - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
getWrite() - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
getWriteOptions() - Method in class org.apache.ratis.datastream.impl.DataStreamRequestByteBuffer
 
getWriteOptions() - Method in class org.apache.ratis.datastream.impl.DataStreamRequestFilePositionCount
 
getWriteOptions() - Method in interface org.apache.ratis.protocol.DataStreamRequest
 
getWriteOptions() - Method in class org.apache.ratis.protocol.DataStreamRequestHeader
 
Group(int...) - Constructor for class org.apache.ratis.util.ResourceSemaphore.Group
 
GroupInfoReply - Class in org.apache.ratis.protocol
The response of server information request.
GroupInfoReply(RaftClientRequest, Collection<RaftProtos.CommitInfoProto>, RaftGroup, RaftProtos.RoleInfoProto, boolean) - Constructor for class org.apache.ratis.protocol.GroupInfoReply
 
GroupInfoReply(ClientId, RaftPeerId, RaftGroupId, long, Collection<RaftProtos.CommitInfoProto>, RaftGroup, RaftProtos.RoleInfoProto, boolean) - Constructor for class org.apache.ratis.protocol.GroupInfoReply
 
GroupInfoRequest - Class in org.apache.ratis.protocol
Client sends this request to a server to request for the information about the server itself.
GroupInfoRequest(ClientId, RaftPeerId, RaftGroupId, long) - Constructor for class org.apache.ratis.protocol.GroupInfoRequest
 
GroupListReply - Class in org.apache.ratis.protocol
The response of group list request.
GroupListReply(RaftClientRequest, List<RaftGroupId>) - Constructor for class org.apache.ratis.protocol.GroupListReply
 
GroupListReply(ClientId, RaftPeerId, RaftGroupId, long, List<RaftGroupId>) - Constructor for class org.apache.ratis.protocol.GroupListReply
 
GroupListRequest - Class in org.apache.ratis.protocol
Client sends this request to a server to request for the information about the server itself.
GroupListRequest(ClientId, RaftPeerId, RaftGroupId, long) - Constructor for class org.apache.ratis.protocol.GroupListRequest
 
groupManagement(GroupManagementRequest) - Method in interface org.apache.ratis.protocol.AdminProtocol
 
groupManagementAsync(GroupManagementRequest) - Method in interface org.apache.ratis.protocol.AdminAsynchronousProtocol
 
GroupManagementRequest - Class in org.apache.ratis.protocol
 
GroupManagementRequest.Add - Class in org.apache.ratis.protocol
 
GroupManagementRequest.Op - Class in org.apache.ratis.protocol
 
GroupManagementRequest.Remove - Class in org.apache.ratis.protocol
 
GroupMismatchException - Exception in org.apache.ratis.protocol.exceptions
This exception indicates that the group id in the request does not match server's group id.
GroupMismatchException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.GroupMismatchException
 

H

halfDigest() - Method in class org.apache.ratis.io.MD5Hash
Construct a half-sized version of this MD5.
handleAttemptFailure(RetryPolicy.Event) - Method in class org.apache.ratis.retry.ExceptionDependentRetry
 
handleAttemptFailure(RetryPolicy.Event) - Method in class org.apache.ratis.retry.ExponentialBackoffRetry
 
handleAttemptFailure(RetryPolicy.Event) - Method in class org.apache.ratis.retry.MultipleLinearRandomRetry
 
handleAttemptFailure(RetryPolicy.Event) - Method in class org.apache.ratis.retry.RetryPolicies.NoRetry
 
handleAttemptFailure(RetryPolicy.Event) - Method in class org.apache.ratis.retry.RetryPolicies.RetryForeverNoSleep
 
handleAttemptFailure(RetryPolicy.Event) - Method in class org.apache.ratis.retry.RetryPolicies.RetryForeverWithSleep
 
handleAttemptFailure(RetryPolicy.Event) - Method in class org.apache.ratis.retry.RetryPolicies.RetryLimited
 
handleAttemptFailure(RetryPolicy.Event) - Method in interface org.apache.ratis.retry.RetryPolicy
Determines whether it is supposed to retry after the operation has failed.
handleException(RaftPeerId, Throwable, boolean) - Method in class org.apache.ratis.util.PeerProxyMap
 
hashCode() - Method in class org.apache.ratis.io.MD5Hash
Returns a hash code value for this object.
hashCode() - Method in class org.apache.ratis.protocol.ClientInvocationId
 
hashCode() - Method in class org.apache.ratis.protocol.RaftGroup
 
hashCode() - Method in class org.apache.ratis.protocol.RaftGroupMemberId
 
hashCode() - Method in class org.apache.ratis.protocol.RaftId
 
hashCode() - Method in class org.apache.ratis.protocol.RaftPeer
 
hashCode() - Method in class org.apache.ratis.protocol.RaftPeerId
 
hashCode() - Method in class org.apache.ratis.retry.MultipleLinearRandomRetry
 
hashCode() - Method in class org.apache.ratis.util.TimeDuration
 
hashCode() - Method in class org.apache.ratis.util.Timestamp
 
hasReply() - Method in interface org.apache.ratis.util.SlidingWindow.Request
 
higherUnit(TimeUnit) - Static method in class org.apache.ratis.util.TimeDuration
 

I

infoOrTrace(Logger, String, Throwable) - Static method in interface org.apache.ratis.util.LogUtils
 
infoOrTrace(Logger, Supplier<String>, Throwable) - Static method in interface org.apache.ratis.util.LogUtils
 
instantiate(String, Constructor<T>, Object[]) - Static method in interface org.apache.ratis.util.ReflectionUtils
 
instantiateException(Class<T>) - Static method in interface org.apache.ratis.util.ReflectionUtils
 
instantiateException(Class<T>, String) - Static method in interface org.apache.ratis.util.ReflectionUtils
 
IOUtils - Interface in org.apache.ratis.util
IO related utility methods.
is(RaftProtos.RaftClientRequestProto.TypeCase) - Method in class org.apache.ratis.protocol.RaftClientRequest
 
is(RaftProtos.RaftClientRequestProto.TypeCase) - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
isClosed() - Method in class org.apache.ratis.util.AtomicFileOutputStream
 
isClosed() - Method in class org.apache.ratis.util.OpenCloseState
 
isClosed() - Method in class org.apache.ratis.util.ResourceSemaphore.Group
 
isClosed() - Method in class org.apache.ratis.util.ResourceSemaphore
 
isClosingOrClosed() - Method in enum org.apache.ratis.util.LifeCycle.State
isDeleteDirectory() - Method in class org.apache.ratis.protocol.GroupManagementRequest.Remove
 
isEmpty() - Method in class org.apache.ratis.util.DataQueue
isEmpty() - Method in class org.apache.ratis.util.TaskQueue
Is this queue empty?
isFileBased() - Method in class org.apache.ratis.security.TlsConf.KeyManagerConf
 
isFirst(long) - Method in class org.apache.ratis.util.SlidingWindow.Client
 
isFirstRequest() - Method in interface org.apache.ratis.util.SlidingWindow.ServerSideRequest
 
isInitialized() - Method in class org.apache.ratis.util.LongMinMax
 
isInitialized() - Method in class org.apache.ratis.util.MemoizedSupplier
 
isInstance(Object, Class<?>...) - Static method in interface org.apache.ratis.util.ReflectionUtils
Is the given object an instance of one of the given classes?
isMutualTls() - Method in class org.apache.ratis.security.TlsConf
Is mutual TLS enabled?
isNegative() - Method in class org.apache.ratis.util.TimeDuration
 
isNonPositive() - Method in class org.apache.ratis.util.TimeDuration
 
isOneOf(WriteOption...) - Method in interface org.apache.ratis.io.WriteOption
 
isOpened() - Method in class org.apache.ratis.util.OpenCloseState
 
isPausingOrPaused() - Method in enum org.apache.ratis.util.LifeCycle.State
isRaftStorageHealthy() - Method in class org.apache.ratis.protocol.GroupInfoReply
 
isRenameDirectory() - Method in class org.apache.ratis.protocol.GroupManagementRequest.Remove
 
isRequest() - Method in class org.apache.ratis.protocol.RaftClientReply
 
isRequest() - Method in class org.apache.ratis.protocol.RaftClientRequest
 
isRequest() - Method in interface org.apache.ratis.protocol.RaftRpcMessage
 
isRunning() - Method in enum org.apache.ratis.util.LifeCycle.State
isSuccess() - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer
 
isSuccess() - Method in interface org.apache.ratis.protocol.DataStreamReply
 
isSuccess() - Method in class org.apache.ratis.protocol.DataStreamReplyHeader
 
isSuccess() - Method in class org.apache.ratis.protocol.RaftClientReply
 
isTerminated() - Static method in interface org.apache.ratis.util.ExitUtils
 
isToLeader() - Method in class org.apache.ratis.protocol.RaftClientRequest
 
isUnopened() - Method in class org.apache.ratis.util.OpenCloseState
 
isValid(LifeCycle.State, LifeCycle.State) - Static method in enum org.apache.ratis.util.LifeCycle.State
Is the given transition valid?
iterator() - Method in class org.apache.ratis.util.DataQueue
 
iterator() - Method in class org.apache.ratis.util.SlidingWindow.RequestMap
Iterate the requests in the order of seqNum.

J

JavaUtils - Interface in org.apache.ratis.util
General Java utility methods.
JmxRegister - Class in org.apache.ratis.util
For registering JMX beans.
JmxRegister() - Constructor for class org.apache.ratis.util.JmxRegister
 
JvmPauseMonitor - Class in org.apache.ratis.util
 
JvmPauseMonitor(Object, CheckedConsumer<TimeDuration, IOException>) - Constructor for class org.apache.ratis.util.JvmPauseMonitor
 

L

latest(Timestamp, Timestamp) - Static method in class org.apache.ratis.util.Timestamp
 
leaderElectionManagement(LeaderElectionManagementRequest) - Method in interface org.apache.ratis.protocol.AdminProtocol
 
leaderElectionManagementAsync(LeaderElectionManagementRequest) - Method in interface org.apache.ratis.protocol.AdminAsynchronousProtocol
 
LeaderElectionManagementRequest - Class in org.apache.ratis.protocol
 
LeaderElectionManagementRequest(ClientId, RaftPeerId, RaftGroupId, long, LeaderElectionManagementRequest.Op) - Constructor for class org.apache.ratis.protocol.LeaderElectionManagementRequest
 
LeaderElectionManagementRequest.Op - Class in org.apache.ratis.protocol
 
LeaderElectionManagementRequest.Pause - Class in org.apache.ratis.protocol
 
LeaderElectionManagementRequest.Resume - Class in org.apache.ratis.protocol
 
LeaderNotReadyException - Exception in org.apache.ratis.protocol.exceptions
This exception is sent from the server to a client.
LeaderNotReadyException(RaftGroupMemberId) - Constructor for exception org.apache.ratis.protocol.exceptions.LeaderNotReadyException
 
leaderShouldStepDown() - Method in exception org.apache.ratis.protocol.exceptions.StateMachineException
 
LeaderSteppingDownException - Exception in org.apache.ratis.protocol.exceptions
 
LeaderSteppingDownException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.LeaderSteppingDownException
 
LeaderSteppingDownException(String, Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.LeaderSteppingDownException
 
LifeCycle - Class in org.apache.ratis.util
The life cycle of a machine.
LifeCycle(Object) - Constructor for class org.apache.ratis.util.LifeCycle
 
LifeCycle.State - Enum in org.apache.ratis.util
The states in the life cycle.
LifeCycle.States - Class in org.apache.ratis.util
 
LINUX - Static variable in class org.apache.ratis.util.PlatformUtils
 
LOG - Static variable in interface org.apache.ratis.conf.ConfUtils
 
LOG - Static variable in interface org.apache.ratis.util.CodeInjectionForTesting.Code
 
LOG - Static variable in class org.apache.ratis.util.CodeInjectionForTesting
 
LOG - Static variable in class org.apache.ratis.util.DataBlockingQueue
 
LOG - Static variable in class org.apache.ratis.util.DataQueue
 
LOG - Static variable in interface org.apache.ratis.util.FileUtils
 
LOG - Static variable in interface org.apache.ratis.util.JavaUtils
 
LOG - Static variable in class org.apache.ratis.util.JvmPauseMonitor
 
LOG - Static variable in class org.apache.ratis.util.LifeCycle
 
LOG - Static variable in interface org.apache.ratis.util.LogUtils
 
LOG - Static variable in class org.apache.ratis.util.MD5FileUtil
 
LOG - Static variable in interface org.apache.ratis.util.NetUtils
 
LOG - Static variable in class org.apache.ratis.util.PeerProxyMap
 
LOG - Static variable in interface org.apache.ratis.util.SlidingWindow
 
LOG - Static variable in class org.apache.ratis.util.TaskQueue
 
LOG - Static variable in class org.apache.ratis.util.TimeoutScheduler
 
logGet(String, T, T, Consumer<String>) - Static method in interface org.apache.ratis.conf.ConfUtils
 
logSet(String, Object) - Static method in interface org.apache.ratis.conf.ConfUtils
 
LogUtils - Interface in org.apache.ratis.util
Logging (as in log4j) related utility methods.
long2String(long, String, int) - Static method in enum org.apache.ratis.util.TraditionalBinaryPrefix
Convert a long integer to a string with traditional binary prefix.
LongMinMax - Class in org.apache.ratis.util
Min and max values in long.
LongMinMax() - Constructor for class org.apache.ratis.util.LongMinMax
 
lowerUnit(TimeUnit) - Static method in class org.apache.ratis.util.TimeDuration
 

M

MAC - Static variable in class org.apache.ratis.util.PlatformUtils
 
main(String[]) - Static method in interface org.apache.ratis.RaftConfigKeys
 
map2String(Map<K, V>) - Static method in class org.apache.ratis.util.StringUtils
 
match(RaftProtos.StateMachineLogEntryProto) - Method in class org.apache.ratis.protocol.ClientInvocationId
 
MD5_LEN - Static variable in class org.apache.ratis.io.MD5Hash
 
MD5_SUFFIX - Static variable in class org.apache.ratis.util.MD5FileUtil
 
MD5FileUtil - Class in org.apache.ratis.util
 
MD5FileUtil() - Constructor for class org.apache.ratis.util.MD5FileUtil
 
MD5Hash - Class in org.apache.ratis.io
 
MD5Hash() - Constructor for class org.apache.ratis.io.MD5Hash
Constructs an MD5Hash.
MD5Hash(String) - Constructor for class org.apache.ratis.io.MD5Hash
Constructs an MD5Hash from a hex string.
MD5Hash(byte[]) - Constructor for class org.apache.ratis.io.MD5Hash
Constructs an MD5Hash with a specified value.
memoize(Supplier<T>) - Static method in interface org.apache.ratis.util.JavaUtils
Create a memoized supplier which gets a value by invoking the initializer once and then keeps returning the same value as its supplied results.
MemoizedSupplier<T> - Class in org.apache.ratis.util
A memoized supplier is a Supplier which gets a value by invoking its initializer once and then keeps returning the same value as its supplied results.
Message - Interface in org.apache.ratis.protocol
The information clients append to the raft ring.
messageStreamRequestType(long, long, boolean) - Static method in class org.apache.ratis.protocol.RaftClientRequest
 
min(T, T, Comparator<T>) - Static method in interface org.apache.ratis.util.CollectionUtils
 
min(T, T) - Static method in interface org.apache.ratis.util.CollectionUtils
 
move(File, File) - Static method in interface org.apache.ratis.util.FileUtils
 
move(Path, Path) - Static method in interface org.apache.ratis.util.FileUtils
 
move(File, String) - Static method in interface org.apache.ratis.util.FileUtils
Move src to a new path, where the new path created by appending the given suffix to the src.
moveDirectory(Path, Path) - Static method in interface org.apache.ratis.util.FileUtils
Moves the directory.
MultipleLinearRandomRetry - Class in org.apache.ratis.retry
Given pairs of number of retries and sleep time (n0, t0), (n1, t1), ..., the first n0 retries sleep t0 milliseconds on average, the following n1 retries sleep t1 milliseconds on average, and so on.
multiply(double) - Method in class org.apache.ratis.util.TimeDuration
 

N

name() - Method in interface org.apache.ratis.datastream.DataStreamType
 
name() - Method in interface org.apache.ratis.rpc.RpcType
 
negate() - Method in class org.apache.ratis.util.TimeDuration
 
NetUtils - Interface in org.apache.ratis.util
 
NetUtils.StaticResolution - Class in org.apache.ratis.util
 
newAdd(ClientId, RaftPeerId, long, RaftGroup) - Static method in class org.apache.ratis.protocol.GroupManagementRequest
 
newBuilder() - Static method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer
 
newBuilder() - Static method in class org.apache.ratis.protocol.RaftClientReply
 
newBuilder() - Static method in class org.apache.ratis.protocol.RaftClientRequest
 
newBuilder() - Static method in class org.apache.ratis.protocol.RaftPeer
 
newBuilder(RaftPeer) - Static method in class org.apache.ratis.protocol.RaftPeer
 
newBuilder() - Static method in interface org.apache.ratis.protocol.RoutingTable
 
newBuilder() - Static method in class org.apache.ratis.retry.ExceptionDependentRetry
 
newBuilder() - Static method in class org.apache.ratis.retry.ExponentialBackoffRetry
 
newBuilder() - Static method in class org.apache.ratis.security.TlsConf
 
newCachedThreadPool(int, ThreadFactory) - Static method in interface org.apache.ratis.util.ConcurrentUtils
The same as Executors.newCachedThreadPool(ThreadFactory) except that this method takes a maximumPoolSize parameter.
newCallable(Logger, Callable<T>, Supplier<String>) - Static method in interface org.apache.ratis.util.LogUtils
 
newCheckedSupplier(Logger, CheckedSupplier<OUTPUT, THROWABLE>, Supplier<String>) - Static method in interface org.apache.ratis.util.LogUtils
 
newClientFactory(Parameters) - Method in interface org.apache.ratis.datastream.DataStreamType
 
newClientFactory(Parameters) - Method in enum org.apache.ratis.datastream.SupportedDataStreamType
 
newCreate(ClientId, RaftPeerId, RaftGroupId, long, long) - Static method in class org.apache.ratis.protocol.SnapshotManagementRequest
 
newFactory(Parameters) - Method in interface org.apache.ratis.rpc.RpcType
 
newFactory(Parameters) - Method in enum org.apache.ratis.rpc.SupportedRpcType
 
newInstance(Class<T>) - Static method in interface org.apache.ratis.util.ReflectionUtils
Create an object for the given class using its default constructor.
newInstance(Class<T>, Class<?>[], Object...) - Static method in interface org.apache.ratis.util.ReflectionUtils
Create an object for the given class using the specified constructor.
newPause(ClientId, RaftPeerId, RaftGroupId, long) - Static method in class org.apache.ratis.protocol.LeaderElectionManagementRequest
 
newRemove(ClientId, RaftPeerId, long, RaftGroupId, boolean, boolean) - Static method in class org.apache.ratis.protocol.GroupManagementRequest
 
newResume(ClientId, RaftPeerId, RaftGroupId, long) - Static method in class org.apache.ratis.protocol.LeaderElectionManagementRequest
 
newRoutingTable(Map<RaftPeerId, Set<RaftPeerId>>) - Static method in interface org.apache.ratis.protocol.RoutingTable
 
newRunnable(Logger, Runnable, Supplier<String>) - Static method in interface org.apache.ratis.util.LogUtils
 
newServerFactory(Parameters) - Method in interface org.apache.ratis.datastream.DataStreamType
 
newServerFactory(Parameters) - Method in enum org.apache.ratis.datastream.SupportedDataStreamType
 
newThreadFactory(String) - Static method in interface org.apache.ratis.util.ConcurrentUtils
Creates a ThreadFactory so that the threads created by the factory are named with the given name prefix.
newThreadPoolWithMax(boolean, int, String) - Static method in interface org.apache.ratis.util.ConcurrentUtils
Create a new ExecutorService with a maximum pool size.
next(T, Iterable<T>) - Static method in interface org.apache.ratis.util.CollectionUtils
 
NO_RETRY_ACTION - Static variable in interface org.apache.ratis.retry.RetryPolicy
 
noRetry() - Static method in interface org.apache.ratis.retry.RetryPolicies
No retry.
normalizeName(String) - Static method in interface org.apache.ratis.conf.ConfUtils
 
NotLeaderException - Exception in org.apache.ratis.protocol.exceptions
 
NotLeaderException(RaftGroupMemberId, RaftPeer, Collection<RaftPeer>) - Constructor for exception org.apache.ratis.protocol.exceptions.NotLeaderException
 
NotReplicatedException - Exception in org.apache.ratis.protocol.exceptions
 
NotReplicatedException(long, RaftProtos.ReplicationLevel, long) - Constructor for exception org.apache.ratis.protocol.exceptions.NotReplicatedException
 
NUM_ATTEMPTS - Static variable in interface org.apache.ratis.util.FileUtils
 

O

object2Bytes(Object) - Static method in interface org.apache.ratis.util.IOUtils
Serialize the given object to a byte array using ObjectOutputStream.writeObject(Object).
offer(E) - Method in class org.apache.ratis.util.DataBlockingQueue
 
offer(E, TimeDuration) - Method in class org.apache.ratis.util.DataBlockingQueue
Adds an element to this queue, waiting up to the given timeout.
offer(E) - Method in class org.apache.ratis.util.DataQueue
Adds an element to this queue.
ONE_DAY - Static variable in class org.apache.ratis.util.TimeDuration
 
ONE_KB - Static variable in class org.apache.ratis.util.SizeInBytes
 
ONE_MB - Static variable in class org.apache.ratis.util.SizeInBytes
 
ONE_MILLISECOND - Static variable in class org.apache.ratis.util.TimeDuration
 
ONE_MINUTE - Static variable in class org.apache.ratis.util.TimeDuration
 
ONE_SECOND - Static variable in class org.apache.ratis.util.TimeDuration
 
onTimeout(TimeDuration, CheckedRunnable<THROWABLE>, Consumer<THROWABLE>) - Method in class org.apache.ratis.util.TimeoutScheduler
Schedule a timeout task.
onTimeout(TimeDuration, CheckedRunnable<?>, Logger, Supplier<String>) - Method in class org.apache.ratis.util.TimeoutScheduler
When timeout, run the task.
Op() - Constructor for class org.apache.ratis.protocol.GroupManagementRequest.Op
 
Op() - Constructor for class org.apache.ratis.protocol.LeaderElectionManagementRequest.Op
 
Op() - Constructor for class org.apache.ratis.protocol.SnapshotManagementRequest.Op
 
open() - Method in class org.apache.ratis.util.OpenCloseState
Transit to open state.
OpenCloseState - Class in org.apache.ratis.util
The state of objects that can be unopened, opened, closed or exception.
OpenCloseState(String) - Constructor for class org.apache.ratis.util.OpenCloseState
 
org.apache.ratis - package org.apache.ratis
 
org.apache.ratis.conf - package org.apache.ratis.conf
 
org.apache.ratis.datastream - package org.apache.ratis.datastream
 
org.apache.ratis.datastream.impl - package org.apache.ratis.datastream.impl
 
org.apache.ratis.io - package org.apache.ratis.io
 
org.apache.ratis.protocol - package org.apache.ratis.protocol
 
org.apache.ratis.protocol.exceptions - package org.apache.ratis.protocol.exceptions
 
org.apache.ratis.retry - package org.apache.ratis.retry
 
org.apache.ratis.rpc - package org.apache.ratis.rpc
 
org.apache.ratis.security - package org.apache.ratis.security
 
org.apache.ratis.util - package org.apache.ratis.util
 
org.apache.ratis.util.function - package org.apache.ratis.util.function
 
OTHER - Static variable in class org.apache.ratis.util.PlatformUtils
 

P

parallelForEachAsync(Collection<T>, Consumer<? super T>, Executor) - Static method in interface org.apache.ratis.util.ConcurrentUtils
The same as collection.parallelStream().forEach(action) except that (1) this method is asynchronous, and (2) an executor can be passed to this method.
Parameters - Class in org.apache.ratis.conf
A generic parameter map.
Parameters() - Constructor for class org.apache.ratis.conf.Parameters
 
parse(String, TimeUnit) - Static method in class org.apache.ratis.util.TimeDuration
The same as valueOf(timeString, targetUnit).toLong(targetUnit).
parseCommaSeparated(String) - Static method in class org.apache.ratis.retry.MultipleLinearRandomRetry
Parse the given string as a MultipleLinearRandomRetry object.
Pause() - Constructor for class org.apache.ratis.protocol.LeaderElectionManagementRequest.Pause
 
PAUSING_OR_PAUSED - Static variable in class org.apache.ratis.util.LifeCycle.States
 
PeerProxyMap<PROXY extends Closeable> - Class in org.apache.ratis.util
A map from peer id to peer and its proxy.
PeerProxyMap(String, CheckedFunction<RaftPeer, PROXY, IOException>) - Constructor for class org.apache.ratis.util.PeerProxyMap
 
PeerProxyMap(String) - Constructor for class org.apache.ratis.util.PeerProxyMap
 
PlatformUtils - Class in org.apache.ratis.util
Platform and architecture related utility methods.
PlatformUtils.OSType - Enum in org.apache.ratis.util
 
poll() - Method in class org.apache.ratis.util.DataBlockingQueue
 
poll(TimeDuration) - Method in class org.apache.ratis.util.DataBlockingQueue
Poll out the head element from this queue, waiting up to the given timeout.
poll() - Method in class org.apache.ratis.util.DataQueue
Poll out the head element from this queue.
pollList(long, CheckedFunctionWithTimeout<E, RESULT, THROWABLE>, TriConsumer<E, TimeDuration, TimeoutException>) - Method in class org.apache.ratis.util.DataBlockingQueue
 
pollList(long, CheckedFunctionWithTimeout<E, RESULT, THROWABLE>, TriConsumer<E, TimeDuration, TimeoutException>) - Method in class org.apache.ratis.util.DataQueue
Poll a list of the results within the given timeout.
PPC_64 - Static variable in class org.apache.ratis.util.PlatformUtils
 
preallocate(FileChannel, long, ByteBuffer) - Static method in interface org.apache.ratis.util.IOUtils
 
Preconditions - Interface in org.apache.ratis.util
 
PREFIX - Static variable in interface org.apache.ratis.RaftConfigKeys.DataStream
 
PREFIX - Static variable in interface org.apache.ratis.RaftConfigKeys
 
PREFIX - Static variable in interface org.apache.ratis.RaftConfigKeys.Rpc
 
printAll(Class<?>) - Static method in interface org.apache.ratis.conf.ConfUtils
 
printAll(Class<?>, Consumer<Object>) - Static method in interface org.apache.ratis.conf.ConfUtils
 
printField(Class<?>, Consumer<Object>, Field) - Static method in interface org.apache.ratis.conf.ConfUtils
 
printKey(Class<?>, Consumer<Object>, Field, String, String, CheckedBiConsumer<StringBuilder, Field, IllegalAccessException>) - Static method in interface org.apache.ratis.conf.ConfUtils
 
PrivateKeyConf(PrivateKey) - Constructor for class org.apache.ratis.security.TlsConf.PrivateKeyConf
 
PrivateKeyConf(File) - Constructor for class org.apache.ratis.security.TlsConf.PrivateKeyConf
 
ProtoUtils - Interface in org.apache.ratis.util
 
PureJavaCrc32C - Class in org.apache.ratis.util
A pure-java implementation of the CRC32 checksum that uses the CRC32-C polynomial, the same polynomial used by iSCSI and implemented on many Intel chipsets supporting SSE4.2.
PureJavaCrc32C() - Constructor for class org.apache.ratis.util.PureJavaCrc32C
Create a new PureJavaCrc32 object.
put(String, T, Class<T>) - Method in class org.apache.ratis.conf.Parameters
Put the key-value pair to the map.
put(String, CodeInjectionForTesting.Code) - Static method in class org.apache.ratis.util.CodeInjectionForTesting
Put an injection point.
put(String, String) - Static method in class org.apache.ratis.util.NetUtils.StaticResolution
Adds a static resolution for host.
putNew(K, V, Map<K, V>, Supplier<Object>) - Static method in interface org.apache.ratis.util.CollectionUtils
 

Q

quarterDigest() - Method in class org.apache.ratis.io.MD5Hash
Return a 32-bit digest of the MD5.

R

RaftClientAsynchronousProtocol - Interface in org.apache.ratis.protocol
Asynchronous version of RaftClientProtocol.
RaftClientMessage - Class in org.apache.ratis.protocol
 
RaftClientProtocol - Interface in org.apache.ratis.protocol
 
RaftClientReply - Class in org.apache.ratis.protocol
Reply from server to client
RaftClientReply.Builder - Class in org.apache.ratis.protocol
RaftClientRequest - Class in org.apache.ratis.protocol
Request from client to server
RaftClientRequest(ClientId, RaftPeerId, RaftGroupId, long, boolean, RaftClientRequest.Type) - Constructor for class org.apache.ratis.protocol.RaftClientRequest
 
RaftClientRequest(ClientId, RaftPeerId, RaftGroupId, long, RaftClientRequest.Type, long) - Constructor for class org.apache.ratis.protocol.RaftClientRequest
 
RaftClientRequest.Builder - Class in org.apache.ratis.protocol
RaftClientRequest.Type - Class in org.apache.ratis.protocol
The type of a request (oneof write, read, staleRead, watch; see the message RaftClientRequestProto).
RaftConfigKeys - Interface in org.apache.ratis
 
RaftConfigKeys.DataStream - Interface in org.apache.ratis
 
RaftConfigKeys.Rpc - Interface in org.apache.ratis
 
RaftException - Exception in org.apache.ratis.protocol.exceptions
 
RaftException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.RaftException
 
RaftException(Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.RaftException
 
RaftException(String, Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.RaftException
 
RaftGroup - Class in org.apache.ratis.protocol
Description of a raft group, which has a unique RaftGroupId and a collection of RaftPeer.
RaftGroupId - Class in org.apache.ratis.protocol
The id of a raft group.
RaftGroupMemberId - Class in org.apache.ratis.protocol
RaftId - Class in org.apache.ratis.protocol
Unique identifier implemented using UUID.
RaftPeer - Class in org.apache.ratis.protocol
A RaftPeer contains the information of a server.
RaftPeer.Add - Interface in org.apache.ratis.protocol
 
RaftPeer.Builder - Class in org.apache.ratis.protocol
 
RaftPeerId - Class in org.apache.ratis.protocol
Id of Raft Peer which is globally unique.
RaftProperties - Class in org.apache.ratis.conf
Provides access to configuration parameters.
RaftProperties() - Constructor for class org.apache.ratis.conf.RaftProperties
A new configuration.
RaftProperties(RaftProperties) - Constructor for class org.apache.ratis.conf.RaftProperties
A new RaftProperties with the same settings cloned from another.
RaftRetryFailureException - Exception in org.apache.ratis.protocol.exceptions
Retry failure as per the RetryPolicy defined.
RaftRetryFailureException(RaftClientRequest, int, RetryPolicy, Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.RaftRetryFailureException
 
RaftRpcMessage - Interface in org.apache.ratis.protocol
 
random(T, Iterable<T>) - Static method in interface org.apache.ratis.util.CollectionUtils
 
random(Collection<T>) - Static method in interface org.apache.ratis.util.CollectionUtils
 
randomId() - Static method in class org.apache.ratis.protocol.ClientId
 
randomId() - Static method in class org.apache.ratis.protocol.RaftGroupId
 
read(DataInput) - Static method in class org.apache.ratis.io.MD5Hash
Constructs, reads and returns an instance.
readFields(DataInput) - Method in class org.apache.ratis.io.MD5Hash
 
readFully(InputStream, int) - Static method in interface org.apache.ratis.util.IOUtils
 
readFully(InputStream, byte[], int, int) - Static method in interface org.apache.ratis.util.IOUtils
Reads len bytes in a loop.
readLock(StackTraceElement, Consumer<String>) - Method in class org.apache.ratis.util.AutoCloseableReadWriteLock
 
readObject(InputStream, Class<T>) - Static method in interface org.apache.ratis.util.IOUtils
 
readRequestType() - Static method in class org.apache.ratis.protocol.RaftClientRequest
 
readStoredMd5ForFile(File) - Static method in class org.apache.ratis.util.MD5FileUtil
Read the md5 checksum stored alongside the given data file.
receivedRequest(REQUEST, Consumer<REQUEST>) - Method in class org.apache.ratis.util.SlidingWindow.Server
A request (or a retry) arrives (may be out-of-order except for the first request).
receiveReply(long, REPLY, Consumer<REQUEST>) - Method in class org.apache.ratis.util.SlidingWindow.Client
Receive a reply with the given seqNum (may out-of-order).
receiveReply(long, REPLY, Consumer<REQUEST>) - Method in class org.apache.ratis.util.SlidingWindow.Server
Receives a reply for the given seqNum (may out-of-order) from the processor.
ReconfigurationInProgressException - Exception in org.apache.ratis.protocol.exceptions
 
ReconfigurationInProgressException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.ReconfigurationInProgressException
 
ReconfigurationTimeoutException - Exception in org.apache.ratis.protocol.exceptions
 
ReconfigurationTimeoutException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.ReconfigurationTimeoutException
 
ReferenceCountedObject<T> - Interface in org.apache.ratis.util
A reference-counted object can be retained for later use and then be released for returning the resource.
ReflectionUtils - Interface in org.apache.ratis.util
Reflection related utility methods.
ReflectionUtils.Classes - Class in org.apache.ratis.util
 
ReflectionUtils.Constructors - Class in org.apache.ratis.util
 
register(Object, Iterable<Supplier<String>>) - Method in class org.apache.ratis.util.JmxRegister
Try registering the mBean with the names one by one.
release() - Method in interface org.apache.ratis.util.ReferenceCountedObject
Release the object.
release(int...) - Method in class org.apache.ratis.util.ResourceSemaphore.Group
 
release() - Method in class org.apache.ratis.util.ResourceSemaphore
 
release(int) - Method in class org.apache.ratis.util.ResourceSemaphore
 
Remove(RaftGroupId, boolean, boolean) - Constructor for class org.apache.ratis.protocol.GroupManagementRequest.Remove
 
remove(E) - Method in class org.apache.ratis.util.DataBlockingQueue
 
remove(E) - Method in class org.apache.ratis.util.DataQueue
removeExisting(K, V, Map<K, V>, Supplier<Object>) - Static method in interface org.apache.ratis.util.CollectionUtils
 
renameMD5File(File, File) - Static method in class org.apache.ratis.util.MD5FileUtil
 
replaceExisting(K, V, V, Map<K, V>, Supplier<Object>) - Static method in interface org.apache.ratis.util.CollectionUtils
 
requireInt() - Static method in interface org.apache.ratis.conf.ConfUtils
 
requireMax(int) - Static method in interface org.apache.ratis.conf.ConfUtils
 
requireMax(double) - Static method in interface org.apache.ratis.conf.ConfUtils
 
requireMax(long) - Static method in interface org.apache.ratis.conf.ConfUtils
 
requireMin(int) - Static method in interface org.apache.ratis.conf.ConfUtils
 
requireMin(SizeInBytes) - Static method in interface org.apache.ratis.conf.ConfUtils
 
requireMin(long) - Static method in interface org.apache.ratis.conf.ConfUtils
 
requireMinSizeInByte(SizeInBytes) - Static method in interface org.apache.ratis.conf.ConfUtils
 
requireNonNegativeTimeDuration() - Static method in interface org.apache.ratis.conf.ConfUtils
 
requirePositive() - Static method in interface org.apache.ratis.conf.ConfUtils
 
reset() - Method in class org.apache.ratis.util.PureJavaCrc32C
 
resetFirstSeqNum() - Method in class org.apache.ratis.util.SlidingWindow.Client
Reset the SlidingWindow.Client.firstSeqNum The stream has an error.
resetProxy(RaftPeerId) - Method in class org.apache.ratis.util.PeerProxyMap
 
ResourceSemaphore - Class in org.apache.ratis.util
A Semaphore with a limit for a resource.
ResourceSemaphore(int) - Constructor for class org.apache.ratis.util.ResourceSemaphore
 
ResourceSemaphore.Group - Class in org.apache.ratis.util
 
ResourceSemaphore.ResourceAcquireStatus - Enum in org.apache.ratis.util
Track a group of resources with a list of ResourceSemaphores.
resourceSize() - Method in class org.apache.ratis.util.ResourceSemaphore.Group
 
ResourceUnavailableException - Exception in org.apache.ratis.protocol.exceptions
A particular resource is unavailable.
ResourceUnavailableException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.ResourceUnavailableException
 
Resume() - Constructor for class org.apache.ratis.protocol.LeaderElectionManagementRequest.Resume
 
retain() - Method in interface org.apache.ratis.util.ReferenceCountedObject
Retain the object for later use.
retry(REQUEST, Consumer<REQUEST>) - Method in class org.apache.ratis.util.SlidingWindow.Client
Receive a retry from an existing request (may out-of-order).
RETRY_WITHOUT_SLEEP_ACTION - Static variable in interface org.apache.ratis.retry.RetryPolicy
 
retryForeverNoSleep() - Static method in interface org.apache.ratis.retry.RetryPolicies
For any requests, keep retrying forever with no sleep between attempts.
retryForeverWithSleep(TimeDuration) - Static method in interface org.apache.ratis.retry.RetryPolicies
For any requests, keep retrying forever with a fixed sleep time between attempts.
RetryPolicies - Interface in org.apache.ratis.retry
A collection of RetryPolicy implementations
RetryPolicies.Constants - Class in org.apache.ratis.retry
 
RetryPolicies.NoRetry - Class in org.apache.ratis.retry
 
RetryPolicies.RetryForeverNoSleep - Class in org.apache.ratis.retry
 
RetryPolicies.RetryForeverWithSleep - Class in org.apache.ratis.retry
For any requests, keep retrying forever with a fixed sleep time between attempts.
RetryPolicies.RetryLimited - Class in org.apache.ratis.retry
For any requests, keep retrying a limited number of attempts with a fixed sleep time between attempts.
RetryPolicy - Interface in org.apache.ratis.retry
Policy abstract for retrying.
RetryPolicy.Action - Interface in org.apache.ratis.retry
The action it should take.
RetryPolicy.Event - Interface in org.apache.ratis.retry
The event triggered the failure.
retryUpToMaximumCountWithFixedSleep(int, TimeDuration) - Static method in interface org.apache.ratis.retry.RetryPolicies
For any requests, keep retrying a limited number of attempts with a fixed sleep time between attempts.
ROOT_THREAD_GROUP - Static variable in interface org.apache.ratis.util.JavaUtils
 
roundUpNanos(long) - Method in class org.apache.ratis.util.TimeDuration
Round up to the given nanos to nearest multiple (in nanoseconds) of this TimeDuration.
RoutingTable - Interface in org.apache.ratis.protocol
A routing table is a directed acyclic graph containing exactly one primary peer such that (1) the primary peer is the only starting peer, and (2) all the other peers can be reached from the primary peer by exactly one path.
RoutingTable.Builder - Class in org.apache.ratis.protocol
To build a RoutingTable.
RpcFactory - Interface in org.apache.ratis.rpc
The type of RPC Factory.
RpcType - Interface in org.apache.ratis.rpc
The type of RPC implementations.
RpcType.Get - Interface in org.apache.ratis.rpc
An interface to get RpcType.
run() - Method in interface org.apache.ratis.util.function.CheckedRunnable
The same as Runnable.run() except that this method is declared with a throws-clause.
runAndLog(Logger, CheckedRunnable<THROWABLE>, Supplier<String>) - Static method in interface org.apache.ratis.util.LogUtils
 
runAsUnchecked(CheckedRunnable<T>) - Static method in interface org.apache.ratis.util.JavaUtils
 
runAsUnchecked(CheckedRunnable<THROWABLE>, Function<THROWABLE, ? extends RuntimeException>) - Static method in interface org.apache.ratis.util.JavaUtils
 
RUNNING - Static variable in class org.apache.ratis.util.LifeCycle.States
 
runRepeatedly(Runnable, long, long, TimeUnit) - Static method in interface org.apache.ratis.util.JavaUtils
 

S

saveMD5File(File, MD5Hash) - Static method in class org.apache.ratis.util.MD5FileUtil
Save the ".md5" file that lists the md5sum of another file.
Server(Object, REQUEST) - Constructor for class org.apache.ratis.util.SlidingWindow.Server
 
ServerNotReadyException - Exception in org.apache.ratis.protocol.exceptions
The server is not ready yet.
ServerNotReadyException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.ServerNotReadyException
 
set(BiConsumer<String, T>, String, T, BiConsumer<String, T>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
set(String, String) - Method in class org.apache.ratis.conf.RaftProperties
Set the value of the name property.
set(MD5Hash) - Method in class org.apache.ratis.io.MD5Hash
Copy the contents of another instance into this instance.
setAddress(String) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setAddress(InetSocketAddress) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setAdminAddress(String) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setAdminAddress(InetSocketAddress) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setBaseSleepTime(TimeDuration) - Method in class org.apache.ratis.retry.ExponentialBackoffRetry.Builder
 
setBoolean(BiConsumer<String, Boolean>, String, boolean, BiConsumer<String, Boolean>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
setBoolean(String, boolean) - Method in class org.apache.ratis.conf.RaftProperties
Set the value of the name property to a boolean.
setBuffer(ByteBuffer) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setBytesWritten(long) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setCallId(long) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setCallId(long) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setClass(String, Class<?>, Class<?>) - Method in class org.apache.ratis.conf.RaftProperties
Set the value of the name property to the name of a theClass implementing the given interface xface.
setClientAddress(String) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setClientAddress(InetSocketAddress) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setClientId(ClientId) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setClientId(ClientId) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setClientId(ClientId) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setClientInvocationId(ClientInvocationId) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setCommitInfos(Collection<RaftProtos.CommitInfoProto>) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setCommitInfos(Collection<RaftProtos.CommitInfoProto>) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setConfiguration(SetConfigurationRequest) - Method in interface org.apache.ratis.protocol.AdminProtocol
 
setConfigurationAsync(SetConfigurationRequest) - Method in interface org.apache.ratis.protocol.AdminAsynchronousProtocol
 
SetConfigurationRequest - Class in org.apache.ratis.protocol
 
SetConfigurationRequest(ClientId, RaftPeerId, RaftGroupId, long, List<RaftPeer>) - Constructor for class org.apache.ratis.protocol.SetConfigurationRequest
 
SetConfigurationRequest(ClientId, RaftPeerId, RaftGroupId, long, List<RaftPeer>, List<RaftPeer>) - Constructor for class org.apache.ratis.protocol.SetConfigurationRequest
 
setDataStreamAddress(String) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setDataStreamAddress(InetSocketAddress) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setDataStreamPacket(DataStreamPacket) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setDataStreamReplyHeader(DataStreamReplyHeader) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setDefaultPolicy(RetryPolicy) - Method in class org.apache.ratis.retry.ExceptionDependentRetry.Builder
 
setDigest(String) - Method in class org.apache.ratis.io.MD5Hash
Sets the digest value from a hex string.
setDouble(BiConsumer<String, Double>, String, double, BiConsumer<String, Double>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
setDouble(String, double) - Method in class org.apache.ratis.conf.RaftProperties
Set the value of the name property to a double.
setEnum(String, T) - Method in class org.apache.ratis.conf.RaftProperties
Set the value of the name property to the given type.
setException(RaftException) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setExceptionToPolicy(Class<? extends Throwable>, RetryPolicy) - Method in class org.apache.ratis.retry.ExceptionDependentRetry.Builder
 
setFile(BiConsumer<String, File>, String, File, BiConsumer<String, File>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
setFile(String, File) - Method in class org.apache.ratis.conf.RaftProperties
 
setFiles(BiConsumer<String, List<File>>, String, List<File>, BiConsumer<String, List<File>>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
setFiles(String, List<File>) - Method in class org.apache.ratis.conf.RaftProperties
 
setFirstRequest() - Method in interface org.apache.ratis.util.SlidingWindow.ClientSideRequest
 
setGroupId(RaftGroupId) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setGroupId(RaftGroupId) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setId(RaftPeerId) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setId(String) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setId(ByteString) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setIfUnset(String, String) - Method in class org.apache.ratis.conf.RaftProperties
Sets a property if it is currently unset.
setInt(BiConsumer<String, Integer>, String, int, BiConsumer<String, Integer>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
setInt(String, int) - Method in class org.apache.ratis.conf.RaftProperties
Set the value of the name property to an int.
setKeyCertificates(TlsConf.CertificatesConf) - Method in class org.apache.ratis.security.TlsConf.Builder
 
setLeaderId(RaftPeerId) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setLogIndex(long) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setLong(BiConsumer<String, Long>, String, long, BiConsumer<String, Long>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
setLong(String, long) - Method in class org.apache.ratis.conf.RaftProperties
Set the value of the name property to a long.
setMaxAttempts(int) - Method in class org.apache.ratis.retry.ExceptionDependentRetry.Builder
 
setMaxAttempts(int) - Method in class org.apache.ratis.retry.ExponentialBackoffRetry.Builder
 
setMaxSleepTime(TimeDuration) - Method in class org.apache.ratis.retry.ExponentialBackoffRetry.Builder
 
setMessage(Message) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setMessage(Message) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setMutualTls(boolean) - Method in class org.apache.ratis.security.TlsConf.Builder
 
setName(String) - Method in class org.apache.ratis.security.TlsConf.Builder
 
setName(String) - Method in class org.apache.ratis.util.LifeCycle
 
setPriority(int) - Method in class org.apache.ratis.protocol.RaftPeer.Builder
 
setPrivateKey(TlsConf.PrivateKeyConf) - Method in class org.apache.ratis.security.TlsConf.Builder
 
setReply(REPLY) - Method in interface org.apache.ratis.util.SlidingWindow.Request
 
setRequest(RaftClientRequest) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setRoutingTable(RoutingTable) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setServerId(RaftPeerId) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setServerId(RaftGroupMemberId) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setServerId(RaftPeerId) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setSizeInBytes(BiConsumer<String, String>, String, SizeInBytes, BiConsumer<String, Long>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
setSlidingWindowEntry(RaftProtos.SlidingWindowEntry) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setStreamId(long) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setStreamOffset(long) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setSuccess(boolean) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setSuccess(boolean) - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setSuccess() - Method in class org.apache.ratis.protocol.RaftClientReply.Builder
 
setTerminateOnUncaughtException(boolean) - Static method in interface org.apache.ratis.util.ExitUtils
 
setTimeDuration(BiConsumer<String, TimeDuration>, String, TimeDuration, BiConsumer<String, TimeDuration>...) - Static method in interface org.apache.ratis.conf.ConfUtils
 
setTimeDuration(String, TimeDuration) - Method in class org.apache.ratis.conf.RaftProperties
Set the value of name to the given time duration.
setTimeoutMs(long) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setTlsConf(BiConsumer<String, TlsConf>, String, TlsConf) - Static method in interface org.apache.ratis.conf.ConfUtils
 
setTrustCertificates(TlsConf.CertificatesConf) - Method in class org.apache.ratis.security.TlsConf.Builder
 
setType(RaftProtos.DataStreamPacketHeaderProto.Type) - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer.Builder
 
setType(RaftClientRequest.Type) - Method in class org.apache.ratis.protocol.RaftClientRequest.Builder
 
setType(RaftProperties, SupportedDataStreamType) - Static method in interface org.apache.ratis.RaftConfigKeys.DataStream
 
setType(RaftProperties, RpcType) - Static method in interface org.apache.ratis.RaftConfigKeys.Rpc
 
shouldReconnect(Throwable) - Static method in interface org.apache.ratis.util.IOUtils
 
shouldRetry() - Method in interface org.apache.ratis.retry.RetryPolicy.Action
 
shutdownAndWait(ExecutorService) - Static method in interface org.apache.ratis.util.ConcurrentUtils
Shutdown the given executor and wait for its termination.
shutdownAndWait(TimeDuration, ExecutorService, Consumer<TimeDuration>) - Static method in interface org.apache.ratis.util.ConcurrentUtils
 
signal() - Method in class org.apache.ratis.util.AwaitForSignal
The same as Condition.signal()
size() - Method in class org.apache.ratis.conf.RaftProperties
 
size() - Method in interface org.apache.ratis.protocol.Message
 
SizeInBytes - Class in org.apache.ratis.util
Size which may be constructed with a TraditionalBinaryPrefix.
skipFully(InputStream, long) - Static method in interface org.apache.ratis.util.IOUtils
Similar to readFully().
sleep() - Method in class org.apache.ratis.util.TimeDuration
The same as sleep(null).
sleep(Consumer<Object>) - Method in class org.apache.ratis.util.TimeDuration
Performs a TimeUnit.sleep(long) using this TimeDuration.
SLEEP_TIME - Static variable in interface org.apache.ratis.util.FileUtils
 
slice() - Method in class org.apache.ratis.datastream.impl.DataStreamPacketByteBuffer
 
SlidingWindow - Interface in org.apache.ratis.util
A single-client-to-multiple-server sliding window.
SlidingWindow.Client<REQUEST extends SlidingWindow.ClientSideRequest<REPLY>,REPLY> - Class in org.apache.ratis.util
Client side sliding window.
SlidingWindow.ClientSideRequest<REPLY> - Interface in org.apache.ratis.util
 
SlidingWindow.Request<REPLY> - Interface in org.apache.ratis.util
 
SlidingWindow.RequestMap<REQUEST extends SlidingWindow.Request<REPLY>,REPLY> - Class in org.apache.ratis.util
A seqNum-to-request map, sorted by seqNum.
SlidingWindow.Server<REQUEST extends SlidingWindow.ServerSideRequest<REPLY>,REPLY> - Class in org.apache.ratis.util
Server side sliding window.
SlidingWindow.ServerSideRequest<REPLY> - Interface in org.apache.ratis.util
 
snapshotManagement(SnapshotManagementRequest) - Method in interface org.apache.ratis.protocol.AdminProtocol
 
snapshotManagementAsync(SnapshotManagementRequest) - Method in interface org.apache.ratis.protocol.AdminAsynchronousProtocol
 
SnapshotManagementRequest - Class in org.apache.ratis.protocol
 
SnapshotManagementRequest(ClientId, RaftPeerId, RaftGroupId, long, long, SnapshotManagementRequest.Op) - Constructor for class org.apache.ratis.protocol.SnapshotManagementRequest
 
SnapshotManagementRequest.Create - Class in org.apache.ratis.protocol
 
SnapshotManagementRequest.Op - Class in org.apache.ratis.protocol
 
SOLARIS - Static variable in class org.apache.ratis.util.PlatformUtils
 
StaleReadException - Exception in org.apache.ratis.protocol.exceptions
This exception indicates the failure of a stale-read.
StaleReadException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.StaleReadException
 
staleReadRequestType(long) - Static method in class org.apache.ratis.protocol.RaftClientRequest
 
StandardWriteOption - Enum in org.apache.ratis.io
 
start() - Method in class org.apache.ratis.util.JvmPauseMonitor
Start this monitor.
startAndTransition(CheckedRunnable<T>, Class<? extends Throwable>...) - Method in class org.apache.ratis.util.LifeCycle
Run the given start method and transition the current state accordingly.
STARTING_OR_RUNNING - Static variable in class org.apache.ratis.util.LifeCycle.States
 
StateMachineException - Exception in org.apache.ratis.protocol.exceptions
 
StateMachineException(RaftGroupMemberId, Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.StateMachineException
 
StateMachineException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.StateMachineException
 
StateMachineException(String, Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.StateMachineException
 
StateMachineException(RaftGroupMemberId, Throwable, boolean) - Constructor for exception org.apache.ratis.protocol.exceptions.StateMachineException
 
StateMachineException(String, boolean) - Constructor for exception org.apache.ratis.protocol.exceptions.StateMachineException
 
StateMachineException(String, Throwable, boolean) - Constructor for exception org.apache.ratis.protocol.exceptions.StateMachineException
 
StaticResolution() - Constructor for class org.apache.ratis.util.NetUtils.StaticResolution
 
stop() - Method in class org.apache.ratis.util.JvmPauseMonitor
Stop this monitor.
StreamException - Exception in org.apache.ratis.protocol.exceptions
A stream is not found in the server.
StreamException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.StreamException
 
string2boolean(String, boolean) - Static method in class org.apache.ratis.util.StringUtils
 
string2long(String) - Static method in enum org.apache.ratis.util.TraditionalBinaryPrefix
Convert a string to long.
stringifyException(Throwable) - Static method in class org.apache.ratis.util.StringUtils
 
stringSupplierAsObject(Supplier<String>) - Static method in class org.apache.ratis.util.StringUtils
 
StringUtils - Class in org.apache.ratis.util
 
submit(CheckedSupplier<OUTPUT, THROWABLE>, ExecutorService) - Method in class org.apache.ratis.util.TaskQueue
The same as submit(task, executor, Function.identity());
submit(CheckedSupplier<OUTPUT, THROWABLE>, ExecutorService, Function<Throwable, Throwable>) - Method in class org.apache.ratis.util.TaskQueue
Offer the given task to this queue and then submit the tasks one by one in the queue order for execution.
submitClientRequest(RaftClientRequest) - Method in interface org.apache.ratis.protocol.RaftClientProtocol
 
submitClientRequestAsync(RaftClientRequest) - Method in interface org.apache.ratis.protocol.RaftClientAsynchronousProtocol
 
submitNewRequest(LongFunction<REQUEST>, Consumer<REQUEST>) - Method in class org.apache.ratis.util.SlidingWindow.Client
A new request arrives, create it with SlidingWindow.Client.nextSeqNum and then try sending it to the server.
subtract(TimeDuration) - Method in class org.apache.ratis.util.TimeDuration
 
supplyAndLog(Logger, CheckedSupplier<OUTPUT, THROWABLE>, Supplier<String>) - Static method in interface org.apache.ratis.util.LogUtils
 
supplyAndWrapAsCompletionException(CheckedSupplier<OUTPUT, THROWABLE>) - Static method in interface org.apache.ratis.util.JavaUtils
 
SupportedDataStreamType - Enum in org.apache.ratis.datastream
 
SupportedRpcType - Enum in org.apache.ratis.rpc
The RPC types supported.

T

TaskQueue - Class in org.apache.ratis.util
A queue with execution order guarantee such that each task is submitted for execution only if it becomes the head of the queue.
TaskQueue(String) - Constructor for class org.apache.ratis.util.TaskQueue
 
terminate(int, String, Throwable, boolean, Logger) - Static method in interface org.apache.ratis.util.ExitUtils
 
terminate(int, String, Throwable, Logger) - Static method in interface org.apache.ratis.util.ExitUtils
 
terminate(int, String, Logger) - Static method in interface org.apache.ratis.util.ExitUtils
 
TimeDuration - Class in org.apache.ratis.util
Time duration is represented by a long together with a TimeUnit.
TimeDuration.Abbreviation - Enum in org.apache.ratis.util
Abbreviations of TimeUnit.
TimeoutIOException - Exception in org.apache.ratis.protocol.exceptions
Timeout has occurred for a blocking I/O.
TimeoutIOException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.TimeoutIOException
 
TimeoutIOException(String, Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.TimeoutIOException
 
TimeoutScheduler - Class in org.apache.ratis.util
 
Timestamp - Class in org.apache.ratis.util
Use System.nanoTime() as timestamps.
TlsConf - Class in org.apache.ratis.security
TLS configurations.
TlsConf(TlsConf.Builder) - Constructor for class org.apache.ratis.security.TlsConf
 
TlsConf.Builder - Class in org.apache.ratis.security
For building TlsConf.
TlsConf.CertificatesConf - Class in org.apache.ratis.security
Configuration for X509Certificates.
TlsConf.KeyManagerConf - Class in org.apache.ratis.security
Configurations for a key manager.
TlsConf.PrivateKeyConf - Class in org.apache.ratis.security
Configuration for a PrivateKey.
TlsConf.TrustManagerConf - Class in org.apache.ratis.security
Configurations for a trust manager.
TMP_EXTENSION - Static variable in class org.apache.ratis.util.AtomicFileOutputStream
 
to(TimeUnit) - Method in class org.apache.ratis.util.TimeDuration
 
toByteString() - Method in class org.apache.ratis.protocol.RaftId
 
toByteString() - Method in class org.apache.ratis.protocol.RaftPeerId
 
toByteString(String) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toByteString(byte[]) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toByteString(byte[], int, int) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toCommitInfoProto(RaftPeer, long) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toInterruptedIOException(String, InterruptedException) - Static method in interface org.apache.ratis.util.IOUtils
 
toIntExact(TimeUnit) - Method in class org.apache.ratis.util.TimeDuration
The same as Math.toIntExact(toLong(targetUnit)); Similar to TimeDuration.toLong(TimeUnit), the returned value may be truncated.
toIOException(ExecutionException) - Static method in interface org.apache.ratis.util.IOUtils
 
toLong(TimeUnit) - Method in class org.apache.ratis.util.TimeDuration
Convert this TimeDuration to a long in the target unit.
toLong(long) - Method in enum org.apache.ratis.util.TraditionalBinaryPrefix
 
toObject(ByteString) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toProto() - Method in interface org.apache.ratis.protocol.RoutingTable
 
toRaftGroup(RaftProtos.RaftGroupProto) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftGroupId(RaftProtos.RaftGroupIdProto) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftGroupIdProtoBuilder(RaftGroupId) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftGroupMemberId(ByteString, RaftProtos.RaftGroupIdProto) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftGroupMemberId(RaftProtos.RaftGroupMemberIdProto) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftGroupMemberIdProtoBuilder(RaftGroupMemberId) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftGroupProtoBuilder(RaftGroup) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftPeer(RaftProtos.RaftPeerProto) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftPeerIdProtos(Collection<RaftPeerId>) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftPeerProtos(Collection<RaftPeer>) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRaftPeers(List<RaftProtos.RaftPeerProto>) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toRouteProtos(Map<RaftPeerId, Set<RaftPeerId>>) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toSlidingWindowEntry(long, boolean) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toString() - Method in class org.apache.ratis.conf.RaftProperties
 
toString() - Method in class org.apache.ratis.datastream.impl.DataStreamPacketImpl
 
toString() - Method in class org.apache.ratis.datastream.impl.DataStreamReplyByteBuffer
 
toString() - Method in class org.apache.ratis.io.MD5Hash
Returns a string representation of this object.
toString() - Method in class org.apache.ratis.protocol.ClientInvocationId
 
toString() - Method in class org.apache.ratis.protocol.GroupManagementRequest.Add
 
toString() - Method in class org.apache.ratis.protocol.GroupManagementRequest.Remove
 
toString() - Method in class org.apache.ratis.protocol.GroupManagementRequest
 
toString() - Method in class org.apache.ratis.protocol.LeaderElectionManagementRequest.Pause
 
toString() - Method in class org.apache.ratis.protocol.LeaderElectionManagementRequest.Resume
 
toString() - Method in class org.apache.ratis.protocol.LeaderElectionManagementRequest
 
toString() - Method in class org.apache.ratis.protocol.RaftClientMessage
 
toString() - Method in class org.apache.ratis.protocol.RaftClientReply
 
toString() - Method in class org.apache.ratis.protocol.RaftClientRequest
 
toString(RaftProtos.ReplicationLevel) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
toString(RaftProtos.WatchRequestTypeProto) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
toString(RaftProtos.MessageStreamRequestTypeProto) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
toString() - Method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
toString() - Method in class org.apache.ratis.protocol.RaftGroup
 
toString() - Method in class org.apache.ratis.protocol.RaftGroupMemberId
 
toString() - Method in class org.apache.ratis.protocol.RaftId
 
toString() - Method in class org.apache.ratis.protocol.RaftPeer
 
toString() - Method in class org.apache.ratis.protocol.RaftPeerId
 
toString() - Method in class org.apache.ratis.protocol.SetConfigurationRequest
 
toString() - Method in class org.apache.ratis.protocol.SnapshotManagementRequest.Create
 
toString() - Method in class org.apache.ratis.protocol.SnapshotManagementRequest
 
toString() - Method in class org.apache.ratis.retry.ExceptionDependentRetry
 
toString() - Method in class org.apache.ratis.retry.MultipleLinearRandomRetry
 
toString() - Method in class org.apache.ratis.retry.RetryPolicies.NoRetry
 
toString() - Method in class org.apache.ratis.retry.RetryPolicies.RetryForeverNoSleep
 
toString() - Method in class org.apache.ratis.retry.RetryPolicies.RetryForeverWithSleep
 
toString() - Method in class org.apache.ratis.retry.RetryPolicies.RetryLimited
 
toString() - Method in class org.apache.ratis.security.TlsConf
 
toString() - Method in class org.apache.ratis.util.AwaitForSignal
 
toString() - Method in class org.apache.ratis.util.JvmPauseMonitor
 
toString() - Method in class org.apache.ratis.util.LifeCycle
 
toString() - Method in class org.apache.ratis.util.OpenCloseState
 
toString(RaftProtos.CommitInfoProto) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toString(Collection<RaftProtos.CommitInfoProto>) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toString(RaftProtos.SlidingWindowEntry) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toString(RaftProtos.RaftRpcRequestProto) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toString(RaftProtos.RaftRpcReplyProto) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toString() - Method in class org.apache.ratis.util.ResourceSemaphore.Group
 
toString() - Method in class org.apache.ratis.util.ResourceSemaphore
 
toString() - Method in class org.apache.ratis.util.SizeInBytes
 
toString() - Method in class org.apache.ratis.util.SlidingWindow.Client
 
toString() - Method in class org.apache.ratis.util.SlidingWindow.RequestMap
 
toString() - Method in class org.apache.ratis.util.SlidingWindow.Server
 
toString() - Method in class org.apache.ratis.util.TaskQueue
 
toString() - Method in class org.apache.ratis.util.TimeDuration
 
toString() - Method in class org.apache.ratis.util.Timestamp
 
toString(long) - Method in enum org.apache.ratis.util.TraditionalBinaryPrefix
 
toThrowable(RaftProtos.ThrowableProto, Class<T>) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toThrowableProto(Throwable) - Static method in interface org.apache.ratis.util.ProtoUtils
 
toWriteRequest(RaftClientRequest, Message) - Static method in class org.apache.ratis.protocol.RaftClientRequest
Convert the given request to a write request with the given message.
TraditionalBinaryPrefix - Enum in org.apache.ratis.util
The traditional binary prefixes, kilo, mega, ..., exa, which can be represented by a 64-bit integer.
transferLeadership(TransferLeadershipRequest) - Method in interface org.apache.ratis.protocol.AdminProtocol
 
transferLeadershipAsync(TransferLeadershipRequest) - Method in interface org.apache.ratis.protocol.AdminAsynchronousProtocol
 
TransferLeadershipException - Exception in org.apache.ratis.protocol.exceptions
 
TransferLeadershipException(String) - Constructor for exception org.apache.ratis.protocol.exceptions.TransferLeadershipException
 
TransferLeadershipException(String, Throwable) - Constructor for exception org.apache.ratis.protocol.exceptions.TransferLeadershipException
 
TransferLeadershipRequest - Class in org.apache.ratis.protocol
 
TransferLeadershipRequest(ClientId, RaftPeerId, RaftGroupId, long, RaftPeerId, long) - Constructor for class org.apache.ratis.protocol.TransferLeadershipRequest
 
transition(LifeCycle.State) - Method in class org.apache.ratis.util.LifeCycle
Transition from the current state to the given state.
transition(UnaryOperator<LifeCycle.State>) - Method in class org.apache.ratis.util.LifeCycle
Transition using the given operator.
transitionAndGet(UnaryOperator<LifeCycle.State>) - Method in class org.apache.ratis.util.LifeCycle
Transition using the given operator.
transitionIfNotEqual(LifeCycle.State) - Method in class org.apache.ratis.util.LifeCycle
Transition from the current state to the given state if the current state is not equal to the given state.
transitionIfValid(LifeCycle.State) - Method in class org.apache.ratis.util.LifeCycle
Transition from the current state to the given state only if the transition is valid.
TriConsumer<T,U,V> - Interface in org.apache.ratis.util.function
Consumer with three input parameters.
truncateFile(File, long) - Static method in interface org.apache.ratis.util.FileUtils
 
tryAcquire(int...) - Method in class org.apache.ratis.util.ResourceSemaphore.Group
 
type(RaftProperties, Consumer<String>) - Static method in interface org.apache.ratis.RaftConfigKeys.DataStream
 
type(RaftProperties, Consumer<String>) - Static method in interface org.apache.ratis.RaftConfigKeys.Rpc
 
TYPE_DEFAULT - Static variable in interface org.apache.ratis.RaftConfigKeys.DataStream
 
TYPE_DEFAULT - Static variable in interface org.apache.ratis.RaftConfigKeys.Rpc
 
TYPE_KEY - Static variable in interface org.apache.ratis.RaftConfigKeys.DataStream
 
TYPE_KEY - Static variable in interface org.apache.ratis.RaftConfigKeys.Rpc
 

U

UncheckedAutoCloseable - Interface in org.apache.ratis.util
The same as AutoCloseable except that the close method does not throw Exception.
unit() - Method in enum org.apache.ratis.util.TimeDuration.Abbreviation
 
unregister() - Method in class org.apache.ratis.util.JmxRegister
Un-register the previously registered mBean.
unset(String) - Method in class org.apache.ratis.conf.RaftProperties
Unset a previously set property.
unwrapCompletionException(Throwable) - Static method in interface org.apache.ratis.util.JavaUtils
 
update(byte[], int, int) - Method in class org.apache.ratis.util.PureJavaCrc32C
 
update(int) - Method in class org.apache.ratis.util.PureJavaCrc32C
 
updateAndGet(AtomicReference<E>, CheckedFunction<E, E, THROWABLE>) - Static method in interface org.apache.ratis.util.ConcurrentUtils
Similar to AtomicReference.updateAndGet(java.util.function.UnaryOperator) except that the update function is checked.
used() - Method in class org.apache.ratis.util.ResourceSemaphore
 

V

valueOf(String) - Static method in interface org.apache.ratis.datastream.DataStreamType
Parse the given string as a SupportedDataStreamType or a user-defined DataStreamType.
valueOf(String) - Static method in enum org.apache.ratis.datastream.SupportedDataStreamType
Returns the enum constant of this type with the specified name.
valueOf(File, long, long) - Static method in class org.apache.ratis.io.FilePositionCount
 
valueOf(String) - Static method in enum org.apache.ratis.io.StandardWriteOption
Returns the enum constant of this type with the specified name.
valueOf(ByteString) - Static method in class org.apache.ratis.protocol.ClientId
 
valueOf(UUID) - Static method in class org.apache.ratis.protocol.ClientId
 
valueOf(ClientId, long) - Static method in class org.apache.ratis.protocol.ClientInvocationId
 
valueOf(RaftClientMessage) - Static method in class org.apache.ratis.protocol.ClientInvocationId
 
valueOf(RaftProtos.StateMachineLogEntryProto) - Static method in class org.apache.ratis.protocol.ClientInvocationId
 
valueOf(ByteString, Supplier<String>) - Static method in interface org.apache.ratis.protocol.Message
 
valueOf(ByteString) - Static method in interface org.apache.ratis.protocol.Message
 
valueOf(String) - Static method in interface org.apache.ratis.protocol.Message
 
valueOf(RaftProtos.WriteRequestTypeProto) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
valueOf(RaftProtos.DataStreamRequestTypeProto) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
valueOf(RaftProtos.ForwardRequestTypeProto) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
valueOf(RaftProtos.ReadRequestTypeProto) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
valueOf(RaftProtos.StaleReadRequestTypeProto) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
valueOf(RaftProtos.WatchRequestTypeProto) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
valueOf(RaftProtos.MessageStreamRequestTypeProto) - Static method in class org.apache.ratis.protocol.RaftClientRequest.Type
 
valueOf(RaftGroupId, RaftPeer...) - Static method in class org.apache.ratis.protocol.RaftGroup
 
valueOf(RaftGroupId, Collection<RaftPeer>) - Static method in class org.apache.ratis.protocol.RaftGroup
 
valueOf(UUID) - Static method in class org.apache.ratis.protocol.RaftGroupId
 
valueOf(ByteString) - Static method in class org.apache.ratis.protocol.RaftGroupId
 
valueOf(RaftPeerId, RaftGroupId) - Static method in class org.apache.ratis.protocol.RaftGroupMemberId
 
valueOf(ByteString) - Static method in class org.apache.ratis.protocol.RaftPeerId
 
valueOf(String) - Static method in class org.apache.ratis.protocol.RaftPeerId
 
valueOf(String) - Static method in interface org.apache.ratis.rpc.RpcType
Parse the given string as a SupportedRpcType or a user-defined RpcType.
valueOf(String) - Static method in enum org.apache.ratis.rpc.SupportedRpcType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.apache.ratis.util.LifeCycle.State
Returns the enum constant of this type with the specified name.
valueOf(Supplier<T>) - Static method in class org.apache.ratis.util.MemoizedSupplier
 
valueOf(String) - Static method in enum org.apache.ratis.util.PlatformUtils.OSType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.apache.ratis.util.ResourceSemaphore.ResourceAcquireStatus
Returns the enum constant of this type with the specified name.
valueOf(long) - Static method in class org.apache.ratis.util.SizeInBytes
 
valueOf(long, TraditionalBinaryPrefix) - Static method in class org.apache.ratis.util.SizeInBytes
 
valueOf(String) - Static method in class org.apache.ratis.util.SizeInBytes
 
valueOf(String) - Static method in enum org.apache.ratis.util.TimeDuration.Abbreviation
Returns the enum constant of this type with the specified name.
valueOf(TimeUnit) - Static method in enum org.apache.ratis.util.TimeDuration.Abbreviation
 
valueOf(String, TimeUnit) - Static method in class org.apache.ratis.util.TimeDuration
Parse the given time duration string.
valueOf(long, TimeUnit) - Static method in class org.apache.ratis.util.TimeDuration
 
valueOf(long) - Static method in class org.apache.ratis.util.Timestamp
 
valueOf(String) - Static method in enum org.apache.ratis.util.TraditionalBinaryPrefix
Returns the enum constant of this type with the specified name.
valueOf(char) - Static method in enum org.apache.ratis.util.TraditionalBinaryPrefix
 
valueOfIgnoreCase(String) - Static method in enum org.apache.ratis.datastream.SupportedDataStreamType
 
valueOfIgnoreCase(String) - Static method in enum org.apache.ratis.rpc.SupportedRpcType
Same as SupportedRpcType.valueOf(String) except that this method is case insensitive.
values() - Static method in enum org.apache.ratis.datastream.SupportedDataStreamType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.ratis.io.StandardWriteOption
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.ratis.rpc.SupportedRpcType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.ratis.util.LifeCycle.State
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.ratis.util.PlatformUtils.OSType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.ratis.util.ResourceSemaphore.ResourceAcquireStatus
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.ratis.util.TimeDuration.Abbreviation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.ratis.util.TraditionalBinaryPrefix
Returns an array containing the constants of this enum type, in the order they are declared.
verifySavedMD5(File, MD5Hash) - Static method in class org.apache.ratis.util.MD5FileUtil
Verify that the previously saved md5 for the given file matches expectedMd5.

W

warn(Logger, Supplier<String>, Throwable, Class<?>...) - Static method in interface org.apache.ratis.util.LogUtils
 
watchRequestType() - Static method in class org.apache.ratis.protocol.RaftClientRequest
 
watchRequestType(long, RaftProtos.ReplicationLevel) - Static method in class org.apache.ratis.protocol.RaftClientRequest
 
weakIntern(String) - Static method in class org.apache.ratis.util.StringUtils
Interns and returns a reference to the representative instance for any of a collection of string instances that are equal to each other.
WINDOWS - Static variable in class org.apache.ratis.util.PlatformUtils
 
wrap(V, Runnable, Runnable) - Static method in interface org.apache.ratis.util.ReferenceCountedObject
Wrap the given value as a ReferenceCountedObject.
write(DataOutput) - Method in class org.apache.ratis.io.MD5Hash
 
writeFully(FileChannel, ByteBuffer, long) - Static method in interface org.apache.ratis.util.IOUtils
Write a ByteBuffer to a FileChannel at a given offset, handling short writes.
writeLock(StackTraceElement, Consumer<String>) - Method in class org.apache.ratis.util.AutoCloseableReadWriteLock
 
writeObject2ByteString(Object) - Static method in interface org.apache.ratis.util.ProtoUtils
 
WriteOption - Interface in org.apache.ratis.io
 
writeRequestType() - Static method in class org.apache.ratis.protocol.RaftClientRequest
 

Z

ZERO - Static variable in class org.apache.ratis.util.TimeDuration
 
A B C D E F G H I J L M N O P Q R S T U V W Z 
Skip navigation links

Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.