BUG 2187 - JMX API for create/delete shard replica
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / jmx / mbeans / shardmanager / ShardManagerInfoMBean.java
index 92a43d28f0d3e807e544822a3ec96d2e3762e8c7..8660314b79541bac6a4a9692d1a12cf9ac75db1a 100644 (file)
@@ -52,4 +52,19 @@ public interface ShardManagerInfoMBean {
      *             the term provided when switching to a new Leader should always be higher than the previous term.
      */
     void switchShardState(String shardName, String newBehavior, long term);
+
+    /**
+     * Add a new Shard replica for an existing Shard in this controller node
+     *
+     * @param shardName the shard that is to be created and replicated in this controller instance
+     */
+    void setAddShardReplica (String shardName);
+
+    /**
+     * Remove a Shard replica available in this controller node
+     *
+     * @param shardName the shard that is to be removed from this controller instance
+     */
+    void setRemoveShardReplica (String shardName);
+
 }