Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Clean all unused and redundant imports in controller.
[controller.git]
/
opendaylight
/
clustering
/
stub
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
clustering
/
stub
/
internal
/
ClusterManagerCommon.java
diff --git
a/opendaylight/clustering/stub/src/main/java/org/opendaylight/controller/clustering/stub/internal/ClusterManagerCommon.java
b/opendaylight/clustering/stub/src/main/java/org/opendaylight/controller/clustering/stub/internal/ClusterManagerCommon.java
index 6fa0d6e96ec3b07884c1cc4bb4d80ee5af20f0a3..b6cb742d4789bf9dcc9760e3aa9fd42490a8feef 100644
(file)
--- a/
opendaylight/clustering/stub/src/main/java/org/opendaylight/controller/clustering/stub/internal/ClusterManagerCommon.java
+++ b/
opendaylight/clustering/stub/src/main/java/org/opendaylight/controller/clustering/stub/internal/ClusterManagerCommon.java
@@
-24,28
+24,18
@@
import javax.transaction.NotSupportedException;
import javax.transaction.RollbackException;
import javax.transaction.SystemException;
import javax.transaction.Transaction;
import javax.transaction.RollbackException;
import javax.transaction.SystemException;
import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
import org.opendaylight.controller.clustering.services.CacheConfigException;
import org.opendaylight.controller.clustering.services.CacheExistException;
import org.opendaylight.controller.clustering.services.CacheConfigException;
import org.opendaylight.controller.clustering.services.CacheExistException;
-import org.opendaylight.controller.clustering.services.CacheListenerAddException;
-import org.opendaylight.controller.clustering.services.ICacheUpdateAware;
import org.opendaylight.controller.clustering.services.IClusterServices;
import org.opendaylight.controller.clustering.services.IClusterServicesCommon;
import org.opendaylight.controller.clustering.services.IClusterServices;
import org.opendaylight.controller.clustering.services.IClusterServicesCommon;
-import org.opendaylight.controller.clustering.services.ICoordinatorChangeAware;
-import org.opendaylight.controller.clustering.services.IListenRoleChange;
-import org.opendaylight.controller.clustering.services.ListenRoleChangeAddException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Dictionary;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Dictionary;
-import java.util.Collections;
-import java.util.HashSet;
import org.apache.felix.dm.Component;
import org.apache.felix.dm.Component;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
abstract public
class ClusterManagerCommon implements IClusterServicesCommon {
+
public abstract
class ClusterManagerCommon implements IClusterServicesCommon {
protected String containerName = "";
protected static final Logger logger = LoggerFactory
.getLogger(ClusterManagerCommon.class);
protected String containerName = "";
protected static final Logger logger = LoggerFactory
.getLogger(ClusterManagerCommon.class);
@@
-65,7
+55,7
@@
abstract public class ClusterManagerCommon implements IClusterServicesCommon {
Dictionary props = c.getServiceProperties();
if (props != null) {
this.containerName = (String) props.get("containerName");
Dictionary props = c.getServiceProperties();
if (props != null) {
this.containerName = (String) props.get("containerName");
- logger.debug("Running containerName:
" +
this.containerName);
+ logger.debug("Running containerName:
{}",
this.containerName);
} else {
// In the Global instance case the containerName is empty
this.containerName = "";
} else {
// In the Global instance case the containerName is empty
this.containerName = "";