import org.opendaylight.controller.cluster.datastore.messages.RemotePrimaryShardFound;
import org.opendaylight.controller.cluster.datastore.messages.RemoveShardReplica;
import org.opendaylight.controller.cluster.datastore.messages.ShardLeaderStateChanged;
-import org.opendaylight.controller.cluster.datastore.messages.SwitchShardBehavior;
import org.opendaylight.controller.cluster.datastore.messages.UpdateSchemaContext;
import org.opendaylight.controller.cluster.datastore.utils.Dispatchers;
import org.opendaylight.controller.cluster.datastore.utils.PrimaryShardInfoFutureCache;
import java.util.Collection;
import java.util.List;
import org.opendaylight.controller.cluster.datastore.jmx.mbeans.shardmanager.ShardManagerInfoMBean;
-import org.opendaylight.controller.cluster.datastore.messages.SwitchShardBehavior;
import org.opendaylight.controller.cluster.raft.RaftState;
import org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean;
import org.slf4j.Logger;
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.controller.cluster.datastore.messages;
+package org.opendaylight.controller.cluster.datastore.shardmanager;
import com.google.common.base.Preconditions;
import org.opendaylight.controller.cluster.raft.RaftState;
-public final class SwitchShardBehavior {
+final class SwitchShardBehavior {
private final String shardName;
private final RaftState newState;
private final long term;
- public SwitchShardBehavior(String shardName, RaftState newState, long term) {
+ SwitchShardBehavior(String shardName, RaftState newState, long term) {
this.shardName = Preconditions.checkNotNull(shardName);
this.newState = Preconditions.checkNotNull(newState);
this.term = term;
}
- public String getShardName() {
+ String getShardName() {
return shardName;
}
- public RaftState getNewState() {
+ RaftState getNewState() {
return newState;
}
- public long getTerm() {
+ long getTerm() {
return term;
}
import org.opendaylight.controller.cluster.datastore.messages.RemotePrimaryShardFound;
import org.opendaylight.controller.cluster.datastore.messages.RemoveShardReplica;
import org.opendaylight.controller.cluster.datastore.messages.ShardLeaderStateChanged;
-import org.opendaylight.controller.cluster.datastore.messages.SwitchShardBehavior;
import org.opendaylight.controller.cluster.datastore.messages.UpdateSchemaContext;
import org.opendaylight.controller.cluster.datastore.utils.ForwardingActor;
import org.opendaylight.controller.cluster.datastore.utils.MockClusterWrapper;