com.caucho.boot
Class AbstractManagementCommand

java.lang.Object
  extended by com.caucho.boot.AbstractBootCommand
      extended by com.caucho.boot.AbstractRemoteCommand
          extended by com.caucho.boot.AbstractManagementCommand
All Implemented Interfaces:
BootCommand
Direct Known Subclasses:
HeapDumpCommand, JmxCommand, LicenseAddCommand, ListRestartsCommand, LogLevelCommand, PdfReportCommand, ProfileCommand, ThreadDumpCommand, UserAddCommand, UserListCommand, UserRemoveCommand

public abstract class AbstractManagementCommand
extends AbstractRemoteCommand


Constructor Summary
AbstractManagementCommand()
           
 
Method Summary
protected  ManagerClient createManagerClient(com.caucho.boot.WatchdogArgs args, com.caucho.boot.WatchdogClient client)
           
 int doCommand(com.caucho.boot.WatchdogArgs args, com.caucho.boot.WatchdogClient client)
           
protected abstract  int doCommand(com.caucho.boot.WatchdogArgs args, com.caucho.boot.WatchdogClient client, ManagerClient managerClient)
           
 boolean isProOnly()
           
 
Methods inherited from class com.caucho.boot.AbstractRemoteCommand
createBamClient
 
Methods inherited from class com.caucho.boot.AbstractBootCommand
addFlagOption, addIntValueOption, addOption, addValueOption, doCommand, getDescription, getName, getOptionUsage, getUsageArgs, isConsole, isDefaultArgsAccepted, isFlag, isIntValueOption, isRemote, isRetry, isShutdown, isStart, isValueOption, toString, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractManagementCommand

public AbstractManagementCommand()
Method Detail

doCommand

public int doCommand(com.caucho.boot.WatchdogArgs args,
                     com.caucho.boot.WatchdogClient client)
              throws BootArgumentException
Overrides:
doCommand in class AbstractBootCommand
Throws:
BootArgumentException

isProOnly

public boolean isProOnly()
Specified by:
isProOnly in interface BootCommand
Overrides:
isProOnly in class AbstractBootCommand

doCommand

protected abstract int doCommand(com.caucho.boot.WatchdogArgs args,
                                 com.caucho.boot.WatchdogClient client,
                                 ManagerClient managerClient)

createManagerClient

protected ManagerClient createManagerClient(com.caucho.boot.WatchdogArgs args,
                                            com.caucho.boot.WatchdogClient client)