summaryrefslogtreecommitdiffstats
path: root/v3po
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
commitb7e529c73d3480bfe1d528215e2654c0d8532554 (patch)
tree3cfee374c168bc12bc4946b8ec44e1b479d46880 /v3po
parent5468a61fef3ac8ec4744a42f035c39b192cdde1d (diff)
Add logs to JVpp config module
Change-Id: I1a1c27a29b7243968c7367968f1e32a75dac177e Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po')
-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();
}
};