HONEYCOMB-10: jVpp - the new java API. Java code generation 84/884/12
authorMaros Marsalek <mmarsale@cisco.com>
Thu, 28 Apr 2016 10:29:33 +0000 (12:29 +0200)
committerEd Warnicke <eaw@cisco.com>
Mon, 2 May 2016 13:46:21 +0000 (08:46 -0500)
commit45a42b5d7f6940fbd93d6b3413c2d943e497a0b1
treec5a4666a1613689e0186642b3b84af67122d8448
parent52fc44d61bcebb898dc19ab818ff60e617055694
HONEYCOMB-10: jVpp - the new java API. Java code generation

The old japi has two main drawbacks:

* it is not fully generated (requres manual coding for
every new api call that returns data other thanstatus code)

* it is not asynchronous from Java perspective (requires
active wait loops - big overhead due to JNI boundary being
crossed lots of times).

The new api is lightweight (fully generated except for connect,
disconenct and ping) and truly asynchronous (uses callbacks,
utilities that offer java.util.concurrent.Future interface
are also provided).

Change-Id: I531080ef651e8a74f19210490c71d161221ab600
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Signed-off-by: Ed Warnicke <eaw@cisco.com>
20 files changed:
Makefile
vpp-api/java/jvpp/gen/callback_gen.py [new file with mode: 0644]
vpp-api/java/jvpp/gen/dto_gen.py [new file with mode: 0644]
vpp-api/java/jvpp/gen/jvpp_callback_facade_gen.py [new file with mode: 0644]
vpp-api/java/jvpp/gen/jvpp_future_facade_gen.py [new file with mode: 0644]
vpp-api/java/jvpp/gen/jvpp_impl_gen.py [new file with mode: 0644]
vpp-api/java/jvpp/gen/util.py [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/VppConnection.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/VppJNIConnection.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/callback/JVppCallback.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/dto/JVppDump.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/dto/JVppReply.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/dto/JVppReplyDump.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/dto/JVppRequest.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/future/FutureJVpp.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/future/FutureJVppFacade.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/test/CallbackApiTest.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/test/CallbackJVppFacadeTest.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/test/ControlPingTest.java [new file with mode: 0644]
vpp-api/java/jvpp/org/openvpp/jvpp/test/FutureApiTest.java [new file with mode: 0644]