Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix modernization issues
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
TerminationMonitor.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TerminationMonitor.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TerminationMonitor.java
index 6dd0ab123006a7180722ed456e3202319cf19a15..d449ebc31afd8b531b13df98cdde273b132745ea 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TerminationMonitor.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TerminationMonitor.java
@@
-5,29
+5,28
@@
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* 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.cluster.datastore;
import akka.actor.Terminated;
package org.opendaylight.controller.cluster.datastore;
import akka.actor.Terminated;
-import akka.actor.UntypedActor;
-import org.opendaylight.controller.cluster.
datastore.messages
.Monitor;
+import akka.actor.UntypedA
bstractA
ctor;
+import org.opendaylight.controller.cluster.
common.actor
.Monitor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class TerminationMonitor extends UntypedA
ctor
{
+public class TerminationMonitor extends UntypedA
bstractActor
{
private static final Logger LOG = LoggerFactory.getLogger(TerminationMonitor.class);
private static final Logger LOG = LoggerFactory.getLogger(TerminationMonitor.class);
+ public static final String ADDRESS = "termination-monitor";
- public TerminationMonitor(){
+ public TerminationMonitor()
{
LOG.debug("Created TerminationMonitor");
}
LOG.debug("Created TerminationMonitor");
}
- @Override public void onReceive(Object message) throws Exception {
- if(message instanceof Terminated){
+ @Override
+ public void onReceive(final Object message) {
+ if (message instanceof Terminated) {
Terminated terminated = (Terminated) message;
Terminated terminated = (Terminated) message;
- if(LOG.isDebugEnabled()) {
- LOG.debug("Actor terminated : {}", terminated.actor());
- }
- } else if(message instanceof Monitor){
+ LOG.debug("Actor terminated : {}", terminated.actor());
+ } else if (message instanceof Monitor) {
Monitor monitor = (Monitor) message;
getContext().watch(monitor.getActorRef());
}
Monitor monitor = (Monitor) message;
getContext().watch(monitor.getActorRef());
}