public class SnapshotStats extends java.lang.Object implements Streamable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfFiles()
Returns number of files in the snapshot
|
int |
getProcessedFiles()
Returns number of files in the snapshot that were processed so far
|
long |
getProcessedSize()
Returns total size of files in the snapshot that were processed so far
|
long |
getStartTime()
Returns time when snapshot started
|
long |
getTime()
Returns snapshot running time
|
long |
getTotalSize()
Returns total size of files in the snapshot
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static SnapshotStats |
readSnapshotStats(StreamInput in) |
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, wait
isFragment
public long getStartTime()
public long getTime()
public int getNumberOfFiles()
public int getProcessedFiles()
public long getTotalSize()
public long getProcessedSize()
public static SnapshotStats readSnapshotStats(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException