Class SignalSender

java.lang.Object
io.deephaven.util.signals.SignalSender

public class SignalSender
extends Object
  • Constructor Summary

    Constructors
    Constructor Description
    SignalSender​(Logger log, boolean useNative)  
  • Method Summary

    Modifier and Type Method Description
    boolean kill​(int processId)
    Helper method - sends SIQKILL to a process.
    static void main​(String... args)
    Simple program for functionality testing.
    boolean resume​(int processId)
    Helper method - sends SIGCONT to a process.
    boolean sendQuit​(int processId)
    Helper method - sends SIQQUIT to a process.
    boolean suspend​(int processId)
    Helper method - sends SIGSTOP to a process.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SignalSender

      public SignalSender​(@NotNull Logger log, boolean useNative)
  • Method Details

    • sendQuit

      public boolean sendQuit​(int processId)
      Helper method - sends SIQQUIT to a process. If this process is a JVM, it will send a stack dump to stdout.
      Parameters:
      processId - The process ID to send the signal to
      Returns:
      true on success, false on error
    • kill

      public boolean kill​(int processId)
      Helper method - sends SIQKILL to a process.
      Parameters:
      processId - The process ID to send the signal to
      Returns:
      true on success, false on error
    • resume

      public boolean resume​(int processId)
      Helper method - sends SIGCONT to a process.
      Parameters:
      processId - The process ID to send the signal to
      Returns:
      true on success, false on error
    • suspend

      public boolean suspend​(int processId)
      Helper method - sends SIGSTOP to a process.
      Parameters:
      processId - The process ID to send the signal to
      Returns:
      true on success, false on error
    • main

      public static void main​(String... args)
      Simple program for functionality testing.
      Parameters:
      args - [ ]