public class PurgeCommand extends AbstractJmxCommand
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
helpFile |
DEFAULT_JMX_URLCOMMAND_OPTION_DELIMETER, context| Constructor and Description |
|---|
PurgeCommand() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToSQL92(java.util.List<java.lang.String> tokens)
Converts the message selector as provided on command line
argument to activem-admin into an SQL-92 conform string.
|
java.lang.String |
getName() |
java.lang.String |
getOneLineDescription() |
protected void |
handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
Handle the --msgsel, --xmsgsel.
|
protected void |
printHelp()
Print the help messages for the browse command
|
void |
purgeQueue(javax.management.ObjectName queue)
Purge all the messages in the queue
|
protected void |
runTask(java.util.List<java.lang.String> tokens)
Execute the purge command, which allows you to purge the messages in a
given JMS destination
|
closeJmxConnection, createJmxConnection, execute, findJMXUrlByProcessId, getJmxPassword, getJmxServiceUrl, getJmxUser, getJVM, isJmxUseLocal, isSunJVM, setJmxPassword, setJmxServiceUrl, setJmxServiceUrl, setJmxUseLocal, setJmxUser, useJmxServiceUrlparseOptions, setCommandContextpublic java.lang.String getName()
public java.lang.String getOneLineDescription()
protected void runTask(java.util.List<java.lang.String> tokens)
throws java.lang.Exception
runTask in class AbstractCommandtokens - - command argumentsjava.lang.Exceptionpublic void purgeQueue(javax.management.ObjectName queue)
throws java.lang.Exception
queue - - ObjectName of the queue to purgejava.lang.Exceptionprotected void handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
throws java.lang.Exception
handleOption in class AbstractJmxCommandtoken - - option token to handletokens - - succeeding command argumentsjava.lang.Exceptionpublic java.lang.String convertToSQL92(java.util.List<java.lang.String> tokens)
tokens - - List of message selector query parametersprotected void printHelp()
printHelp in class AbstractCommandCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.