public class BlobStoreIndexShardSnapshot extends Object implements ToXContent, FromXContentBuilder<BlobStoreIndexShardSnapshot>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
BlobStoreIndexShardSnapshot.FileInfo
Information about snapshotted file
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| 修飾子とタイプ | フィールドと説明 |
|---|---|
static BlobStoreIndexShardSnapshot |
PROTO |
EMPTY_PARAMS| コンストラクタと説明 |
|---|
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
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 インタフェース内 ToXContentbuilder - XContent builderparams - parametersIOExceptionpublic BlobStoreIndexShardSnapshot fromXContent(XContentParser parser, ParseFieldMatcher parseFieldMatcher) throws IOException
fromXContent インタフェース内 FromXContentBuilder<BlobStoreIndexShardSnapshot>parser - parserIOExceptionCopyright © 2009–2016. All rights reserved.