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)
           
static void addWebContextPaths(Kernel kernel, List moduleIDs)
          Given a list of TargetModuleIDs, figure out which ones represent web modules and add a WebURL to each if possible.
protected  void addWebURLs(Kernel kernel)
           
 void cancel()
           
protected static String clean(String value)
           
protected  void complete(String message)
           
static ModuleType convertModuleType(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(Kernel kernel, String configName)
           
static List loadChildren(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(ConfigurationModuleType type)

isWebApp

public static boolean isWebApp(Kernel kernel,
                               String configName)

addWebURLs

protected void addWebURLs(Kernel kernel)
                   throws Exception
Throws:
Exception

addWebContextPaths

public static void addWebContextPaths(Kernel kernel,
                                      List moduleIDs)
                               throws Exception
Given a list of TargetModuleIDs, figure out which ones represent web modules and add a WebURL to each if possible.

Throws:
Exception

loadChildren

public static List loadChildren(Kernel kernel,
                                String configName)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.