summaryrefslogtreecommitdiffstats
path: root/v3po/vpp-jvpp-cfg/src/main
diff options
context:
space:
mode:
authorTibor Sirovatka <tsirovat@cisco.com>2016-05-16 14:09:51 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-05-23 07:31:40 +0000
commit4f721caed71f10c9db296f6aed8ed1b68ad3bf5e (patch)
tree735ec9092b57b1fa68fae3fece5a453e65c323de /v3po/vpp-jvpp-cfg/src/main
parent5e8c6b50b595ef2098a1a53702ca3bee4222c483 (diff)
Changed JVPP interface for construction and connectivity
Change-Id: Ib53e855880bc414868aa2b9bb8f5df086917e375 Signed-off-by: Tibor Sirovatka <tsirovat@cisco.com>
Diffstat (limited to 'v3po/vpp-jvpp-cfg/src/main')
-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, 2 insertions, 8 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 4c70f0bb7..82db50134 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
@@ -1,14 +1,9 @@
package org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.vpp.jvpp.cfg.rev160406;
import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.concurrent.CompletableFuture;
import org.openvpp.jvpp.JVppImpl;
import org.openvpp.jvpp.VppJNIConnection;
-import org.openvpp.jvpp.dto.JVppReply;
import org.openvpp.jvpp.future.FutureJVppFacade;
-import org.openvpp.jvpp.future.FutureJVppFacadeCallback;
public class VppJvppImplModule extends org.opendaylight.yang.gen.v1.urn.honeycomb.params.xml.ns.yang.vpp.jvpp.cfg.rev160406.AbstractVppJvppImplModule {
public VppJvppImplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
@@ -27,10 +22,9 @@ public class VppJvppImplModule extends org.opendaylight.yang.gen.v1.urn.honeycom
@Override
public java.lang.AutoCloseable createInstance() {
try {
- final Map<Integer, CompletableFuture<? extends JVppReply<?>>> map = new HashMap<>();
final JVppImpl jVpp =
- new JVppImpl(VppJNIConnection.create(getName(), new FutureJVppFacadeCallback(map)));
- return new FutureJVppFacade(jVpp, map) {
+ new JVppImpl(new VppJNIConnection(getName()));
+ return new FutureJVppFacade(jVpp) {
@Override
public void close() throws Exception {
super.close();