org.apache.geronimo.deployment.plugin.local
Class CommandSupport

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


Field Summary
protected  CommandContext commandContext
           
 
Constructor Summary
protected CommandSupport(CommandType command)
           
 
Method Summary
protected  void addModule(TargetModuleID moduleID)
           
 void addProgressListener(ProgressListener pol)
           
protected  void addWebURLs(org.apache.geronimo.kernel.Kernel kernel)
           
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.
 void cancel()
           
protected static String clean(String value)
           
protected  void complete(String message)
           
static ModuleType convertModuleType(org.apache.geronimo.kernel.config.ConfigurationModuleType type)
           
 void doFail(Exception e)
           
 void fail(String message)
           
 ClientConfiguration getClientConfiguration(TargetModuleID id)
           
 CommandContext getCommandContext()
           
 DeploymentStatus getDeploymentStatus()
           
protected  int getModuleCount()
           
 TargetModuleID[] getResultTargetModuleIDs()
           
 boolean isCancelSupported()
           
 boolean isStopSupported()
           
static boolean isWebApp(org.apache.geronimo.kernel.Kernel kernel, String configName)
           
static List loadChildren(org.apache.geronimo.kernel.Kernel kernel, String configName)
           
 void removeProgressListener(ProgressListener pol)
           
 void setCommandContext(CommandContext commandContext)
           
 void stop()
           
 void updateStatus(String message)
           
 
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
 

Field Detail

commandContext

protected CommandContext commandContext
Constructor Detail

CommandSupport

protected CommandSupport(CommandType command)
Method Detail

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.