Package com.sun.enterprise.deployment.phasing

Examples of com.sun.enterprise.deployment.phasing.DeploymentTarget


     */
    public DeploymentStatus createLifecycleModuleReference(String referenceName, String targetName, Map options) {
        DeploymentStatus ds = new DeploymentStatus();
        ds.setStageDescription("CreateLifecycleModuleReference");
        try {
            final DeploymentTarget target = getAndValidateDeploymentTarget(
                targetName, referenceName, false, false);
            boolean enabled = (new DeploymentProperties(options)).getEnable();
            target.addAppReference(referenceName, enabled, null);
            ds.setStageStatus(DeploymentStatus.SUCCESS);
        } catch(Exception e) {
            ds.setStageException(e);
            ds.setStageStatus(DeploymentStatus.FAILURE);
            ds.setStageStatusMessage(e.getMessage());
View Full Code Here


     */
    public DeploymentStatus removeLifecycleModuleReference(String referenceName, String targetName) {
        DeploymentStatus ds = new DeploymentStatus();
        ds.setStageDescription("RemoveLifecycleModuleReference");
        try {
            final DeploymentTarget target = getAndValidateDeploymentTarget(
                targetName, referenceName, false, false);
            target.removeAppReference(referenceName);
            ds.setStageStatus(DeploymentStatus.SUCCESS);
        } catch(Exception e) {
            ds.setStageException(e);
            ds.setStageStatus(DeploymentStatus.FAILURE);
            ds.setStageStatusMessage(e.getMessage());
View Full Code Here

     */
    public void removeLifecycleModuleByName(String name, String targetName)
        throws Exception
    {
        Boolean isRegistered = isLifecycleModuleRegistered(name);
        final DeploymentTarget target = getAndValidateDeploymentTarget(
            targetName, name, isRegistered.booleanValue(), true);
        target.removeAppReference(name);
        invoke("removeLifecycleModuleByName", new Object[]{name},
            new String[]{"java.lang.String"});
    }
View Full Code Here

     * The following is not turned on unless the following system property is true:
     * "dynamic.reconfiguration.enabled"
     */
    protected List getDeployPhaseListForTarget(DeploymentRequest req) {

        DeploymentTarget target = (DeploymentTarget) req.getTarget();       

        String dynamicReconfigurationEnabled =
            System.getProperty("dynamic.reconfiguration.enabled") == null
            ? "true"
            : (String) System.getProperty("dynamic.reconfiguration.enabled");
View Full Code Here

     * The following is not turned on unless the following system property is true:
     * "dynamic.reconfiguration.enabled"
     */
    protected List getDeployPhaseListForTarget(DeploymentRequest req) {

        DeploymentTarget target = (DeploymentTarget) req.getTarget();       

        String dynamicReconfigurationEnabled =
            System.getProperty("dynamic.reconfiguration.enabled") == null
            ? "true"
            : (String) System.getProperty("dynamic.reconfiguration.enabled");
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.phasing.DeploymentTarget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.