Package org.openjdk.jmh.runner.link
Class BinaryLinkClient
- java.lang.Object
-
- org.openjdk.jmh.runner.link.BinaryLinkClient
-
public final class BinaryLinkClient extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
BinaryLinkClient.ForwardingPrintStream
-
Field Summary
Fields Modifier and Type Field Description private static int
BUFFER_SIZE
private java.net.Socket
clientSocket
private java.util.List<java.io.Serializable>
delayedFrames
private boolean
failed
private boolean
inFrame
private java.lang.Object
lock
private java.io.ObjectInputStream
ois
private java.io.ObjectOutputStream
oos
private OutputFormat
outputFormat
private static int
RESET_EACH
private int
resetToGo
private BinaryLinkClient.ForwardingPrintStream
streamErr
private BinaryLinkClient.ForwardingPrintStream
streamOut
-
Constructor Summary
Constructors Constructor Description BinaryLinkClient(java.lang.String hostName, int hostPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.io.PrintStream
getErrStream()
OutputFormat
getOutputFormat()
java.io.PrintStream
getOutStream()
Options
handshake()
void
pushException(BenchmarkException error)
private void
pushFrame(java.io.Serializable frame)
void
pushResultMetadata(BenchmarkResultMetaData res)
void
pushResults(IterationResult res)
private java.lang.Object
readFrame()
ActionPlan
requestPlan()
-
-
-
Field Detail
-
RESET_EACH
private static final int RESET_EACH
-
BUFFER_SIZE
private static final int BUFFER_SIZE
-
lock
private final java.lang.Object lock
-
clientSocket
private final java.net.Socket clientSocket
-
oos
private final java.io.ObjectOutputStream oos
-
ois
private final java.io.ObjectInputStream ois
-
streamErr
private final BinaryLinkClient.ForwardingPrintStream streamErr
-
streamOut
private final BinaryLinkClient.ForwardingPrintStream streamOut
-
outputFormat
private final OutputFormat outputFormat
-
failed
private volatile boolean failed
-
resetToGo
private int resetToGo
-
delayedFrames
private final java.util.List<java.io.Serializable> delayedFrames
-
inFrame
private boolean inFrame
-
-
Method Detail
-
pushFrame
private void pushFrame(java.io.Serializable frame) throws java.io.IOException
- Throws:
java.io.IOException
-
readFrame
private java.lang.Object readFrame() throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
handshake
public Options handshake() throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
requestPlan
public ActionPlan requestPlan() throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
pushResults
public void pushResults(IterationResult res) throws java.io.IOException
- Throws:
java.io.IOException
-
pushException
public void pushException(BenchmarkException error) throws java.io.IOException
- Throws:
java.io.IOException
-
pushResultMetadata
public void pushResultMetadata(BenchmarkResultMetaData res) throws java.io.IOException
- Throws:
java.io.IOException
-
getOutStream
public java.io.PrintStream getOutStream()
-
getErrStream
public java.io.PrintStream getErrStream()
-
getOutputFormat
public OutputFormat getOutputFormat()
-
-