public class JMSAdaptor extends AbstractAdaptor
This adaptor is added to an Agent like so:
add JMSAdaptor
dataType
- The chukwa data type.brokerURL
- The JMS broker URL to bind to.topicName
- The JMS topic to listen on.queueName
- The JMS queue to listen on.JMSSelector
- The JMS selector to filter with. Surround
with quotes if selector contains multiple words.transformerName
- Class name of the JMSMessageTransformer to
use.transformerConfigs
- Properties to be passed to the
JMSMessageTransformer to use. Surround with quotes if configs contain
multiple words.adaptorID, control, dest, type
Constructor and Description |
---|
JMSAdaptor() |
Modifier and Type | Method and Description |
---|---|
String |
getCurrentStatus()
Status is used to write checkpoints.
|
protected javax.jms.ConnectionFactory |
initializeConnectionFactory(String brokerURL)
Override this to initialize with a different connection factory.
|
String |
parseArgs(String s)
This adaptor received configuration like this:
|
long |
shutdown(AdaptorShutdownPolicy shutdownPolicy)
Signals this adaptor to come to an orderly stop.
|
void |
start(long offset) |
deregisterAndStop, getType, hardStop, parseArgs, shutdown, start
public String parseArgs(String s)
parseArgs
in class AbstractAdaptor
s
- public void start(long offset) throws AdaptorException
start
in class AbstractAdaptor
AdaptorException
protected javax.jms.ConnectionFactory initializeConnectionFactory(String brokerURL)
brokerURL
- public String getCurrentStatus()
public long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
Adaptor
AdaptorException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.