public abstract class AbstractBootCommand extends java.lang.Object implements BootCommand
Modifier | Constructor and Description |
---|---|
protected |
AbstractBootCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFlagOption(java.lang.String name,
java.lang.String description) |
protected void |
addIntValueOption(java.lang.String name,
java.lang.String value,
java.lang.String description) |
protected void |
addOption(BootOption option) |
protected void |
addOption(BootOption option,
int orderOffset) |
protected void |
addSpacerOption() |
protected void |
addSubsectionHeaderOption(java.lang.String header) |
protected void |
addValueOption(java.lang.String name,
java.lang.String value,
java.lang.String description) |
protected void |
addValueOption(java.lang.String name,
java.lang.String value,
java.lang.String description,
boolean deprecated) |
int |
doCommand(ResinBoot boot,
com.caucho.boot.WatchdogArgs args) |
protected int |
doCommand(com.caucho.boot.WatchdogArgs args,
com.caucho.boot.WatchdogClient client) |
void |
doWatchdogStart(com.caucho.boot.WatchdogManager manager) |
protected com.caucho.boot.WatchdogClient |
findClient(ResinBoot boot,
com.caucho.boot.WatchdogArgs args) |
protected com.caucho.boot.WatchdogClient |
findLocalClient(ResinBoot boot,
com.caucho.boot.WatchdogArgs args) |
protected com.caucho.boot.WatchdogClient |
findLocalClientImpl(ResinBoot boot,
com.caucho.boot.WatchdogArgs args) |
protected com.caucho.boot.WatchdogClient |
findNamedClient(ResinBoot boot,
com.caucho.boot.WatchdogArgs args,
java.lang.String serverId) |
protected com.caucho.boot.WatchdogClient |
findNamedClientImpl(ResinBoot boot,
com.caucho.boot.WatchdogArgs args,
java.lang.String serverId) |
protected com.caucho.boot.WatchdogClient |
findUniqueLocalClient(ResinBoot boot,
com.caucho.boot.WatchdogArgs args) |
protected com.caucho.boot.WatchdogClient |
findWatchdogClient(ResinBoot boot,
com.caucho.boot.WatchdogArgs args) |
protected com.caucho.boot.WatchdogClient |
findWatchdogClientImpl(ResinBoot boot,
com.caucho.boot.WatchdogArgs args) |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
java.lang.String |
getOptionUsage(boolean verbose) |
java.lang.String |
getUsageArgs() |
protected void |
initBootOptions() |
boolean |
isConsole() |
boolean |
isDefaultArgsAccepted() |
boolean |
isFlag(java.lang.String key) |
boolean |
isIntValueOption(java.lang.String key) |
boolean |
isProOnly() |
boolean |
isRemote(com.caucho.boot.WatchdogArgs args) |
boolean |
isRetry() |
boolean |
isShutdown() |
boolean |
isStart() |
boolean |
isStartAll() |
boolean |
isValueOption(java.lang.String key) |
java.lang.String |
toString() |
void |
usage(boolean verbose) |
protected void initBootOptions()
public java.lang.String getName()
getName
in interface BootCommand
public java.lang.String getDescription()
getDescription
in interface BootCommand
public boolean isProOnly()
isProOnly
in interface BootCommand
public boolean isDefaultArgsAccepted()
isDefaultArgsAccepted
in interface BootCommand
public int doCommand(ResinBoot boot, com.caucho.boot.WatchdogArgs args)
doCommand
in interface BootCommand
public void doWatchdogStart(com.caucho.boot.WatchdogManager manager)
doWatchdogStart
in interface BootCommand
protected com.caucho.boot.WatchdogClient findClient(ResinBoot boot, com.caucho.boot.WatchdogArgs args)
protected com.caucho.boot.WatchdogClient findNamedClient(ResinBoot boot, com.caucho.boot.WatchdogArgs args, java.lang.String serverId)
protected com.caucho.boot.WatchdogClient findNamedClientImpl(ResinBoot boot, com.caucho.boot.WatchdogArgs args, java.lang.String serverId)
protected com.caucho.boot.WatchdogClient findLocalClient(ResinBoot boot, com.caucho.boot.WatchdogArgs args)
protected com.caucho.boot.WatchdogClient findLocalClientImpl(ResinBoot boot, com.caucho.boot.WatchdogArgs args)
protected com.caucho.boot.WatchdogClient findUniqueLocalClient(ResinBoot boot, com.caucho.boot.WatchdogArgs args)
protected com.caucho.boot.WatchdogClient findWatchdogClient(ResinBoot boot, com.caucho.boot.WatchdogArgs args)
protected com.caucho.boot.WatchdogClient findWatchdogClientImpl(ResinBoot boot, com.caucho.boot.WatchdogArgs args)
protected int doCommand(com.caucho.boot.WatchdogArgs args, com.caucho.boot.WatchdogClient client)
protected void addOption(BootOption option)
protected void addOption(BootOption option, int orderOffset)
protected void addFlagOption(java.lang.String name, java.lang.String description)
protected void addValueOption(java.lang.String name, java.lang.String value, java.lang.String description)
protected void addValueOption(java.lang.String name, java.lang.String value, java.lang.String description, boolean deprecated)
protected void addIntValueOption(java.lang.String name, java.lang.String value, java.lang.String description)
protected void addSpacerOption()
protected void addSubsectionHeaderOption(java.lang.String header)
public java.lang.String getOptionUsage(boolean verbose)
public boolean isValueOption(java.lang.String key)
isValueOption
in interface BootCommand
public boolean isIntValueOption(java.lang.String key)
isIntValueOption
in interface BootCommand
public boolean isFlag(java.lang.String key)
isFlag
in interface BootCommand
public boolean isRetry()
isRetry
in interface BootCommand
public final void usage(boolean verbose)
usage
in interface BootCommand
public java.lang.String getUsageArgs()
public boolean isStart()
isStart
in interface BootCommand
public boolean isStartAll()
isStartAll
in interface BootCommand
public boolean isConsole()
isConsole
in interface BootCommand
public boolean isShutdown()
isShutdown
in interface BootCommand
public boolean isRemote(com.caucho.boot.WatchdogArgs args)
isRemote
in interface BootCommand
public java.lang.String toString()
toString
in class java.lang.Object