public class TCPMultiServerConnector extends AbstractConnector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PORT
Constant holds name for the port property .
|
configuration, lookupEntityMap
Constructor and Description |
---|
TCPMultiServerConnector(Configuration configuration,
java.util.concurrent.ConcurrentMap<java.lang.Integer,LookupEntity> lookupEntityMap)
Create a TCPMultiServerConnector.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop all service threads to handle TCP communication and empty the record queue.
|
IMonitoringRecord |
deserializeNextRecord()
Implements the deserializeNextRecord interface.
|
void |
initialize()
Initializes internal queues and an executor pool for communication.
|
public static final java.lang.String PORT
public TCPMultiServerConnector(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
- when the server socket cannot be acquiredIServiceConnector.initialize()
public void close() throws ConnectorDataTransmissionException
ConnectorDataTransmissionException
- if the thread shutdown is interrupted or fails, the graceful wait to empty the queue
fails or the queue is not emptied after a waiting periodpublic IMonitoringRecord deserializeNextRecord() throws ConnectorDataTransmissionException, ConnectorEndOfDataException
ConnectorDataTransmissionException
- if the record reading is interruptedConnectorEndOfDataException
- if end of all data streams are reachedCopyright 2017 Kieker Project, http://kieker-monitoring.net