com.sun.enterprise.deployment.deploy.spi
Interface DeploymentManager

All Superinterfaces:
DeploymentManager

public interface DeploymentManager
extends DeploymentManager

Author:
dochez

Method Summary
 ProgressObject distribute(Target[] targetList, Archive moduleArchive, 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.
 WritableArchive getArchive(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.
 
Methods inherited from interface javax.enterprise.deploy.spi.DeploymentManager
createConfiguration, distribute, distribute, distribute, getAvailableModules, getCurrentLocale, getDConfigBeanVersion, getDefaultLocale, getNonRunningModules, getRunningModules, getSupportedLocales, getTargets, isDConfigBeanVersionSupported, isLocaleSupported, isRedeploySupported, redeploy, redeploy, release, setDConfigBeanVersion, setLocale, start, stop, undeploy
 

Method Detail

distribute

ProgressObject distribute(Target[] targetList,
                          Archive moduleArchive,
                          Archive deploymentPlan,
                          java.lang.Object deploymentOptions)
                          throws java.lang.IllegalStateException
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.

Parameters:
targetList - A list of server targets the user is specifying this application be deployed to.
moduleArchive - The abstraction for the application archive to be disrtibuted.
deploymentPlan - The archive containing the deployment configuration information associated with this application archive.
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
Returns:
ProgressObject an object that tracks and reports the status of the distribution process.
Throws:
java.lang.IllegalStateException - is thrown when the method is called when running in disconnected mode.

getArchive

WritableArchive getArchive(java.net.URI path,
                           java.lang.String name)
                           throws java.io.IOException
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.

Parameters:
path - the directory in which to create this archive if local storage is a possibility.
name - is the desired name for the archive
Returns:
the writable archive instance
Throws:
java.io.IOException


Copyright © 2012 GlassFish Community. All Rights Reserved.