X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fcallhome-provider%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fcallhome%2Fmount%2FIetfZeroTouchCallHomeServerProvider.java;h=d2dbec65d27e856154f65c7fb36bd83583d1eb40;hb=f0b0a99508a36b2087b507ad1ab976255599f4af;hp=3b3c815a8250be63b6529613336b94bd98249d47;hpb=7e1c9a3ba9211a98027bd9da7dc84a4b2136eb84;p=netconf.git diff --git a/netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/IetfZeroTouchCallHomeServerProvider.java b/netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/IetfZeroTouchCallHomeServerProvider.java index 3b3c815a82..d2dbec65d2 100644 --- a/netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/IetfZeroTouchCallHomeServerProvider.java +++ b/netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/IetfZeroTouchCallHomeServerProvider.java @@ -170,7 +170,7 @@ public class IetfZeroTouchCallHomeServerProvider implements AutoCloseable, DataT readAndUpdateStatus(confDevice); } } catch (ExecutionException | InterruptedException e) { - LOG.error("Error trying to read the whitelist devices: {}", e); + LOG.error("Error trying to read the whitelist devices", e); } } @@ -188,12 +188,12 @@ public class IetfZeroTouchCallHomeServerProvider implements AutoCloseable, DataT opTx.commit().addCallback(new FutureCallback() { @Override - public void onSuccess(CommitInfo result) { + public void onSuccess(final CommitInfo result) { LOG.debug("Device deletions committed"); } @Override - public void onFailure(Throwable cause) { + public void onFailure(final Throwable cause) { LOG.warn("Failed to commit device deletions", cause); } }, MoreExecutors.directExecutor()); @@ -204,7 +204,7 @@ public class IetfZeroTouchCallHomeServerProvider implements AutoCloseable, DataT return devicesFuture.get().map(AllowedDevices::getDevice).orElse(Collections.emptyList()); } - private void readAndUpdateStatus(Device cfgDevice) throws InterruptedException, ExecutionException { + private void readAndUpdateStatus(final Device cfgDevice) throws InterruptedException, ExecutionException { InstanceIdentifier deviceIID = InstanceIdentifier.create(NetconfCallhomeServer.class) .child(AllowedDevices.class).child(Device.class, new DeviceKey(cfgDevice.getUniqueId())); @@ -224,12 +224,12 @@ public class IetfZeroTouchCallHomeServerProvider implements AutoCloseable, DataT .setUniqueId(cfgDevice.getUniqueId()).build()); tx.commit().addCallback(new FutureCallback() { @Override - public void onSuccess(CommitInfo result) { + public void onSuccess(final CommitInfo result) { LOG.debug("Device {} status update committed", cfgDevice.key()); } @Override - public void onFailure(Throwable cause) { + public void onFailure(final Throwable cause) { LOG.warn("Failed to commit device {} status update", cfgDevice.key(), cause); } }, MoreExecutors.directExecutor());