[Ejtools-cvs] CVS: libraries/jboss.provider/src/main/org/jboss/enterprise/deploy/spi/status JBoss30C
Brought to you by:
letiemble
From: Laurent E. <let...@us...> - 2002-05-01 18:45:32
|
Update of /cvsroot/ejtools/libraries/jboss.provider/src/main/org/jboss/enterprise/deploy/spi/status In directory usw-pr-cvs1:/tmp/cvs-serv15366/jboss.provider/src/main/org/jboss/enterprise/deploy/spi/status Added Files: JBoss30ClientConfiguration.java JBoss30DeploymentStatus.java JBoss30ProgressObject.java Log Message: Initial Import --- NEW FILE: JBoss30ClientConfiguration.java --- package org.jboss.enterprise.deploy.spi.status; import java.io.Serializable; import javax.enterprise.deploy.spi.exceptions.ClientExecuteException; import javax.enterprise.deploy.spi.status.ClientConfiguration; /** * The ClientConfiguration object configures an Application * Client for execution by a deployment tool. This class * should resolve the settings for installing and running * the application client. * * @author letiembl * @created 15 avril 2002 */ /** * The ClientConfiguration object installs, configures and * executes an Application Client. This class resolves the * settings for installing and running the application client. * * @author letiembl * @created 15 avril 2002 */ public class JBoss30ClientConfiguration implements ClientConfiguration { /** * This method performs an exec and starts the * application client running in another process. * * @throws ClientExecuteException when the configuration * is incomplete. */ public void execute() throws ClientExecuteException { } } --- NEW FILE: JBoss30DeploymentStatus.java --- package org.jboss.enterprise.deploy.spi.status; import javax.enterprise.deploy.spi.*; import javax.enterprise.deploy.shared.ActionType; import javax.enterprise.deploy.shared.CommandType; import javax.enterprise.deploy.shared.StateType; import javax.enterprise.deploy.spi.status.DeploymentStatus; /** * The DeploymentStatus interface provides information about * the progress status of a deployment action. * * @author letiembl * @created 15 avril 2002 */ public class JBoss30DeploymentStatus implements DeploymentStatus { /** * Retrieve the StateType value. * * @return State value */ public int getState() { return 0; } /** * Retrieve the deployment CommandType of this event. * * @return command value */ public int getCommand() { return 0; } /** * Retrieve the deployment ActionType for this event. * * @return action value */ public int getAction() { return 0; } /** * Retrieve any additional information about the * status of this event. * * @return message text */ public String getMessage() { return null; } /** * A convience method to report if the operation is * in the completed state. * * @return true if this command has completed successfully */ public boolean isCompleted() { return false; } /** * A convience method to report if the operation is * in the failed state. * * @return true if this command has failed */ public boolean isFailed() { return false; } /** * A convience method to report if the operation is * in the running state. * * @return true if this command is still running */ public boolean isRunning() { return false; } } --- NEW FILE: JBoss30ProgressObject.java --- package org.jboss.enterprise.deploy.spi.status; import javax.enterprise.deploy.spi.*; import javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException; import javax.enterprise.deploy.spi.status.*; /** * The ProgressObject interface tracks and reports * the progress of the deployment activities, * distribute, start, stop, undeploy. * * <p>This class has an <code> optional</code> cancel * method. The support of the cancel function can * be tested by the isCancelSupported method. * </p> * * <p>The ProgressObject structure allows the * user the option of polling for status or to * provide a callback. * </p> * * @author letiembl * @created 15 avril 2002 */ public class JBoss30ProgressObject implements ProgressObject { /** * Retrieve the status of this activity. * * @return An object containing the status * information. */ public DeploymentStatus getDeploymentStatus() { return null; } /** * Retrieve the list of TargetModuleIDs successfully * processed or created by the associated DeploymentManager * operation. * * @return a list of TargetModuleIDs. */ public TargetModuleID[] getResultTargetModuleIDs() { return null; } /** * Return the ClientConfiguration object associated with the * TargetModuleID. * * @param id Description of Parameter * @return ClientConfiguration for a given TargetModuleID or * null if none exists. */ public ClientConfiguration getClientConfiguration(TargetModuleID id) { return null; } /** * Tests whether the vendor supports a cancel * opertation for deployment activities. * * @return <code>true</code> if canceling an * activity is supported by this platform. */ public boolean isCancelSupported() { return false; } /** * Tests whether the vendor supports a stop * opertation for deployment activities. * * @return <code>true</code> if canceling an * activity is supported by this platform. */ public boolean isStopSupported() { return false; } /** * (optional) * A cancel request on an in-process operation * stops all further processing of the operation and returns * the environment to it original state before the operation * was executed. An operation that has run to completion * cannot be cancelled. * * @throws OperationUnsupportedException this optional command * is not supported by this implementation. */ public void cancel() throws OperationUnsupportedException { } /** * (optional) * A stop request on an in-process operation allows the * operation on the current TargetModuleID to run to completion but * does not process any of the remaining unprocessed TargetModuleID * objects. The processed TargetModuleIDs must be returned by the * method getResultTargetModuleIDs. * * @throws OperationUnsupportedException this optional command * is not supported by this implementation. */ public void stop() throws OperationUnsupportedException { } /** * Add a listener to receive Progress events on deployment * actions. * * @param pol The feature to be added to the ProgressListener attribute * @see ProgressEvent */ public void addProgressListener(ProgressListener pol) { } /** * Remove a ProgressObject listener. * * @param pol Description of Parameter * @see ProgressEvent */ public void removeProgressListener(ProgressListener pol) { } } |