- java.lang.Object
-
- org.ojalgo.concurrent.ExternalProcessExecutor.IPC
-
- Enclosing class:
- ExternalProcessExecutor
abstract static class ExternalProcessExecutor.IPC extends java.lang.ObjectInter-Process CommunicationFrame format: [MAGIC:8][VER:1][LEN:4][PAYLOAD:LEN][CRC32:4]
-
-
Field Summary
Fields Modifier and Type Field Description private static longMAGICprivate static intMAX_FRAME_SIZEprivate static intVERSION
-
Constructor Summary
Constructors Constructor Description IPC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static <T> TreadFrame(java.io.InputStream in, java.lang.Class<T> type)private static voidreadFully(java.io.InputStream in, byte[] buf, int off, int len)private static intreadInt(java.io.InputStream in)(package private) static voidwriteFrame(java.io.OutputStream out, java.lang.Object obj)private static voidwriteInt(java.io.OutputStream out, int v)private static voidwriteLong(java.io.OutputStream out, long v)
-
-
-
Field Detail
-
MAGIC
private static final long MAGIC
- See Also:
- Constant Field Values
-
MAX_FRAME_SIZE
private static final int MAX_FRAME_SIZE
- See Also:
- Constant Field Values
-
VERSION
private static final int VERSION
- See Also:
- Constant Field Values
-
-
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.IOExceptionjava.lang.ClassNotFoundException
-
writeFrame
static void writeFrame(java.io.OutputStream out, java.lang.Object obj) throws java.io.IOException- Throws:
java.io.IOException
-
-