public class TCPSingleServerConnector extends AbstractConnector
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PORT
Constant holding the name of the port configuration property.
|
configuration, lookupEntityMap| Constructor and Description |
|---|
TCPSingleServerConnector(Configuration configuration,
java.util.concurrent.ConcurrentMap<java.lang.Integer,LookupEntity> lookupEntityMap)
Create a TCPSingleServerConnector.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final java.lang.String PORT
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 mappublic 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 IMonitoringRecordConnectorEndOfDataException - if the end of the data stream is reachedCopyright 2017 Kieker Project, http://kieker-monitoring.net