Package org.apache.solr.core.backup
Class ShardBackupId
- java.lang.Object
-
- org.apache.solr.core.backup.ShardBackupId
-
public class ShardBackupId extends Object
Represents the ID of a particular backup point for a particular shard.ShardBackupId's only need be unique within a given collection and backup location/name, so in practice they're formed by combining the shard name with the
BackupId
in the form: "md_$SHARDNAME_BACKUPID".ShardBackupId's are most often used as a filename to store shard-level metadata for the backup. See
ShardBackupMetadata
for more information.- See Also:
ShardBackupMetadata
-
-
Constructor Summary
Constructors Constructor Description ShardBackupId(String shardName, BackupId containingBackupId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ShardBackupId
from(String idString)
static ShardBackupId
fromShardMetadataFilename(String filenameString)
String
getBackupMetadataFilename()
BackupId
getContainingBackupId()
String
getIdAsString()
String
getShardName()
-
-
-
Method Detail
-
getShardName
public String getShardName()
-
getContainingBackupId
public BackupId getContainingBackupId()
-
getIdAsString
public String getIdAsString()
-
getBackupMetadataFilename
public String getBackupMetadataFilename()
-
from
public static ShardBackupId from(String idString)
-
fromShardMetadataFilename
public static ShardBackupId fromShardMetadataFilename(String filenameString)
-
-