FileDocCategorySizeDatePackage
DeploymentManager.javaAPI DocGlassfish v2 API4836Fri May 04 22:31:36 BST 2007com.sun.enterprise.deployment.deploy.spi

DeploymentManager

public interface DeploymentManager implements javax.enterprise.deploy.spi.DeploymentManager
author
dochez

Fields Summary
Constructors Summary
Methods Summary
public javax.enterprise.deploy.spi.status.ProgressObjectdistribute(javax.enterprise.deploy.spi.Target[] targetList, com.sun.enterprise.deployment.deploy.shared.Archive moduleArchive, com.sun.enterprise.deployment.deploy.shared.Archive deploymentPlan, java.lang.Object deploymentOptions)
The distribute method performs three tasks; it validates the deployment configuration data, generates all container specific classes and interfaces, and moves the fully baked archive to the designated deployment targets.

param
targetList A list of server targets the user is specifying this application be deployed to.
param
moduleArchive The abstraction for the application archive to be disrtibuted.
param
deploymentPlan The archive containing the deployment configuration information associated with this application archive.
param
deploymentOptions is a JavaBeans compliant component containing all deployment options for this deployable unit. This object must be created using the BeanInfo instance returned by DeploymentConfiguration.getDeploymentOptions
throws
IllegalStateException is thrown when the method is called when running in disconnected mode.
return
ProgressObject an object that tracks and reports the status of the distribution process.

public com.sun.enterprise.deployment.deploy.shared.WritableArchivegetArchive(java.net.URI path, java.lang.String name)
Creates a new instance of WritableArchive which can be used to store application elements in a layout that can be directly used by the application server. Implementation of this method should carefully return the appropriate implementation of the interface that suits the server needs and provide the fastest deployment time. An archive may already exist at the location and elements may be read but not changed or added depending on the underlying medium.

param
path the directory in which to create this archive if local storage is a possibility.
param
name is the desired name for the archive
return
the writable archive instance