Class ShardStats.Builder
- All Implemented Interfaces:
WithJson<ShardStats.Builder>
,ObjectBuilder<ShardStats>
- Enclosing class:
- ShardStats
ShardStats
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aShardStats
.final ShardStats.Builder
bytesRead
(long value) Required - The total of transferred bytes read from the leader.final ShardStats.Builder
failedReadRequests
(long value) Required - The number of failed reads.final ShardStats.Builder
failedWriteRequests
(long value) Required - The number of failed bulk write requests on the follower.final ShardStats.Builder
fatalException
(ErrorCause value) API name:fatal_exception
final ShardStats.Builder
API name:fatal_exception
final ShardStats.Builder
followerAliasesVersion
(long value) Required - The index aliases version the follower is synced up to.final ShardStats.Builder
followerGlobalCheckpoint
(long value) Required - The current global checkpoint on the follower.final ShardStats.Builder
followerIndex
(String value) Required - The name of the follower index.final ShardStats.Builder
followerMappingVersion
(long value) Required - The mapping version the follower is synced up to.final ShardStats.Builder
followerMaxSeqNo
(long value) Required - The current maximum sequence number on the follower.final ShardStats.Builder
followerSettingsVersion
(long value) Required - The index settings version the follower is synced up to.final ShardStats.Builder
lastRequestedSeqNo
(long value) Required - The starting sequence number of the last batch of operations requested from the leader.final ShardStats.Builder
leaderGlobalCheckpoint
(long value) Required - The current global checkpoint on the leader known to the follower task.final ShardStats.Builder
leaderIndex
(String value) Required - The name of the index in the leader cluster being followed.final ShardStats.Builder
leaderMaxSeqNo
(long value) Required - The current maximum sequence number on the leader known to the follower task.final ShardStats.Builder
operationsRead
(long value) Required - The total number of operations read from the leader.final ShardStats.Builder
operationsWritten
(long value) Required - The number of operations written on the follower.final ShardStats.Builder
outstandingReadRequests
(int value) Required - The number of active read requests from the follower.final ShardStats.Builder
outstandingWriteRequests
(int value) Required - The number of active bulk write requests on the follower.final ShardStats.Builder
readExceptions
(ReadException value, ReadException... values) Required - An array of objects representing failed reads.final ShardStats.Builder
Required - An array of objects representing failed reads.final ShardStats.Builder
readExceptions
(List<ReadException> list) Required - An array of objects representing failed reads.final ShardStats.Builder
remoteCluster
(String value) Required - The remote cluster containing the leader index.protected ShardStats.Builder
self()
final ShardStats.Builder
shardId
(int value) Required - The numerical shard ID, with values from 0 to one less than the number of replicas.final ShardStats.Builder
successfulReadRequests
(long value) Required - The number of successful fetches.final ShardStats.Builder
successfulWriteRequests
(long value) Required - The number of bulk write requests run on the follower.final ShardStats.Builder
timeSinceLastRead
(Time value) API name:time_since_last_read
final ShardStats.Builder
API name:time_since_last_read
final ShardStats.Builder
timeSinceLastReadMillis
(long value) Required - The number of milliseconds since a read request was sent to the leader.final ShardStats.Builder
totalReadRemoteExecTime
(Time value) API name:total_read_remote_exec_time
final ShardStats.Builder
API name:total_read_remote_exec_time
final ShardStats.Builder
totalReadRemoteExecTimeMillis
(long value) Required - The total time reads spent running on the remote cluster.final ShardStats.Builder
totalReadTime
(Time value) API name:total_read_time
final ShardStats.Builder
API name:total_read_time
final ShardStats.Builder
totalReadTimeMillis
(long value) Required - The total time reads were outstanding, measured from the time a read was sent to the leader to the time a reply was returned to the follower.final ShardStats.Builder
totalWriteTime
(Time value) API name:total_write_time
final ShardStats.Builder
API name:total_write_time
final ShardStats.Builder
totalWriteTimeMillis
(long value) Required - The total time spent writing on the follower.final ShardStats.Builder
writeBufferOperationCount
(long value) Required - The number of write operations queued on the follower.final ShardStats.Builder
writeBufferSizeInBytes
(String value) Required - The total number of bytes of operations currently queued for writing.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bytesRead
Required - The total of transferred bytes read from the leader. This is only an estimate and does not account for compression if enabled.API name:
bytes_read
-
failedReadRequests
Required - The number of failed reads.API name:
failed_read_requests
-
failedWriteRequests
Required - The number of failed bulk write requests on the follower.API name:
failed_write_requests
-
fatalException
API name:fatal_exception
-
fatalException
public final ShardStats.Builder fatalException(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) API name:fatal_exception
-
followerAliasesVersion
Required - The index aliases version the follower is synced up to.API name:
follower_aliases_version
-
followerGlobalCheckpoint
Required - The current global checkpoint on the follower. The difference between theleader_global_checkpoint
and thefollower_global_checkpoint
is an indication of how much the follower is lagging the leader.API name:
follower_global_checkpoint
-
followerIndex
Required - The name of the follower index.API name:
follower_index
-
followerMappingVersion
Required - The mapping version the follower is synced up to.API name:
follower_mapping_version
-
followerMaxSeqNo
Required - The current maximum sequence number on the follower.API name:
follower_max_seq_no
-
followerSettingsVersion
Required - The index settings version the follower is synced up to.API name:
follower_settings_version
-
lastRequestedSeqNo
Required - The starting sequence number of the last batch of operations requested from the leader.API name:
last_requested_seq_no
-
leaderGlobalCheckpoint
Required - The current global checkpoint on the leader known to the follower task.API name:
leader_global_checkpoint
-
leaderIndex
Required - The name of the index in the leader cluster being followed.API name:
leader_index
-
leaderMaxSeqNo
Required - The current maximum sequence number on the leader known to the follower task.API name:
leader_max_seq_no
-
operationsRead
Required - The total number of operations read from the leader.API name:
operations_read
-
operationsWritten
Required - The number of operations written on the follower.API name:
operations_written
-
outstandingReadRequests
Required - The number of active read requests from the follower.API name:
outstanding_read_requests
-
outstandingWriteRequests
Required - The number of active bulk write requests on the follower.API name:
outstanding_write_requests
-
readExceptions
Required - An array of objects representing failed reads.API name:
read_exceptions
Adds all elements of
list
toreadExceptions
. -
readExceptions
Required - An array of objects representing failed reads.API name:
read_exceptions
Adds one or more values to
readExceptions
. -
readExceptions
public final ShardStats.Builder readExceptions(Function<ReadException.Builder, ObjectBuilder<ReadException>> fn) Required - An array of objects representing failed reads.API name:
read_exceptions
Adds a value to
readExceptions
using a builder lambda. -
remoteCluster
Required - The remote cluster containing the leader index.API name:
remote_cluster
-
shardId
Required - The numerical shard ID, with values from 0 to one less than the number of replicas.API name:
shard_id
-
successfulReadRequests
Required - The number of successful fetches.API name:
successful_read_requests
-
successfulWriteRequests
Required - The number of bulk write requests run on the follower.API name:
successful_write_requests
-
timeSinceLastRead
API name:time_since_last_read
-
timeSinceLastRead
API name:time_since_last_read
-
timeSinceLastReadMillis
Required - The number of milliseconds since a read request was sent to the leader. When the follower is caught up to the leader, this number will increase up to the configuredread_poll_timeout
at which point another read request will be sent to the leader.API name:
time_since_last_read_millis
-
totalReadRemoteExecTime
API name:total_read_remote_exec_time
-
totalReadRemoteExecTime
public final ShardStats.Builder totalReadRemoteExecTime(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:total_read_remote_exec_time
-
totalReadRemoteExecTimeMillis
Required - The total time reads spent running on the remote cluster.API name:
total_read_remote_exec_time_millis
-
totalReadTime
API name:total_read_time
-
totalReadTime
API name:total_read_time
-
totalReadTimeMillis
Required - The total time reads were outstanding, measured from the time a read was sent to the leader to the time a reply was returned to the follower.API name:
total_read_time_millis
-
totalWriteTime
API name:total_write_time
-
totalWriteTime
API name:total_write_time
-
totalWriteTimeMillis
Required - The total time spent writing on the follower.API name:
total_write_time_millis
-
writeBufferOperationCount
Required - The number of write operations queued on the follower.API name:
write_buffer_operation_count
-
writeBufferSizeInBytes
Required - The total number of bytes of operations currently queued for writing.API name:
write_buffer_size_in_bytes
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ShardStats.Builder>
-
build
Builds aShardStats
.- Specified by:
build
in interfaceObjectBuilder<ShardStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-