Class WorkerVault


  • public class WorkerVault
    extends java.lang.Object
    This is a utility place where worker processes get registered during their start. A stop request at that time will simply kill all starting workers the hard way. Usually this is due to user interactions when workers hang or get started at the time of a desired shutdown
    Author:
    hb
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkerVault()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Process exec​(java.lang.ProcessBuilder processBuilder)  
      java.lang.Process exec​(java.lang.String cmdline)  
      void release​(java.lang.Process p)  
      void shutDown()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • WorkerVault

        public WorkerVault()
    • Method Detail

      • exec

        public java.lang.Process exec​(java.lang.String cmdline)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • exec

        public java.lang.Process exec​(java.lang.ProcessBuilder processBuilder)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • release

        public void release​(java.lang.Process p)
      • shutDown

        public void shutDown()