1 23 24 package com.sun.enterprise.deployment.client; 25 26 import java.util.Map ; 27 import java.net.URL ; 28 import java.io.File ; 29 import java.io.IOException ; 30 import com.sun.enterprise.deployment.deploy.shared.Archive; 31 32 import javax.enterprise.deploy.spi.status.ProgressObject ; 33 import javax.enterprise.deploy.spi.Target ; 34 import javax.enterprise.deploy.spi.TargetModuleID ; 35 36 import com.sun.enterprise.deployment.backend.DeploymentStatus; 37 38 46 public interface DeploymentFacility { 47 48 final static String STUBS_JARFILENAME = "clientstubs.jar"; 49 50 54 public boolean connect(ServerConnectionIdentifier targetDAS); 55 56 60 public boolean isConnected(); 61 62 66 public boolean disconnect(); 67 68 83 public JESProgressObject deploy(Target [] targets, Archive source, 84 Archive deploymentPlan, Map deploymentOptions); 85 86 91 public JESProgressObject undeploy(Target [] targets, String moduleID); 93 94 public JESProgressObject undeploy(Target [] targets, String moduleID, Map options); 95 96 99 public JESProgressObject enable(Target [] targets, String moduleID); 100 101 104 public JESProgressObject disable(Target [] targets, String moduleID); 105 106 109 public JESProgressObject createAppRef(Target [] targets, String moduleID, Map options); 110 111 114 public JESProgressObject deleteAppRef(Target [] targets, String moduleID, Map options); 115 116 119 public TargetModuleID [] listAppRefs(String [] targets) throws IOException ; 120 121 136 public String downloadFile(File location, String moduleID, 137 String moduleURI) throws IOException ; 138 139 146 public DeploymentStatus waitFor(JESProgressObject po); 147 148 public Target [] createTargets(String [] targets ); 149 150 } 151 | Popular Tags |