public class SnapshotStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.