From 8f31eb4f1b960be3169364c1cdad3ca24dcaa2d7 Mon Sep 17 00:00:00 2001 From: John Blum Date: Fri, 10 Sep 2021 10:44:19 -0700 Subject: [PATCH] Add overloaded signal(..) method to accept an arbitrary Object value to send to the server. --- .../data/gemfire/tests/process/ProcessWrapper.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/process/ProcessWrapper.java b/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/process/ProcessWrapper.java index 07f6be2..2e3c45e 100644 --- a/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/process/ProcessWrapper.java +++ b/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/process/ProcessWrapper.java @@ -220,12 +220,16 @@ public class ProcessWrapper { } public void signal() { + signal("\n"); + } + + public void signal(Object value) { try { OutputStream outputStream = this.process.getOutputStream(); - outputStream.write("\n".getBytes()); + outputStream.write(String.valueOf(value).getBytes()); outputStream.flush(); } catch (IOException cause) { @@ -238,7 +242,6 @@ public class ProcessWrapper { } } - /* (non-Javadoc) */ public void signalStop() { try {