Package com.sun.enterprise.deployment.phasing

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


     */
    public String[] getModules(DeployableObjectType type, Boolean enabled)
        throws DeploymentTargetException
    {
        try {
            ServerDeploymentTarget sdTarget = new ServerDeploymentTarget(configContext, domainName, "");
            return sdTarget.getModules(getAppsDeployedToCluster(), type, enabled);
        } catch(Throwable t) {
            throw new DeploymentTargetException(t);
       
    }
View Full Code Here


        throws DeploymentTargetException
    {
        //FIXTHIS. It is not clear whether we should return all modules in the domain.
        //This is what we are now doing.
        try {
            ServerDeploymentTarget sdTarget = new ServerDeploymentTarget(configContext, domainName, "");
            return sdTarget.getModules(getAppsInDomain(), type, enabled);
        } catch(Throwable t) {
            throw new DeploymentTargetException(t);
       
    }
View Full Code Here

   public boolean sendStartEvent(int eventType, String appName, String moduleType, boolean isForced, int loadUnloadAction) throws DeploymentTargetException {
        try {
            boolean domainResult = true;
            String[] svrRef = getServersReferencingApp(appName);
            for(int i = 0; i < svrRef.length ; i++) {
                ServerDeploymentTarget sdTarget = new ServerDeploymentTarget(configContext, domainName, svrRef[i]);
                boolean serverResult = sdTarget.sendStartEvent(eventType, appName, moduleType, isForced, loadUnloadAction);
                if (!serverResult) {
                    domainResult = false;
                }
            }
            return domainResult;
View Full Code Here

        throws DeploymentTargetException
    {
        try {
            String[] svrRef = getServersReferencingApp(appName);
            for(int i = 0; i < svrRef.length ; i++) {
                ServerDeploymentTarget sdTarget = new ServerDeploymentTarget(configContext, domainName, svrRef[i]);
                sdTarget.sendStopEvent(eventType, appName, moduleType, cascade);
            }
            return true;
        } catch(Throwable t) {        
            throw new DeploymentTargetException(t);
        }         
View Full Code Here

        throws DeploymentTargetException
    {  
        try {
            String[] svrRef = getServersReferencingApp(appName);
            for(int i = 0; i < svrRef.length ; i++) {
                ServerDeploymentTarget sdTarget = new ServerDeploymentTarget(configContext, domainName, svrRef[i]);
                sdTarget.sendStopEvent(eventType, appName, moduleType, cascade, force);              
            }
            return true;
        } catch(Throwable t) {
            throw new DeploymentTargetException(t);
        }         
View Full Code Here

        throws DeploymentTargetException
    {
        try {
            String[] svrRef = getServersReferencingApp(appName);
            for(int i = 0; i < svrRef.length ; i++) {
                ServerDeploymentTarget sdTarget = new ServerDeploymentTarget(configContext, domainName, svrRef[i]);
                sdTarget.sendStopEvent(eventType, appName, moduleType, cascade, force, loadUnloadAction);
            }
            return true;
        } catch(Throwable t) {
            throw new DeploymentTargetException(t);
        }
View Full Code Here

TOP

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

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.