Streamable, ToXContent, ToXContentFragmentpublic static class RecoveryState.Translog extends RecoveryState.Timer implements ToXContentFragment, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field | Description |
|---|---|---|
static int |
UNKNOWN |
startNanoTime, startTime, stopTime, timeEMPTY_PARAMS| Constructor | Description |
|---|---|
Translog() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
decrementRecoveredOperations(int ops) |
|
void |
incrementRecoveredOperations() |
|
void |
incrementRecoveredOperations(int ops) |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
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) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstart, startTime, stop, stopTime, timeisFragmentpublic static final int UNKNOWN
public void reset()
reset in class RecoveryState.Timerpublic void incrementRecoveredOperations()
public void incrementRecoveredOperations(int ops)
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 java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class RecoveryState.Timerjava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class RecoveryState.Timerjava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException