de.bsvrz.dav.daf.communication.lowLevel.ConnectionInterface, java.io.Closeable, java.io.Flushable, java.lang.AutoCloseablepublic abstract class WiretapOutputStream extends DelayOutputStream implements de.bsvrz.dav.daf.communication.lowLevel.ConnectionInterface
ConnectionInterface, die alle versendeten Telegramme zusätzlich
in der abstrakten Methode telegramSend(DataTelegram) ausgibt.
Mit dieser Klasse kann damit z. B. testweise die komplette Kommunikation zwischen Softwareeinheiten ausgegeben und analysiert werden.
DISABLE_DELAY| Constructor | Description |
|---|---|
WiretapOutputStream(java.io.OutputStream outputStream,
long transmissionDelay,
double maxFlowRate) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
connect(java.lang.String mainAdress,
int subAdressNumber) |
|
void |
disconnect() |
|
protected void |
enqueue(byte[] bytes) |
|
java.io.InputStream |
getInputStream() |
|
java.lang.String |
getMainAdress() |
|
java.io.OutputStream |
getOutputStream() |
|
int |
getSubAdressNumber() |
|
boolean |
isConnected() |
|
abstract void |
telegramSend(de.bsvrz.dav.daf.communication.lowLevel.telegrams.DataTelegram telegram) |
isLoopbackclose, write, write, writepublic WiretapOutputStream(java.io.OutputStream outputStream,
long transmissionDelay,
double maxFlowRate)
public abstract void telegramSend(de.bsvrz.dav.daf.communication.lowLevel.telegrams.DataTelegram telegram)
protected void enqueue(byte[] bytes)
throws java.io.IOException
enqueue in class DelayOutputStreamjava.io.IOExceptionpublic java.lang.String getMainAdress()
getMainAdress in interface de.bsvrz.dav.daf.communication.lowLevel.ConnectionInterfacepublic int getSubAdressNumber()
getSubAdressNumber in interface de.bsvrz.dav.daf.communication.lowLevel.ConnectionInterfacepublic java.io.OutputStream getOutputStream()
getOutputStream in interface de.bsvrz.dav.daf.communication.lowLevel.ConnectionInterfacepublic java.io.InputStream getInputStream()
getInputStream in interface de.bsvrz.dav.daf.communication.lowLevel.ConnectionInterfacepublic void connect(java.lang.String mainAdress,
int subAdressNumber)
throws de.bsvrz.dav.daf.main.ConnectionException
connect in interface de.bsvrz.dav.daf.communication.lowLevel.ConnectionInterfacede.bsvrz.dav.daf.main.ConnectionExceptionpublic void disconnect()
disconnect in interface de.bsvrz.dav.daf.communication.lowLevel.ConnectionInterfacepublic boolean isConnected()
isConnected in interface de.bsvrz.dav.daf.communication.lowLevel.ConnectionInterface