Interface DatastoreShardId
-
- All Superinterfaces:
BindingObject
,DataContainer
,DataObject
- All Known Subinterfaces:
AddShardReplicaInput
,ChangeMemberVotingStatesForShardInput
,GetShardRoleInput
,LocateShardInput
,MakeLeaderLocalInput
,RemoveShardReplicaInput
,ShardOperationResult
,ShardResult
public interface DatastoreShardId extends DataObject
Grouping holding combined identifiers of a shard -- its name and datastore typeThis class represents the following YANG schema fragment defined in module UnqualifiedQName{localName=cluster-admin}
grouping datastore-shard-id { leaf shard-name { type string { length 1..max { error-app-tag odl-named-shards; error-message "Shard name must not be empty"; } } } leaf data-store-type { type data-store-type; } }
The schema path to identify an instance is cluster-admin/datastore-shard-id
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable DataStoreType
getDataStoreType()
Return dataStoreType, ornull
if it is not present..@Nullable String
getShardName()
Return shardName, ornull
if it is not present..Class<? extends DatastoreShardId>
implementedInterface()
-
-
-
Field Detail
-
QNAME
static final @NonNull QName QNAME
-
-
Method Detail
-
implementedInterface
Class<? extends DatastoreShardId> implementedInterface()
- Specified by:
implementedInterface
in interfaceDataContainer
- Specified by:
implementedInterface
in interfaceDataObject
-
getShardName
@Nullable String getShardName()
Return shardName, ornull
if it is not present..The name of the shard.
- Returns:
java.lang.String
shardName, ornull
if it is not present.
-
getDataStoreType
@Nullable DataStoreType getDataStoreType()
Return dataStoreType, ornull
if it is not present..The type of the data store to which the shard belongs
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.cluster.admin.rev151013.DataStoreType
dataStoreType, ornull
if it is not present.
-
-