com.caucho.boot
Class AbstractBootCommand

java.lang.Object
  extended by 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


Constructor Summary
protected AbstractBootCommand()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractBootCommand

protected AbstractBootCommand()
Method Detail

initBootOptions

protected void initBootOptions()

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

doWatchdogStart

public void doWatchdogStart(com.caucho.boot.WatchdogManager manager)
Specified by:
doWatchdogStart in interface BootCommand

findClient

protected com.caucho.boot.WatchdogClient findClient(ResinBoot boot,
                                                    com.caucho.boot.WatchdogArgs args)

findNamedClient

protected com.caucho.boot.WatchdogClient findNamedClient(ResinBoot boot,
                                                         com.caucho.boot.WatchdogArgs args,
                                                         java.lang.String serverId)

findNamedClientImpl

protected com.caucho.boot.WatchdogClient findNamedClientImpl(ResinBoot boot,
                                                             com.caucho.boot.WatchdogArgs args,
                                                             java.lang.String serverId)

findLocalClient

protected com.caucho.boot.WatchdogClient findLocalClient(ResinBoot boot,
                                                         com.caucho.boot.WatchdogArgs args)

findLocalClientImpl

protected com.caucho.boot.WatchdogClient findLocalClientImpl(ResinBoot boot,
                                                             com.caucho.boot.WatchdogArgs args)

findUniqueLocalClient

protected com.caucho.boot.WatchdogClient findUniqueLocalClient(ResinBoot boot,
                                                               com.caucho.boot.WatchdogArgs args)

findWatchdogClient

protected com.caucho.boot.WatchdogClient findWatchdogClient(ResinBoot boot,
                                                            com.caucho.boot.WatchdogArgs args)

findWatchdogClientImpl

protected com.caucho.boot.WatchdogClient findWatchdogClientImpl(ResinBoot boot,
                                                                com.caucho.boot.WatchdogArgs args)

doCommand

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

addOption

protected void addOption(BootOption option)

addOption

protected void addOption(BootOption option,
                         int orderOffset)

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)

addValueOption

protected void addValueOption(java.lang.String name,
                              java.lang.String value,
                              java.lang.String description,
                              boolean deprecated)

addIntValueOption

protected void addIntValueOption(java.lang.String name,
                                 java.lang.String value,
                                 java.lang.String description)

addSpacerOption

protected void addSpacerOption()

addSubsectionHeaderOption

protected void addSubsectionHeaderOption(java.lang.String header)

getOptionUsage

public java.lang.String getOptionUsage(boolean verbose)

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(boolean verbose)
Specified by:
usage in interface BootCommand

getUsageArgs

public java.lang.String getUsageArgs()

isStart

public boolean isStart()
Specified by:
isStart in interface BootCommand

isStartAll

public boolean isStartAll()
Specified by:
isStartAll 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