org.apache.geronimo.deployment.cli
Class AbstractCommand
java.lang.Object
org.apache.geronimo.deployment.cli.AbstractCommand
- All Implemented Interfaces:
- DeployCommand
- Direct Known Subclasses:
- CommandDistribute, CommandListModules, CommandListTargets, CommandPackage, CommandRedeploy, CommandStart
- public abstract class AbstractCommand
- extends java.lang.Object
- implements DeployCommand
Base class for CLI deployer commands. Tracks some simple properties and
has common utility methods.
- Version:
- $Rev: 53762 $ $Date: 2004-10-04 18:54:53 -0400 (Mon, 04 Oct 2004) $
|
Constructor Summary |
AbstractCommand(java.lang.String command,
java.lang.String group,
java.lang.String helpArgumentList,
java.lang.String helpText)
|
|
Method Summary |
java.lang.String |
getCommandGroup()
|
java.lang.String |
getCommandName()
|
java.lang.String |
getHelpArgumentList()
|
java.lang.String |
getHelpText()
|
protected static java.util.Collection |
identifyTargetModuleIDs(javax.enterprise.deploy.spi.TargetModuleID[] allModules,
java.lang.String name)
|
protected static javax.enterprise.deploy.spi.Target[] |
identifyTargets(java.util.List targetNames,
javax.enterprise.deploy.spi.DeploymentManager mgr)
|
boolean |
isLocalOnly()
|
protected static boolean |
isMultipleTargets(javax.enterprise.deploy.spi.TargetModuleID[] ids)
|
protected static void |
waitForProgress(java.io.PrintWriter out,
javax.enterprise.deploy.spi.status.ProgressObject po)
Busy-waits until the provided ProgressObject
indicates that it's no longer running. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
command
private java.lang.String command
group
private java.lang.String group
helpArgumentList
private java.lang.String helpArgumentList
helpText
private java.lang.String helpText
AbstractCommand
public AbstractCommand(java.lang.String command,
java.lang.String group,
java.lang.String helpArgumentList,
java.lang.String helpText)
getCommandName
public java.lang.String getCommandName()
- Specified by:
getCommandName in interface DeployCommand
getHelpArgumentList
public java.lang.String getHelpArgumentList()
- Specified by:
getHelpArgumentList in interface DeployCommand
getHelpText
public java.lang.String getHelpText()
- Specified by:
getHelpText in interface DeployCommand
getCommandGroup
public java.lang.String getCommandGroup()
- Specified by:
getCommandGroup in interface DeployCommand
isLocalOnly
public boolean isLocalOnly()
- Specified by:
isLocalOnly in interface DeployCommand
waitForProgress
protected static void waitForProgress(java.io.PrintWriter out,
javax.enterprise.deploy.spi.status.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(javax.enterprise.deploy.spi.TargetModuleID[] ids)
identifyTargets
protected static javax.enterprise.deploy.spi.Target[] identifyTargets(java.util.List targetNames,
javax.enterprise.deploy.spi.DeploymentManager mgr)
throws DeploymentException
- Throws:
DeploymentException
identifyTargetModuleIDs
protected static java.util.Collection identifyTargetModuleIDs(javax.enterprise.deploy.spi.TargetModuleID[] allModules,
java.lang.String name)
throws DeploymentException
- Throws:
DeploymentException
Copyright © 2005 Apache Software Foundation. All Rights Reserved.