org.apache.geronimo.deployment.plugin.local
Class CommandSupport
java.lang.Object
org.apache.geronimo.deployment.plugin.local.CommandSupport
- All Implemented Interfaces:
- javax.enterprise.deploy.spi.status.ProgressObject, Runnable
- Direct Known Subclasses:
- AbstractDeployCommand, FailedProgressObject, StartCommand, StopCommand, UndeployCommand
- public abstract class CommandSupport
- extends Object
- implements javax.enterprise.deploy.spi.status.ProgressObject, Runnable
- Version:
- $Rev: 396767 $ $Date: 2006-04-25 06:07:54 +0200 (Tue, 25 Apr 2006) $
Constructor Summary |
protected |
CommandSupport(javax.enterprise.deploy.shared.CommandType command)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
commandContext
protected CommandContext commandContext
CommandSupport
protected CommandSupport(javax.enterprise.deploy.shared.CommandType command)
addModule
protected void addModule(javax.enterprise.deploy.spi.TargetModuleID moduleID)
getModuleCount
protected int getModuleCount()
getResultTargetModuleIDs
public javax.enterprise.deploy.spi.TargetModuleID[] getResultTargetModuleIDs()
- Specified by:
getResultTargetModuleIDs
in interface javax.enterprise.deploy.spi.status.ProgressObject
getDeploymentStatus
public javax.enterprise.deploy.spi.status.DeploymentStatus getDeploymentStatus()
- Specified by:
getDeploymentStatus
in interface javax.enterprise.deploy.spi.status.ProgressObject
getClientConfiguration
public javax.enterprise.deploy.spi.status.ClientConfiguration getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id)
- Specified by:
getClientConfiguration
in interface javax.enterprise.deploy.spi.status.ProgressObject
isCancelSupported
public boolean isCancelSupported()
- Specified by:
isCancelSupported
in interface javax.enterprise.deploy.spi.status.ProgressObject
cancel
public void cancel()
throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
- Specified by:
cancel
in interface javax.enterprise.deploy.spi.status.ProgressObject
- Throws:
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
isStopSupported
public boolean isStopSupported()
- Specified by:
isStopSupported
in interface javax.enterprise.deploy.spi.status.ProgressObject
stop
public void stop()
throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
- Specified by:
stop
in interface javax.enterprise.deploy.spi.status.ProgressObject
- Throws:
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
addProgressListener
public void addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
- Specified by:
addProgressListener
in interface javax.enterprise.deploy.spi.status.ProgressObject
removeProgressListener
public void removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
- Specified by:
removeProgressListener
in interface javax.enterprise.deploy.spi.status.ProgressObject
fail
public final void fail(String message)
complete
protected final void complete(String message)
updateStatus
public final void updateStatus(String message)
doFail
public void doFail(Exception e)
clean
protected static String clean(String value)
getCommandContext
public CommandContext getCommandContext()
setCommandContext
public void setCommandContext(CommandContext commandContext)
convertModuleType
public static javax.enterprise.deploy.shared.ModuleType convertModuleType(org.apache.geronimo.kernel.config.ConfigurationModuleType type)
isWebApp
public static boolean isWebApp(org.apache.geronimo.kernel.Kernel kernel,
String configName)
addWebURLs
protected void addWebURLs(org.apache.geronimo.kernel.Kernel kernel)
addWebURLs
public static void addWebURLs(org.apache.geronimo.kernel.Kernel kernel,
List moduleIDs)
- Given a list of TargetModuleIDs, figure out which ones represent web
modules and add a WebURL to each if possible.
loadChildren
public static List loadChildren(org.apache.geronimo.kernel.Kernel kernel,
String configName)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.