public static class TierObjectStore.TierTopicSnapshotMetadata extends Object implements TierObjectStore.ObjectStoreMetadata
Constructor and Description |
---|
TierTopicSnapshotMetadata(TierTopicSnapshotObject snapshotObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static TierObjectStore.TierTopicSnapshotMetadata |
fromPath(String fileName)
Helper utility to decode the object store path
|
int |
hashCode() |
Map<String,String> |
objectMetadata(Optional<String> clusterIdOpt,
Optional<Integer> brokerIdOpt)
Converts an ObjectStoreMetadata to a map of metadata that may be useful to place on
objects in object storage, if this functionality is present in the object store
implementation of choice
|
TierObjectStore.OpaqueData |
opaqueData() |
static String |
pathPrefix(String keyPrefix)
Helper utility to build a common prefix for all tier topic snapshots
|
TierTopicSnapshotObject |
snapshotObject() |
String |
toPath(String keyPrefix,
TierObjectStore.FileType fileType)
Converts the ObjectStoreMetadata to an object store key path, taking into account a
given key prefix and file type
|
String |
toString() |
int |
version() |
public TierTopicSnapshotMetadata(TierTopicSnapshotObject snapshotObject)
public TierTopicSnapshotObject snapshotObject()
public int version()
public String toPath(String keyPrefix, TierObjectStore.FileType fileType)
TierObjectStore.ObjectStoreMetadata
toPath
in interface TierObjectStore.ObjectStoreMetadata
keyPrefix
- object key prefixfileType
- object file typepublic static String pathPrefix(String keyPrefix)
keyPrefix
- prefix to usepublic static TierObjectStore.TierTopicSnapshotMetadata fromPath(String fileName)
fileName
- the object store pathpublic Map<String,String> objectMetadata(Optional<String> clusterIdOpt, Optional<Integer> brokerIdOpt)
TierObjectStore.ObjectStoreMetadata
objectMetadata
in interface TierObjectStore.ObjectStoreMetadata
clusterIdOpt
- optional kafka cluster idbrokerIdOpt
- optional kafka broker idpublic TierObjectStore.OpaqueData opaqueData()
opaqueData
in interface TierObjectStore.ObjectStoreMetadata