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.JMSMessageTransformer,
JMSTextMessageTransformeradaptorID, 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, startpublic String parseArgs(String s)
parseArgs in class AbstractAdaptors - input stringpublic void start(long offset)
throws AdaptorException
start in class AbstractAdaptorAdaptorExceptionprotected javax.jms.ConnectionFactory initializeConnectionFactory(String brokerURL)
brokerURL - public String getCurrentStatus()
public long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
AdaptorAdaptorExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.