public class SnapshotStats extends Object implements Streamable, ToXContent
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) |
static SnapshotStats |
readSnapshotStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
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 IOException
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.