public class JMSAdaptor extends AbstractAdaptor
This adaptor is added to an Agent like so:
add JMSAdaptor <dataType> <brokerURL> <-t <topicName> |-q <queueName> [-s <JMSSelector>]
[-x <transformerName>] [-p <transformerConfigs>] <offset>
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
,
JMSTextMessageTransformer
Constructor and Description |
---|
JMSAdaptor() |
Modifier and Type | Method and Description |
---|---|
String |
getCurrentStatus()
Status is used to write checkpoints.
|
String |
parseArgs(String s)
This adaptor received configuration like this:
<brokerURL> <-t <topicName>|-q <queueName>> [-s <JMSSelector>] [-x <transformerName>]
[-p <transformerProperties>]
|
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
- is a list of parameterspublic void start(long offset) throws AdaptorException
start
in class AbstractAdaptor
AdaptorException
public String getCurrentStatus()
public long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
Adaptor
shutdownPolicy
- is defined as forcefully or gracefullyAdaptorException
- Exception on shutdownCopyright © 2016 Apache Software Foundation. All Rights Reserved.