Module ojalgo

Class ProcessWorker


  • public abstract class ProcessWorker
    extends java.lang.Object
    Child JVM entrypoint. Reads ExternalProcessExecutor.ProcessRequests from stdin, invokes the specified method via reflection, and writes a ExternalProcessExecutor.ProcessResponse to stdout for each request. Stdout is reserved for IPC. Any normal System.out printing is redirected to stderr to avoid corrupting the binary protocol.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessWorker()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static <T,​C extends java.util.concurrent.Callable<T> & java.io.Serializable>
      T
      call​(C callable)  
      static void main​(java.lang.String[] args)  
      (package private) static <R extends java.lang.Runnable & java.io.Serializable>
      void
      run​(R runnable)  
      • Methods inherited from class java.lang.Object

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

      • ProcessWorker

        public ProcessWorker()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • call

        static <T,​C extends java.util.concurrent.Callable<T> & java.io.Serializable> T call​(C callable)
                                                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • run

        static <R extends java.lang.Runnable & java.io.Serializable> void run​(R runnable)