|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.AbstractJmxCommand
public abstract class AbstractJmxCommand
Field Summary | |
---|---|
static String |
DEFAULT_JMX_URL
|
Fields inherited from class org.apache.activemq.console.command.AbstractCommand |
---|
COMMAND_OPTION_DELIMETER |
Constructor Summary | |
---|---|
AbstractJmxCommand()
|
Method Summary | |
---|---|
protected void |
closeJmxConnector()
Close the current JMX connector |
protected JMXConnector |
createJmxConnector()
Create a JMX connector using the current specified JMX service url. |
protected JMXServiceURL |
getJmxServiceUrl()
Get the current specified JMX service url. |
protected void |
handleOption(String token,
List tokens)
Handle the --jmxurl option. |
protected void |
setJmxServiceUrl(JMXServiceURL jmxServiceUrl)
Sets the JMX service url to use. |
protected void |
setJmxServiceUrl(String jmxServiceUrl)
Sets the JMX service url to use. |
protected JMXServiceURL |
useJmxServiceUrl()
Get the current JMX service url being used, or create a default one if no JMX service url has been specified. |
Methods inherited from class org.apache.activemq.console.command.AbstractCommand |
---|
execute, parseOptions, printHelp, runTask |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_JMX_URL
Constructor Detail |
---|
public AbstractJmxCommand()
Method Detail |
---|
protected JMXServiceURL getJmxServiceUrl()
protected JMXServiceURL useJmxServiceUrl() throws MalformedURLException
MalformedURLException
protected void setJmxServiceUrl(JMXServiceURL jmxServiceUrl)
jmxServiceUrl
- - new JMX service url to useprotected void setJmxServiceUrl(String jmxServiceUrl) throws MalformedURLException
jmxServiceUrl
- - new JMX service url to use
MalformedURLException
protected JMXConnector createJmxConnector() throws IOException
IOException
protected void closeJmxConnector()
protected void handleOption(String token, List tokens) throws Exception
handleOption
in class AbstractCommand
token
- - option token to handletokens
- - succeeding command arguments
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |