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:
DistributeCommand, FailedProgressObject, RedeployCommand, StartCommand, StopCommand, UndeployCommand

public abstract class CommandSupport
extends Object
implements javax.enterprise.deploy.spi.status.ProgressObject, Runnable

Version:
$Revision: 1.5 $ $Date: 2004/06/02 06:50:41 $

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)
           
 void cancel()
           
protected  void complete(String message)
           
protected  void fail(String message)
           
 javax.enterprise.deploy.spi.status.ClientConfiguration getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id)
           
 javax.enterprise.deploy.spi.status.DeploymentStatus getDeploymentStatus()
           
 javax.enterprise.deploy.spi.TargetModuleID[] getResultTargetModuleIDs()
           
 boolean isCancelSupported()
           
 boolean isStopSupported()
           
 void removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
           
 void stop()
           
 
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
 

Constructor Detail

CommandSupport

protected CommandSupport(javax.enterprise.deploy.shared.CommandType command)
Method Detail

addModule

protected void addModule(javax.enterprise.deploy.spi.TargetModuleID moduleID)

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

protected final void fail(String message)

complete

protected final void complete(String message)


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