|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.tools.bridge.connector.AbstractConnector kieker.tools.bridge.connector.tcp.TCPSingleServerConnector
public class TCPSingleServerConnector
TCP server connector supporting one client. All operations provided by this connector must run in the same thread.
Field Summary | |
---|---|
static String |
PORT
Constant holding the name of the port configuration property. |
Constructor Summary | |
---|---|
TCPSingleServerConnector(Configuration configuration,
ConcurrentMap<Integer,LookupEntity> lookupEntityMap)
Create a TCPSingleServerConnector. |
Method Summary | |
---|---|
void |
close()
Close the server connection. |
IMonitoringRecord |
deserializeNextRecord()
De-serialize an object reading from the input stream. |
void |
initialize()
Initializes a server socket and data stream for a single connection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PORT
Constructor Detail |
---|
public TCPSingleServerConnector(Configuration configuration, ConcurrentMap<Integer,LookupEntity> lookupEntityMap)
configuration
- Kieker configuration including setup for connectorslookupEntityMap
- IMonitoringRecord constructor and TYPES-array to id mapMethod Detail |
---|
public void initialize() throws ConnectorDataTransmissionException
ConnectorDataTransmissionException
- it the socket could not be establishedpublic void close() throws ConnectorDataTransmissionException
ConnectorDataTransmissionException
- if the closing failspublic IMonitoringRecord deserializeNextRecord() throws ConnectorDataTransmissionException, ConnectorEndOfDataException
ConnectorDataTransmissionException
- if an unknown id is received which cannot be mapped to an IMonitoringRecord
ConnectorEndOfDataException
- if the end of the data stream is reached
|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |