From 2f167430cb207d2bda8c8cb5ab4412862a0d8f6c Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 12 Aug 2014 15:22:38 -0700 Subject: [PATCH] Removed references to Sun JDK Attach API classes (com.sun.tools.attach.VirtualMachine and com.sun.tools.attach.VirtualMachineDescriptor) used to assess whether a JVM-based process was still currently running. --- .../data/gemfire/process/support/ProcessUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/springframework/data/gemfire/process/support/ProcessUtils.java b/src/test/java/org/springframework/data/gemfire/process/support/ProcessUtils.java index 71ef2443..3ce44464 100644 --- a/src/test/java/org/springframework/data/gemfire/process/support/ProcessUtils.java +++ b/src/test/java/org/springframework/data/gemfire/process/support/ProcessUtils.java @@ -35,17 +35,15 @@ import org.springframework.data.gemfire.test.support.IOUtils; import org.springframework.util.StringUtils; import com.gemstone.gemfire.management.internal.cli.util.spring.Assert; -import com.sun.tools.attach.VirtualMachine; -import com.sun.tools.attach.VirtualMachineDescriptor; /** - * The ProcessUtils class is a utilty class for working with process, or specifically instances + * The ProcessUtils class is a utility class for working with process, or specifically instances * of the Java Process class. * * @author John Blum * @see java.lang.Process * @see java.lang.management.RuntimeMXBean - * @see com.sun.tools.attach.VirtualMachine + * see com.sun.tools.attach.VirtualMachine * @since 1.5.0 */ @SuppressWarnings("unused") @@ -78,6 +76,7 @@ public abstract class ProcessUtils { runtimeMXBeanName), cause); } + /* public static boolean isRunning(final int processId) { for (VirtualMachineDescriptor vmDescriptor : VirtualMachine.list()) { if (String.valueOf(processId).equals(vmDescriptor.id())) { @@ -87,6 +86,7 @@ public abstract class ProcessUtils { return false; } + */ public static boolean isRunning(final Process process) { try {