com.caucho.boot
Class AbstractBootCommand
java.lang.Object
com.caucho.boot.AbstractBootCommand
- All Implemented Interfaces:
- BootCommand
- Direct Known Subclasses:
- AbstractRemoteCommand, AbstractScalingCommand, AbstractStartCommand, AbstractStopCommand, JspcCommand, PasswordEncryptCommand, PasswordGenerateCommand, StatusCommand
public abstract class AbstractBootCommand
- extends java.lang.Object
- implements BootCommand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractBootCommand
protected AbstractBootCommand()
getName
public java.lang.String getName()
- Specified by:
getName in interface BootCommand
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface BootCommand
isProOnly
public boolean isProOnly()
- Specified by:
isProOnly in interface BootCommand
isDefaultArgsAccepted
public boolean isDefaultArgsAccepted()
- Specified by:
isDefaultArgsAccepted in interface BootCommand
doCommand
public int doCommand(ResinBoot boot,
com.caucho.boot.WatchdogArgs args)
- Specified by:
doCommand in interface BootCommand
doCommand
protected int doCommand(com.caucho.boot.WatchdogArgs args,
com.caucho.boot.WatchdogClient client)
addOption
protected void addOption(BootOption option)
addFlagOption
protected void addFlagOption(java.lang.String name,
java.lang.String description)
addValueOption
protected void addValueOption(java.lang.String name,
java.lang.String value,
java.lang.String description)
addIntValueOption
protected void addIntValueOption(java.lang.String name,
java.lang.String value,
java.lang.String description)
getOptionUsage
public java.lang.String getOptionUsage()
isValueOption
public boolean isValueOption(java.lang.String key)
- Specified by:
isValueOption in interface BootCommand
isIntValueOption
public boolean isIntValueOption(java.lang.String key)
- Specified by:
isIntValueOption in interface BootCommand
isFlag
public boolean isFlag(java.lang.String key)
- Specified by:
isFlag in interface BootCommand
isRetry
public boolean isRetry()
- Specified by:
isRetry in interface BootCommand
usage
public final void usage()
- Specified by:
usage in interface BootCommand
getUsageArgs
public java.lang.String getUsageArgs()
isStart
public boolean isStart()
- Specified by:
isStart in interface BootCommand
isConsole
public boolean isConsole()
- Specified by:
isConsole in interface BootCommand
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown in interface BootCommand
isRemote
public boolean isRemote(com.caucho.boot.WatchdogArgs args)
- Specified by:
isRemote in interface BootCommand
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object