public class PurgeCommand extends AbstractJmxCommand
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
helpFile |
DEFAULT_JMX_URLCOMMAND_OPTION_DELIMETER, context| Constructor and Description |
|---|
PurgeCommand() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertToSQL92(List<String> tokens)
Converts the message selector as provided on command line
argument to activem-admin into an SQL-92 conform string.
|
String |
getName() |
String |
getOneLineDescription() |
protected void |
handleOption(String token,
List<String> tokens)
Handle the --msgsel, --xmsgsel.
|
protected void |
printHelp()
Print the help messages for the browse command
|
void |
purgeQueue(ObjectName queue)
Purge all the messages in the queue
|
protected void |
runTask(List<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, printHelpFromFile, setCommandContextpublic PurgeCommand()
public String getOneLineDescription()
protected void runTask(List<String> tokens) throws Exception
runTask in class AbstractCommandtokens - - command argumentsExceptionpublic void purgeQueue(ObjectName queue) throws Exception
queue - - ObjectName of the queue to purgeExceptionprotected void handleOption(String token, List<String> tokens) throws Exception
handleOption in class AbstractJmxCommandtoken - - option token to handletokens - - succeeding command argumentsExceptionpublic String convertToSQL92(List<String> tokens)
tokens - - List of message selector query parametersprotected void printHelp()
printHelp in class AbstractCommandCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.