com.caucho.boot
Class AbstractManagementCommand
java.lang.Object
com.caucho.boot.AbstractBootCommand
com.caucho.boot.AbstractRemoteCommand
com.caucho.boot.AbstractManagementCommand
- All Implemented Interfaces:
- BootCommand
- Direct Known Subclasses:
- DisableCommand, EnableCommand, HeapDumpCommand, JmxCommand, LicenseAddCommand, ListRestartsCommand, LogLevelCommand, PdfReportCommand, ProfileCommand, ScoreboardCommand, ThreadDumpCommand, UserAddCommand, UserListCommand, UserRemoveCommand
public abstract class AbstractManagementCommand
- extends AbstractRemoteCommand
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.AbstractBootCommand |
addFlagOption, addIntValueOption, addOption, addOption, addSpacerOption, addSubsectionHeaderOption, addValueOption, addValueOption, doCommand, doWatchdogStart, findClient, findLocalClient, findLocalClientImpl, findNamedClient, findNamedClientImpl, findUniqueLocalClient, findWatchdogClient, findWatchdogClientImpl, getDescription, getName, getOptionUsage, getUsageArgs, isConsole, isDefaultArgsAccepted, isFlag, isIntValueOption, isRemote, isRetry, isShutdown, isStart, isStartAll, isValueOption, toString, usage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RETURN_CODE_SERVER_ERROR
public static final int RETURN_CODE_SERVER_ERROR
- See Also:
- Constant Field Values
AbstractManagementCommand
public AbstractManagementCommand()
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)