From ceca27e3639f04c9052b5ff95b7d049ca43143c6 Mon Sep 17 00:00:00 2001 From: Jonathan Louie Date: Tue, 17 Oct 2023 13:54:53 -0700 Subject: [PATCH] Add JNI GET example --- .../main/java/javababushka/benchmarks/BenchmarkingApp.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/java/benchmarks/src/main/java/javababushka/benchmarks/BenchmarkingApp.java b/java/benchmarks/src/main/java/javababushka/benchmarks/BenchmarkingApp.java index 8ab6e5e562..ed59f8bb43 100644 --- a/java/benchmarks/src/main/java/javababushka/benchmarks/BenchmarkingApp.java +++ b/java/benchmarks/src/main/java/javababushka/benchmarks/BenchmarkingApp.java @@ -270,11 +270,14 @@ public static void main(String[] args) throws InterruptedException { .setCallbackIdx(0) .setSingleCommand( Command.newBuilder() - .setRequestType(RequestType.Ping) - .setArgsArray(ArgsArray.newBuilder())) + .setRequestType(RequestType.GetString) + .setArgsArray(ArgsArray.newBuilder().addArgs("Foo"))) .setRoute(Routes.newBuilder().setSimpleRoutes(SimpleRoutes.AllNodes)) .build(); + sendMessage(channel, getExistingRequest.toByteArray()); + printResponse(channel); + } catch (IOException e) { e.printStackTrace(); }