public class PurgeCommand extends AbstractJmxCommand
Modifier and Type | Field and Description |
---|---|
protected String[] |
helpFile |
DEFAULT_JMX_URL
COMMAND_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, useJmxServiceUrl
parseOptions, printHelpFromFile, setCommandContext
public PurgeCommand()
public String getOneLineDescription()
protected void runTask(List<String> tokens) throws Exception
runTask
in class AbstractCommand
tokens
- - command argumentsException
public void purgeQueue(ObjectName queue) throws Exception
queue
- - ObjectName of the queue to purgeException
protected void handleOption(String token, List<String> tokens) throws Exception
handleOption
in class AbstractJmxCommand
token
- - option token to handletokens
- - succeeding command argumentsException
public String convertToSQL92(List<String> tokens)
tokens
- - List of message selector query parametersprotected void printHelp()
printHelp
in class AbstractCommand
Copyright © 2005–2018 FuseSource, Corp.. All rights reserved.