summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-06-22 15:56:28 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-06-23 09:51:18 +0000
commitc05597d26843210570d49f9675c57a13b668ad32 (patch)
treee76ef91e241479afb0fd5d20df3f5ac49fbdfe49
parentffc3964fb99479a6c48c068320b60a501aa7a402 (diff)
Add logs to JVpp config module
Change-Id: I1a1c27a29b7243968c7367968f1e32a75dac177e Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
-rw-r--r--v3po/vpp-jvpp-cfg/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/jvpp/cfg/rev160406/VppJvppImplModule.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/v3po/vpp-jvpp-cfg/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/jvpp/cfg/rev160406/VppJvppImplModule.java b/v3po/vpp-jvpp-cfg/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/jvpp/cfg/rev160406/VppJvppImplModule.java
index 82db50134..8eb504a03 100644
--- a/v3po/vpp-jvpp-cfg/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/jvpp/cfg/rev160406/VppJvppImplModule.java
+++ b/v3po/vpp-jvpp-cfg/src/main/java/org/opendaylight/yang/gen/v1/urn/honeycomb/params/xml/ns/yang/vpp/jvpp/cfg/rev160406/VppJvppImplModule.java
@@ -4,8 +4,13 @@ import java.io.IOException;
import org.openvpp.jvpp.JVppImpl;
import org.openvpp.jvpp.VppJNIConnection;
import org.openvpp.jvpp.future.FutureJVppFacade;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class VppJvppImplModule extends org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.vpp.jvpp.cfg.rev160406.AbstractVppJvppImplModule {
+
+ private static final Logger LOG = LoggerFactory.getLogger(VppJvppImplModule.class);
+
public VppJvppImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
super(identifier, dependencyResolver);
}
@@ -22,12 +27,13 @@ public class VppJvppImplModule extends org.opendaylight.yang.gen.v1.urn.honeycom
@Override
public java.lang.AutoCloseable createInstance() {
try {
- final JVppImpl jVpp =
- new JVppImpl(new VppJNIConnection(getName()));
+ final JVppImpl jVpp = new JVppImpl(new VppJNIConnection(getName()));
+ LOG.info("JVpp connection opened successfully as: {}", getName());
return new FutureJVppFacade(jVpp) {
@Override
public void close() throws Exception {
super.close();
+ LOG.info("Closing JVpp connection: {}", getName());
jVpp.close();
}
};