org.apache.geronimo.deployment.plugin.local
Class CommandSupport
java.lang.Object
org.apache.geronimo.deployment.plugin.local.CommandSupport
- All Implemented Interfaces:
- Runnable, ProgressObject
- Direct Known Subclasses:
- AbstractDeployCommand, FailedProgressObject, StartCommand, StopCommand, UndeployCommand
public abstract class CommandSupport
- extends Object
- implements ProgressObject, Runnable
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(CommandType command)
addModule
protected void addModule(TargetModuleID moduleID)
getModuleCount
protected int getModuleCount()
getResultTargetModuleIDs
public TargetModuleID[] getResultTargetModuleIDs()
- Specified by:
getResultTargetModuleIDs
in interface ProgressObject
getDeploymentStatus
public DeploymentStatus getDeploymentStatus()
- Specified by:
getDeploymentStatus
in interface ProgressObject
getClientConfiguration
public ClientConfiguration getClientConfiguration(TargetModuleID id)
- Specified by:
getClientConfiguration
in interface ProgressObject
isCancelSupported
public boolean isCancelSupported()
- Specified by:
isCancelSupported
in interface ProgressObject
cancel
public void cancel()
throws OperationUnsupportedException
- Specified by:
cancel
in interface ProgressObject
- Throws:
OperationUnsupportedException
isStopSupported
public boolean isStopSupported()
- Specified by:
isStopSupported
in interface ProgressObject
stop
public void stop()
throws OperationUnsupportedException
- Specified by:
stop
in interface ProgressObject
- Throws:
OperationUnsupportedException
addProgressListener
public void addProgressListener(ProgressListener pol)
- Specified by:
addProgressListener
in interface ProgressObject
removeProgressListener
public void removeProgressListener(ProgressListener pol)
- Specified by:
removeProgressListener
in interface 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 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 © 2006 Apache Software Foundation. All Rights Reserved.