X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dummy-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fdummy%2Fdatastore%2FDummyShardManager.java;h=05f83368f6ec334e8c5ccc2bda7503c14f63bec8;hb=refs%2Fchanges%2F02%2F65902%2F12;hp=a25a0814c26f77b3bb6de0942d089bc8e76d304d;hpb=78622608d4c83bfc2e755c63b8b326e746ec500c;p=controller.git diff --git a/opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/java/org/opendaylight/controller/dummy/datastore/DummyShardManager.java b/opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/java/org/opendaylight/controller/dummy/datastore/DummyShardManager.java index a25a0814c2..05f83368f6 100644 --- a/opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/java/org/opendaylight/controller/dummy/datastore/DummyShardManager.java +++ b/opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/java/org/opendaylight/controller/dummy/datastore/DummyShardManager.java @@ -5,25 +5,24 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ - package org.opendaylight.controller.dummy.datastore; -import akka.actor.ActorContext; import akka.actor.Props; -import akka.actor.UntypedActor; +import akka.actor.UntypedAbstractActor; -public class DummyShardManager extends UntypedActor { - public DummyShardManager(Configuration configuration, String memberName, String[] shardNames, - String type) { - new DummyShardsCreator(configuration, context(), memberName, shardNames, type).create(); +public class DummyShardManager extends UntypedAbstractActor { + public DummyShardManager(final Configuration configuration, final String memberName, final String[] shardNames, + final String type) { + new DummyShardsCreator(configuration, getContext(), memberName, shardNames, type).create(); } @Override - public void onReceive(Object message) { + public void onReceive(final Object message) { } - public static Props props(Configuration configuration, String memberName, String[] shardNames, String type) { + public static Props props(final Configuration configuration, final String memberName, final String[] shardNames, + final String type) { return Props.create(DummyShardManager.class, configuration, memberName, shardNames, type); } @@ -34,8 +33,8 @@ public class DummyShardManager extends UntypedActor { private final String[] shardNames; private final String type; - DummyShardsCreator(Configuration configuration, ActorContext actorSystem, String memberName, - String[] shardNames, String type) { + DummyShardsCreator(final Configuration configuration, final ActorContext actorSystem, final String memberName, + final String[] shardNames, final String type) { this.configuration = configuration; this.actorSystem = actorSystem; this.memberName = memberName;