Class RecoveryState.Timer
java.lang.Object
org.elasticsearch.indices.recovery.RecoveryState.Timer
- All Implemented Interfaces:
Writeable
- Direct Known Subclasses:
RecoveryState.Index
,RecoveryState.Translog
,RecoveryState.VerifyIndex
- Enclosing class:
- RecoveryState
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
protected long
protected long
protected long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
void
reset()
void
start()
long
Returns start time in millisvoid
stop()
long
stopTime()
Returns stop time in millislong
time()
Returns elapsed time in millis, or 0 if timer was not startedvoid
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
startTime
protected long startTime -
startNanoTime
protected long startNanoTime -
time
protected long time -
stopTime
protected long stopTime
-
-
Constructor Details
-
Timer
public Timer() -
Timer
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
start
public void start() -
startTime
public long startTime()Returns start time in millis -
time
public long time()Returns elapsed time in millis, or 0 if timer was not started -
stopTime
public long stopTime()Returns stop time in millis -
stop
public void stop() -
reset
public void reset() -
getStartNanoTime
public long getStartNanoTime()
-