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

java.lang.Object
  extended byorg.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) $

Field Summary
protected  CommandContext commandContext
           
 
Constructor Summary
protected CommandSupport(javax.enterprise.deploy.shared.CommandType command)
           
 
Method Summary
protected  void addModule(javax.enterprise.deploy.spi.TargetModuleID moduleID)
           
 void addProgressListener(javax.enterprise.deploy.spi.status.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 javax.enterprise.deploy.shared.ModuleType convertModuleType(org.apache.geronimo.kernel.config.ConfigurationModuleType type)
           
 void doFail(Exception e)
           
 void fail(String message)
           
 javax.enterprise.deploy.spi.status.ClientConfiguration getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id)
           
 CommandContext getCommandContext()
           
 javax.enterprise.deploy.spi.status.DeploymentStatus getDeploymentStatus()
           
protected  int getModuleCount()
           
 javax.enterprise.deploy.spi.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(javax.enterprise.deploy.spi.status.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(javax.enterprise.deploy.shared.CommandType command)
Method Detail

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.