StreamableRecoveryState.Index, RecoveryState.Translog, RecoveryState.VerifyIndexpublic static class RecoveryState.Timer extends java.lang.Object implements Streamable
| Modifier and Type | Field | Description |
|---|---|---|
protected long |
startNanoTime |
|
protected long |
startTime |
|
protected long |
stopTime |
|
protected long |
time |
| Constructor | Description |
|---|---|
Timer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
void |
reset() |
|
void |
start() |
|
long |
startTime() |
Returns start time in millis
|
void |
stop() |
|
long |
stopTime() |
Returns stop time in millis
|
long |
time() |
Returns elapsed time in millis, or 0 if timer was not started
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWriteableReaderprotected long startTime
protected long startNanoTime
protected long time
protected long stopTime
public void start()
public long startTime()
public long time()
public long stopTime()
public void stop()
public void reset()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOException