public class CollectionSnapshotMetaData extends Object implements org.noggit.JSONWriter.Writable
Modifier and Type | Class and Description |
---|---|
static class |
CollectionSnapshotMetaData.CoreSnapshotMetaData |
static class |
CollectionSnapshotMetaData.SnapshotStatus |
Constructor and Description |
---|
CollectionSnapshotMetaData(Map<String,Object> data) |
CollectionSnapshotMetaData(NamedList<Object> data) |
CollectionSnapshotMetaData(String name) |
CollectionSnapshotMetaData(String name,
CollectionSnapshotMetaData.SnapshotStatus status,
Date creationTime,
List<CollectionSnapshotMetaData.CoreSnapshotMetaData> replicaSnapshots) |
Modifier and Type | Method and Description |
---|---|
Date |
getCreationDate() |
String |
getName() |
List<CollectionSnapshotMetaData.CoreSnapshotMetaData> |
getReplicaSnapshots() |
List<CollectionSnapshotMetaData.CoreSnapshotMetaData> |
getReplicaSnapshotsForShard(String shardId) |
Collection<String> |
getShards() |
CollectionSnapshotMetaData.SnapshotStatus |
getStatus() |
boolean |
isSnapshotExists(String shardId,
Replica r) |
NamedList |
toNamedList() |
void |
write(org.noggit.JSONWriter arg0) |
public CollectionSnapshotMetaData(String name)
public CollectionSnapshotMetaData(String name, CollectionSnapshotMetaData.SnapshotStatus status, Date creationTime, List<CollectionSnapshotMetaData.CoreSnapshotMetaData> replicaSnapshots)
public String getName()
public CollectionSnapshotMetaData.SnapshotStatus getStatus()
public Date getCreationDate()
public List<CollectionSnapshotMetaData.CoreSnapshotMetaData> getReplicaSnapshots()
public List<CollectionSnapshotMetaData.CoreSnapshotMetaData> getReplicaSnapshotsForShard(String shardId)
public Collection<String> getShards()
public void write(org.noggit.JSONWriter arg0)
write
in interface org.noggit.JSONWriter.Writable
public NamedList toNamedList()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.