Class CreateShard
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.messages.CreateShard
-
public class CreateShard extends Object
A message sent to the ShardManager to dynamically create a new shard.- Author:
- Thomas Pantelis
-
-
Constructor Summary
Constructors Constructor Description CreateShard(@NonNull ModuleShardConfiguration moduleShardConfig, @NonNull Shard.AbstractBuilder<?,?> shardBuilder, @Nullable DatastoreContext datastoreContext)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable DatastoreContextgetDatastoreContext()@NonNull ModuleShardConfigurationgetModuleShardConfig()@NonNull Shard.AbstractBuilder<?,?>getShardBuilder()StringtoString()
-
-
-
Constructor Detail
-
CreateShard
public CreateShard(@NonNull ModuleShardConfiguration moduleShardConfig, @NonNull Shard.AbstractBuilder<?,?> shardBuilder, @Nullable DatastoreContext datastoreContext)
Constructor.- Parameters:
moduleShardConfig- the configuration of the new shard.shardBuilder- used to obtain the Props for creating the shard actor instance.datastoreContext- the DatastoreContext for the new shard. If null, the default is used.
-
-
Method Detail
-
getModuleShardConfig
public @NonNull ModuleShardConfiguration getModuleShardConfig()
-
getShardBuilder
public @NonNull Shard.AbstractBuilder<?,?> getShardBuilder()
-
getDatastoreContext
public @Nullable DatastoreContext getDatastoreContext()
-
-