Package com.sun.enterprise.deployapi

Examples of com.sun.enterprise.deployapi.ProgressObjectImpl


        if(!isConnected()) {
            throw new IllegalStateException(localStrings.getString("enterprise.deployment.client.disconnected_state"));
        }
       
        SunTarget[] targetList = getSunTargets(targets);
        ProgressObjectImpl progressObject = new DeployAction(targetList);
        Object args[] = new Object[8];
        args[0] = dasConnection;
        args[1] = source;
        args[2] = deploymentPlan;
        args[3] = (deploymentOptions == null) ? new HashMap() : DeploymentProperties.propsToMap((Properties)deploymentOptions);
        args[4] = targetList;
        args[5] = domain;
        args[6] = localConnection;
        args[7] = serverId;
        progressObject.setCommand(CommandType.DISTRIBUTE, args);
        Thread newThread =  new Thread(progressObject);
        newThread.start();
        return progressObject;
    }
View Full Code Here


    public JESProgressObject undeploy(Target[] targets, String moduleID, Map options) {
        if(!isConnected()) {
            throw new IllegalStateException(localStrings.getString("enterprise.deployment.client.disconnected_state"));
        }
        SunTarget[] targetList = getSunTargets(targets);
        ProgressObjectImpl progressObject = new UndeployAction(targetList);
        Object args[] = new Object[6];
        args[0] = dasConnection;
        args[1] = moduleID;
        args[2] = (options == null) ? new HashMap() : DeploymentProperties.propsToMap((Properties)options);
        args[3] = targetList;
        args[4] = domain;
        args[5] = localConnection;
        progressObject.setCommand(CommandType.UNDEPLOY, args);
        Thread newThread =  new Thread(progressObject);
        newThread.start();
        return progressObject;
    }
View Full Code Here

    private JESProgressObject changeState(Target[] targets, String moduleID, CommandType cmd) {
        if(!isConnected()) {
            throw new IllegalStateException(localStrings.getString("enterprise.deployment.client.disconnected_state"));
        }
        SunTarget[] targetList = getSunTargets(targets);
        ProgressObjectImpl progressObject = new ChangeStateAction(targetList);
        Object args[] = new Object[5];
        args[0] = dasConnection;
        args[1] = targetList;
        args[2] = moduleID;
        args[3] = cmd;
        args[4] = domain;
        progressObject.setCommand(cmd, args);
        Thread newThread =  new Thread(progressObject);
        newThread.start();
        return progressObject;       
    }
View Full Code Here

    private JESProgressObject doApplicationReferenceAction(Target[] targets, String moduleID, Map options, CommandType cmd) {
        if(!isConnected()) {
            throw new IllegalStateException(localStrings.getString("enterprise.deployment.client.disconnected_state"));
        }
        SunTarget[] targetList = getSunTargets(targets);
        ProgressObjectImpl progressObject = new ApplicationReferenceAction(targetList);
        Object args[] = new Object[5];
        args[0] = dasConnection;
        args[1] = targetList;
        args[2] = moduleID;
        args[3] = cmd;
        args[4] = (options == null) ? new HashMap() : DeploymentProperties.propsToMap((Properties)options);
        progressObject.setCommand(cmd, args);
        Thread newThread =  new Thread(progressObject);
        newThread.start();
        return progressObject;       
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployapi.ProgressObjectImpl

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.