diff options
author | Matej Perina <mperina@cisco.com> | 2017-09-14 16:14:14 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2017-09-15 20:19:03 +0000 |
commit | 3e233678f13bc175e652ac0ea4a038054771ee97 (patch) | |
tree | f8641793e9016b1ddb5518527e5803263029119e /src/vpp-api/java/jvpp-registry/io/fd | |
parent | 01914ce45729833cec88c65689de9a0336cd40cc (diff) |
jvpp: add vpe_pid to ConnectionInfo
ConnectionInfo now contains pid of vpp process
pid is aquired through initial control ping during
connection creation
Change-Id: I68457770e07792d11c47bc7d8cbd0d2fd722d9b4
Signed-off-by: Matej Perina <mperina@cisco.com>
Diffstat (limited to 'src/vpp-api/java/jvpp-registry/io/fd')
-rw-r--r-- | src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java b/src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java index 53eaa790778..6a414f36b88 100644 --- a/src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java +++ b/src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java @@ -135,11 +135,13 @@ public final class VppJNIConnection implements VppConnection { public final long queueAddress; public final int clientIndex; public final int status; // FIXME throw exception instead + public final int pid; - public ConnectionInfo(long queueAddress, int clientIndex, int status) { + public ConnectionInfo(long queueAddress, int clientIndex, int status, int pid) { this.queueAddress = queueAddress; this.clientIndex = clientIndex; this.status = status; + this.pid = pid; } } |