public class BlobStoreIndexShardSnapshot extends Object implements ToXContent, FromXContentBuilder<BlobStoreIndexShardSnapshot>
| Modifier and Type | Class and Description |
|---|---|
static class |
BlobStoreIndexShardSnapshot.FileInfo
Information about snapshotted file
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static BlobStoreIndexShardSnapshot |
PROTO |
EMPTY_PARAMS| Constructor and Description |
|---|
BlobStoreIndexShardSnapshot(String snapshot,
long indexVersion,
List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles,
long startTime,
long time,
int numberOfFiles,
long totalSize)
Constructs new shard snapshot metadata from snapshot metadata
|
| Modifier and Type | Method and Description |
|---|---|
BlobStoreIndexShardSnapshot |
fromXContent(XContentParser parser,
ParseFieldMatcher parseFieldMatcher)
Parses shard snapshot metadata
|
List<BlobStoreIndexShardSnapshot.FileInfo> |
indexFiles()
Returns list of files in the shard
|
long |
indexVersion()
Returns index version
|
int |
numberOfFiles()
Returns number of files that where snapshotted
|
String |
snapshot()
Returns snapshot id
|
long |
startTime()
Returns snapshot start time
|
long |
time()
Returns snapshot running time
|
long |
totalSize()
Returns total size of all files that where snapshotted
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params)
Serializes shard snapshot metadata info into JSON
|
public static final BlobStoreIndexShardSnapshot PROTO
public BlobStoreIndexShardSnapshot(String snapshot, long indexVersion, List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles, long startTime, long time, int numberOfFiles, long totalSize)
snapshot - snapshot idindexVersion - index versionindexFiles - list of files in the shardstartTime - snapshot start timetime - snapshot running timenumberOfFiles - number of files that where snapshottedtotalSize - total size of all files snapshottedpublic long indexVersion()
public String snapshot()
public List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles()
public long startTime()
public long time()
public int numberOfFiles()
public long totalSize()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentbuilder - XContent builderparams - parametersIOExceptionpublic BlobStoreIndexShardSnapshot fromXContent(XContentParser parser, ParseFieldMatcher parseFieldMatcher) throws IOException
fromXContent in interface FromXContentBuilder<BlobStoreIndexShardSnapshot>parser - parserIOExceptionCopyright © 2009–2017. All rights reserved.