public final class HTTPConnector extends AbstractConnector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT |
static java.lang.String |
PORT |
static java.lang.String |
REST_URL |
configuration, lookupEntityMap
Constructor and Description |
---|
HTTPConnector(Configuration configuration,
java.util.concurrent.ConcurrentMap<java.lang.Integer,LookupEntity> lookupEntityMap) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Called to close the previously initialize record source.
|
IMonitoringRecord |
deserializeNextRecord()
The deserialize method reads source data and returns an
IMonitoringRecord . |
void |
initialize()
Called to initialize the channel to read record information.
|
public static final java.lang.String PORT
public static final java.lang.String CONTEXT
public static final java.lang.String REST_URL
public HTTPConnector(Configuration configuration, java.util.concurrent.ConcurrentMap<java.lang.Integer,LookupEntity> lookupEntityMap)
public IMonitoringRecord deserializeNextRecord() throws ConnectorDataTransmissionException, ConnectorEndOfDataException
IServiceConnector
IMonitoringRecord
.IMonitoringRecord
or null on read error or end of line.ConnectorDataTransmissionException
- if a read error or an unknown record id occursConnectorEndOfDataException
- if the transmission is terminated or otherwise signaled that the last record has been received.public void initialize() throws ConnectorDataTransmissionException
IServiceConnector
ConnectorDataTransmissionException
- when an error occurred setting up the record source.public void close() throws ConnectorDataTransmissionException
IServiceConnector
ConnectorDataTransmissionException
- when an error occurred during connection close.Copyright 2017 Kieker Project, http://kieker-monitoring.net