public class MasterStreams extends MockConnection
MockConnection.MBusTestInputStream, MockConnection.MBusTestOutputStreamConnection.StatelogDEFAULT_BAUDRATE, is, os| Constructor and Description |
|---|
MasterStreams(int bitPerSecond,
int responseTimeoutOffset) |
| Modifier and Type | Method and Description |
|---|---|
String |
getJsonFieldName() |
String |
getName() |
protected void |
lastByteReading(long endWaitTime) |
protected void |
lastByteWriting() |
void |
sendRequestAndCollectResponse(String request,
String response)
Send a request and wait for response
|
void |
sendRequestNoAnswer(String request,
int waittime) |
void |
sendRequestNoAnswer(String request,
int waittime,
int times) |
protected void |
setNextData(boolean removeFirst) |
checkNoDataLeft, close, getMockIs, getMockOs, open, replaycreateFromJSON, fromJSON, getBitPerSecond, getConnState, getInputStream, getLoggingStream, getOutputStrteam, getResponseTimeOutOffset, setBitPerSecond, setConnState, setLoggingStream, setResponseTimeOutOffset, toJSONprotected void lastByteReading(long endWaitTime)
throws IOException
lastByteReading in class MockConnectionIOExceptionprotected void lastByteWriting()
throws IOException
lastByteWriting in class MockConnectionIOExceptionpublic void sendRequestAndCollectResponse(String request, String response)
request - response - public void sendRequestNoAnswer(String request, int waittime, int times)
public void sendRequestNoAnswer(String request, int waittime)
protected void setNextData(boolean removeFirst)
setNextData in class MockConnectionpublic String getJsonFieldName()
getJsonFieldName in class Connectionpublic String getName()
getName in class ConnectionCopyright © 2009–2016 MBus4J. All rights reserved.