Module ojalgo

Class ExternalProcessExecutor.IPC

  • Enclosing class:
    ExternalProcessExecutor

    abstract static class ExternalProcessExecutor.IPC
    extends java.lang.Object
    Inter-Process Communication

    Frame format: [MAGIC:8][VER:1][LEN:4][PAYLOAD:LEN][CRC32:4]

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long MAGIC  
      private static int MAX_FRAME_SIZE  
      private static int VERSION  
    • Constructor Summary

      Constructors 
      Constructor Description
      IPC()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static <T> T readFrame​(java.io.InputStream in, java.lang.Class<T> type)  
      private static void readFully​(java.io.InputStream in, byte[] buf, int off, int len)  
      private static int readInt​(java.io.InputStream in)  
      (package private) static void writeFrame​(java.io.OutputStream out, java.lang.Object obj)  
      private static void writeInt​(java.io.OutputStream out, int v)  
      private static void writeLong​(java.io.OutputStream out, long v)  
      • Methods inherited from class java.lang.Object

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

      • IPC

        IPC()
    • Method Detail

      • readFully

        private static void readFully​(java.io.InputStream in,
                                      byte[] buf,
                                      int off,
                                      int len)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readInt

        private static int readInt​(java.io.InputStream in)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInt

        private static void writeInt​(java.io.OutputStream out,
                                     int v)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLong

        private static void writeLong​(java.io.OutputStream out,
                                      long v)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readFrame

        static <T> T readFrame​(java.io.InputStream in,
                               java.lang.Class<T> type)
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeFrame

        static void writeFrame​(java.io.OutputStream out,
                               java.lang.Object obj)
                        throws java.io.IOException
        Throws:
        java.io.IOException