FileDocCategorySizeDatePackage
DeploymentService.javaAPI DocGlassfish v2 API8130Fri May 04 22:34:38 BST 2007com.sun.enterprise.deployment.phasing

DeploymentService

public abstract class DeploymentService extends Object
Manages the phases and maps deployment operations to deployment phases
author
deployment dev team

Fields Summary
private static DeploymentService
deployService
Constructors Summary
Methods Summary
public abstract com.sun.enterprise.deployment.backend.DeploymentStatusassociate(com.sun.enterprise.deployment.backend.DeploymentRequest req)
This method is used to associate an application to a target.

param
req DeploymentRequest object

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusassociate(java.lang.String targetName, boolean enabled, java.lang.String virtualServers, java.lang.String referenceName)
This method is used to associate an application to a target. It constructs the DeploymentRequest using the parameters first.

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusassociate(java.lang.String targetName, java.lang.String referenceName, java.util.Map options)
This method is used to associate an application to a target. It constructs the DeploymentRequest using the parameters first.

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusdeploy(com.sun.enterprise.deployment.backend.DeploymentRequest req)
This method deploys application. Prepares the app, stores it in central repository and registers with config

param
req DeploymentRequest object

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusdeploy(java.io.File deployFile, java.io.File planFile, java.lang.String archiveName, java.lang.String moduleID, com.sun.enterprise.deployment.util.DeploymentProperties dProps, com.sun.enterprise.management.deploy.DeploymentCallback callback)
This method deploys application. Prepares the app, stores it in It constructs the DeploymentRequest using the parameters first.

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusdisassociate(com.sun.enterprise.deployment.backend.DeploymentRequest req)
This method removes references of an application on a particular target

param
req DeploymentRequest object

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusdisassociate(java.lang.String targetName, java.lang.String referenceName)
This method removes references of an application on a particular target It constructs the DeploymentRequest using the parameters first.

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusdisassociate(java.lang.String targetName, java.lang.String referenceName, java.util.Map options)

public static com.sun.enterprise.deployment.phasing.DeploymentServicegetDeploymentService(com.sun.enterprise.config.ConfigContext configContext)
This is a singleton factory for the DeploymentService implementation. We should revisit this to make sure this will work in multi-threaded environment, i.e. concurrent deployment.


        if (deployService != null) {
            return deployService;
        }

        PluggableFeatureFactory featureFactory =
            ApplicationServer.getServerContext().getPluggableFeatureFactory();
        DeploymentFactory dFactory = featureFactory.getDeploymentFactory();
        deployService = dFactory.createDeploymentService(configContext);
        return deployService;
    
public static com.sun.enterprise.deployment.phasing.DeploymentServicegetDeploymentService()

        ConfigContext configContext = 
            DeploymentServiceUtils.getConfigContext();
        return DeploymentService.getDeploymentService(configContext);
    
public abstract java.lang.StringgetModuleIDFromDD(java.io.File file)
This method finds moduleID by explicitly loading the dd for its display name. This method is called by the DeployThread if and only if the client did not provide a moduleID. This is only true when a client is using JSR88.distribute with InputStream signature.

@
todo: Ideally we do not want to load the deployment descriptor more than once. This one is a necessary evil since we need the moduleID *now* before proceeding with the rest of deployment. Bigger re-construction is needed if we want to optimize deployment further for JSR88 using InputStream. NOTE that we choose to load the dd and use the display name as the moduleID instead of the uploaded file name for backward compatibility and clarity (uploaded file name is not descriptive).
param
file the deployed file
return
the moduleID derived from this file using the dd's display name

public abstract booleanquit(java.lang.String moduleID)

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusstart(com.sun.enterprise.deployment.backend.DeploymentRequest req)

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusstart(java.lang.String moduleID, java.lang.String targetName, java.util.Map options)

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusstop(com.sun.enterprise.deployment.backend.DeploymentRequest req)

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusstop(java.lang.String moduleID, java.lang.String targetName, java.util.Map options)

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusundeploy(com.sun.enterprise.deployment.backend.DeploymentRequest req)
This method undeploys application. Removes the application from central repository and unregisters the application from config

param
req DeploymentRequest object

public abstract com.sun.enterprise.deployment.backend.DeploymentStatusundeploy(java.lang.String mModuleID, java.util.Map mParams)
This method undeploys application. Removes the application from It constructs the DeploymentRequest using the parameters first.