import java.util.concurrent.Future;
import org.apache.felix.dm.Component;
+import org.apache.taglibs.standard.lang.jstl.DivideOperator;
import org.opendaylight.controller.clustering.services.CacheConfigException;
import org.opendaylight.controller.clustering.services.CacheExistException;
import org.opendaylight.controller.clustering.services.IClusterContainerServices;
logger.debug("Retrieving cache for HostTrackerIH");
inactiveStaticHosts = (ConcurrentMap<NodeConnector, HostNodeConnector>) this.clusterContainerService
.getCache("hostTrackerIH");
- if (hostsDB == null) {
+ if (inactiveStaticHosts == null) {
logger.error("Cache couldn't be retrieved for HostTrackerIH");
}
logger.debug("Cache was successfully retrieved for HostTrackerIH");
}
private class ARPRefreshHandler extends TimerTask {
+ @SuppressWarnings("deprecation")
public void run() {
if ((clusterContainerService != null)
&& !clusterContainerService.amICoordinator()) {
nc,
Short.valueOf(vlan));
} catch (UnknownHostException e) {
- e.printStackTrace();
+ logger.error("",e);
return new Status(StatusCode.BADREQUEST, "Invalid Address");
}
}
address = InetAddress.getByName(networkAddress);
return removeStaticHostReq(address);
} catch (UnknownHostException e) {
- e.printStackTrace();
+ logger.error("",e);
return new Status(StatusCode.BADREQUEST, "Invalid Address");
}
}