Interface Killable
-
- All Known Implementing Classes:
BasicContainer,Container,LocalContainer
public interface Killable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanareAllProcessesDead()Check whether all processes are dead.voidcleanUp()Clean up the container.voidforceKill()Kill the processes in this container violently.voidkill()Kill the processes in this container nicely.
-
-
-
Method Detail
-
kill
void kill() throws IOException
Kill the processes in this container nicely. kill -15 equivalent- Throws:
IOException- on any error
-
forceKill
void forceKill() throws IOExceptionKill the processes in this container violently. kill -9 equivalent- Throws:
IOException- on any error
-
areAllProcessesDead
boolean areAllProcessesDead() throws IOExceptionCheck 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 IOExceptionClean up the container. It is not coming back. by default do the same thing as when restarting.- Throws:
IOException- on any error
-
-