public static class RecoveryState.Translog extends RecoveryState.Timer implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN |
startNanoTime, startTime, stopTime, timeEMPTY_PARAMS| Constructor and Description |
|---|
RecoveryState.Translog() |
| Modifier and Type | Method and Description |
|---|---|
void |
decrementRecoveredOperations(int ops) |
void |
incrementRecoveredOperations() |
void |
readFrom(StreamInput in) |
int |
recoveredOperations()
returns the total number of translog operations recovered so far
|
float |
recoveredPercent() |
void |
reset() |
int |
totalOperations()
returns the total number of translog operations needed to be recovered at this moment.
|
void |
totalOperations(int total) |
int |
totalOperationsOnStart()
returns the total number of translog operations to recovered, on the start of the recovery.
|
void |
totalOperationsOnStart(int total) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public static final int UNKNOWN
public void reset()
reset in class RecoveryState.Timerpublic void incrementRecoveredOperations()
public void decrementRecoveredOperations(int ops)
public int recoveredOperations()
public int totalOperations()
A value of -1 (UNKNOWN is return if this is unknown (typically a gateway recovery)
public void totalOperations(int total)
public int totalOperationsOnStart()
totalOperations()
this does change during recovery.
A value of -1 (UNKNOWN is return if this is unknown (typically a gateway recovery)
public void totalOperationsOnStart(int total)
public float recoveredPercent()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class RecoveryState.TimerIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class RecoveryState.TimerIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.