public class CommandDispatcher extends Object
Constructor and Description |
---|
CommandDispatcher(OptionsAndArgs pOptions)
Dispatcher responsible for the execution of commands
|
Modifier and Type | Method and Description |
---|---|
int |
dispatchCommand(Object pVm,
VirtualMachineHandler pHandler)
Dispatch the command
|
static Set<String> |
getAvailableCommands()
Get the list of available commands
|
static void |
printHelp()
Print out usage message
|
public CommandDispatcher(OptionsAndArgs pOptions)
pOptions
- the parsed command line and optionspublic int dispatchCommand(Object pVm, VirtualMachineHandler pHandler) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException
pVm
- the virtual machine to attach to (typeless in order avoid direct references to the sun classes)pHandler
- handler for listing processesInvocationTargetException
NoSuchMethodException
IllegalAccessException
public static Set<String> getAvailableCommands()
public static void printHelp()
Copyright © 2019. All rights reserved.