|
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.TCPMultiServerConnector
public class TCPMultiServerConnector
TCP server connector supporting multiple clients.
Field Summary | |
---|---|
static java.lang.String |
PORT
Constant holds name for the port property . |
Fields inherited from class kieker.tools.bridge.connector.AbstractConnector |
---|
configuration, lookupEntityMap |
Constructor Summary | |
---|---|
TCPMultiServerConnector(Configuration configuration,
java.util.concurrent.ConcurrentMap<java.lang.Integer,LookupEntity> lookupEntityMap)
Create a TCPMultiServerConnector. |
Method Summary | |
---|---|
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. |
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 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 mapMethod Detail |
---|
public 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 interrupted
ConnectorEndOfDataException
- if end of all data streams are reached
|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |