org.apache.geronimo.deployment.cli
Class AbstractCommand
java.lang.Object
org.apache.geronimo.deployment.cli.AbstractCommand
- All Implemented Interfaces:
- DeployCommand
- Direct Known Subclasses:
- CommandDistribute, CommandInstallCAR, CommandListConfigurations, CommandListModules, CommandListTargets, CommandLogin, CommandRedeploy, CommandStart
public abstract class AbstractCommand
- extends Object
- implements DeployCommand
Base class for CLI deployer commands. Tracks some simple properties and
has common utility methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCommand
public AbstractCommand(String command,
String group,
String helpArgumentList,
String helpText)
getCommandName
public String getCommandName()
- Specified by:
getCommandName
in interface DeployCommand
getHelpArgumentList
public String getHelpArgumentList()
- Specified by:
getHelpArgumentList
in interface DeployCommand
getHelpText
public String getHelpText()
- Specified by:
getHelpText
in interface DeployCommand
getCommandGroup
public String getCommandGroup()
- Specified by:
getCommandGroup
in interface DeployCommand
isLocalOnly
public boolean isLocalOnly()
- Specified by:
isLocalOnly
in interface DeployCommand
setOut
public void setOut(PrintWriter out)
emit
protected void emit(String message)
waitForProgress
protected void waitForProgress(PrintWriter out,
ProgressObject po)
- Busy-waits until the provided
ProgressObject
indicates that it's no longer running.
- Parameters:
out
- a PrintWriter
value, only used in case
of an InterruptedException
to output the stack
trace.po
- a ProgressObject
value
isMultipleTargets
protected static boolean isMultipleTargets(TargetModuleID[] ids)
identifyTargets
protected static Target[] identifyTargets(List targetNames,
DeploymentManager mgr)
throws org.apache.geronimo.common.DeploymentException
- Throws:
org.apache.geronimo.common.DeploymentException
Copyright © 2006 Apache Software Foundation. All Rights Reserved.