|
Kieker 1.11 | |||||||||
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 java.lang.String |
PORT
Constant holding the name of the port configuration property. |
Fields inherited from class kieker.tools.bridge.connector.AbstractConnector |
---|
configuration, lookupEntityMap |
Constructor Summary | |
---|---|
TCPSingleServerConnector(Configuration configuration,
java.util.concurrent.ConcurrentMap<java.lang.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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PORT
Constructor Detail |
---|
public TCPSingleServerConnector(Configuration configuration, java.util.concurrent.ConcurrentMap<java.lang.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.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |