public class JMXAdaptor extends AbstractAdaptor
Modifier and Type | Class and Description |
---|---|
class |
JMXAdaptor.JMXConnect
A thread which creates a new connection to JMX and retries every 10s if the connection is not
successful.
|
class |
JMXAdaptor.JMXTimer
A TimerTask which queries the mbean server for all mbeans that match the pattern specified in
the JMXAdaptor arguments, constructs a json object of all data and sends it as a chunk.
|
adaptorID, control, dest, type
Constructor and Description |
---|
JMXAdaptor() |
Modifier and Type | Method and Description |
---|---|
String |
getCurrentStatus()
Return the adaptor's state Should not include class name or byte
offset, which are written by caller.
|
String |
parseArgs(String s) |
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 getCurrentStatus()
Adaptor
public long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
Adaptor
AdaptorException
public void start(long offset) throws AdaptorException
start
in class AbstractAdaptor
AdaptorException
public String parseArgs(String s)
parseArgs
in class AbstractAdaptor
Copyright © 2014 Apache Software Foundation. All Rights Reserved.