ToXContent
, ToXContentFragment
public class BlobStoreIndexShardSnapshot extends java.lang.Object implements ToXContentFragment
Modifier and Type | Class | Description |
---|---|---|
static class |
BlobStoreIndexShardSnapshot.FileInfo |
Information about snapshotted file
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor | Description |
---|---|
BlobStoreIndexShardSnapshot(java.lang.String snapshot,
long indexVersion,
java.util.List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles,
long startTime,
long time,
int numberOfFiles,
long totalSize) |
Constructs new shard snapshot metadata from snapshot metadata
|
Modifier and Type | Method | Description |
---|---|---|
static BlobStoreIndexShardSnapshot |
fromXContent(XContentParser parser) |
Parses shard snapshot metadata
|
java.util.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
|
java.lang.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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public BlobStoreIndexShardSnapshot(java.lang.String snapshot, long indexVersion, java.util.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 java.lang.String snapshot()
public java.util.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 java.io.IOException
toXContent
in interface ToXContent
builder
- XContent builderparams
- parametersjava.io.IOException
public static BlobStoreIndexShardSnapshot fromXContent(XContentParser parser) throws java.io.IOException
parser
- parserjava.io.IOException