summaryrefslogtreecommitdiffstats
path: root/v3po/vpp-jvpp-cfg/src/main/java
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
commitff272ca4bb768f9075fc3dcf9a2a2e8ef8be38fa (patch)
tree89607df3c937823cadbd348f8e73c19520f845ee /v3po/vpp-jvpp-cfg/src/main/java
parent8b95b03db7970d4381cba38c1ee9b416521fd5a8 (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/java')
-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();