public class JMSClientConnector extends AbstractConnector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FACTORY_LOOKUP_NAME
Property name for the configuration of the JMS connector.
|
static java.lang.String |
KIEKER_DATA_BRIDGE_READ_QUEUE
Default KDB queue name.
|
protected java.lang.String |
password
password used to connect to the JMS service.
|
static java.lang.String |
PASSWORD
Property name for the configuration password property.
|
static java.lang.String |
URI
Property name for the configuration service URI property.
|
protected java.lang.String |
username
username used to connect to the JMS service.
|
static java.lang.String |
USERNAME
Property name for the configuration user name property.
|
configuration, lookupEntityMap
Constructor and Description |
---|
JMSClientConnector(Configuration configuration,
java.util.concurrent.ConcurrentMap<java.lang.Integer,LookupEntity> lookupEntityMap)
Create a JMSClientConnector.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the JMS connection.
|
IMonitoringRecord |
deserializeNextRecord()
Fetch a text or binary message from the JMS queue and use the correct
deserializer for the received message.
|
void |
initialize()
Initialize the JMS connection to read from a JMS queue.
|
public static final java.lang.String USERNAME
public static final java.lang.String PASSWORD
public static final java.lang.String URI
public static final java.lang.String FACTORY_LOOKUP_NAME
public static final java.lang.String KIEKER_DATA_BRIDGE_READ_QUEUE
protected final java.lang.String username
protected final java.lang.String password
public JMSClientConnector(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 mapConnectorDataTransmissionException
public void initialize() throws ConnectorDataTransmissionException
ConnectorDataTransmissionException
- if any JMSException occurspublic void close() throws ConnectorDataTransmissionException
ConnectorDataTransmissionException
- if any JMSException occurspublic IMonitoringRecord deserializeNextRecord() throws ConnectorDataTransmissionException, ConnectorEndOfDataException
ConnectorDataTransmissionException
- if the message type is neither binary nor text, or if a
JMSException occursConnectorEndOfDataException
- if the received message is null indicating that the consumer is
closedCopyright 2017 Kieker Project, http://kieker-monitoring.net