Interface Killable

All Known Implementing Classes:
BasicContainer, Container, LocalContainer

public interface Killable
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check whether all processes are dead.
    void
    Clean up the container.
    void
    Kill the processes in this container violently.
    void
    Kill the processes in this container nicely.
  • Method Details

    • kill

      void kill() throws IOException
      Kill the processes in this container nicely. kill -15 equivalent
      Throws:
      IOException - on any error
    • forceKill

      void forceKill() throws IOException
      Kill the processes in this container violently. kill -9 equivalent
      Throws:
      IOException - on any error
    • areAllProcessesDead

      boolean areAllProcessesDead() throws IOException
      Check whether all processes are dead.
      Returns:
      true if all of the processes are dead, else false
      Throws:
      IOException - on any error
    • cleanUp

      void cleanUp() throws IOException
      Clean up the container. It is not coming back. by default do the same thing as when restarting.
      Throws:
      IOException - on any error