1 22 package org.jboss.deployment; 23 24 import java.io.File ; 25 import java.net.MalformedURLException ; 26 import java.net.URL ; 27 import java.util.Collection ; 28 29 import javax.management.ObjectName ; 30 31 import org.jboss.deployers.spi.structure.DeploymentContext; 32 import org.jboss.mx.util.ObjectNameFactory; 33 import org.jboss.system.ServiceMBean; 34 35 40 public interface MainDeployerMBean extends 41 ServiceMBean, DeployerMBean, MainDeployerConstants 42 { 43 44 ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.system:service=MainDeployer"); 45 46 public org.jboss.deployers.spi.deployment.MainDeployer getKernelMainDeployer(); 48 49 public void setKernelMainDeployer(org.jboss.deployers.spi.deployment.MainDeployer delegate); 50 51 53 boolean getCopyFiles(); 54 void setCopyFiles(boolean copyFiles); 55 56 57 File getTempDir(); 58 void setTempDir(File tempDir); 59 60 61 String [] getEnhancedSuffixOrder(); 62 void setEnhancedSuffixOrder(String [] enhancedSuffixOrder); 63 64 65 void setServiceController(ObjectName serviceController); 66 67 68 String getTempDirString(); 69 70 71 String [] getSuffixOrder(); 72 73 75 80 Collection listDeployed(); 81 82 87 Collection listDeployedModules(); 88 89 93 String listDeployedAsString(); 94 95 101 Collection listIncompletelyDeployed(); 102 103 108 Collection listWaitingForDeployer(); 109 110 116 void addDeployer(SubDeployer deployer); 117 118 123 void removeDeployer(SubDeployer deployer); 124 125 130 Collection listDeployers(); 131 132 136 void shutdown(); 137 138 144 void redeploy(String urlspec) throws DeploymentException, MalformedURLException ; 145 146 151 void redeploy(URL url) throws DeploymentException; 152 153 158 void redeploy(DeploymentInfo sdi) throws DeploymentException; 159 160 164 void undeploy(URL url) throws DeploymentException; 165 166 171 void undeploy(String urlspec) throws DeploymentException, MalformedURLException ; 172 173 177 void undeploy(DeploymentInfo di); 178 179 184 void deploy(String urlspec) throws DeploymentException, MalformedURLException ; 185 186 190 void deploy(URL url) throws DeploymentException; 191 192 197 void deploy(DeploymentInfo deployment) throws DeploymentException; 198 199 204 public void start(String urlspec) throws DeploymentException, MalformedURLException ; 205 206 211 public void stop(String urlspec) throws DeploymentException, MalformedURLException ; 212 213 220 boolean isDeployed(String url) throws MalformedURLException ; 221 222 228 boolean isDeployed(URL url); 229 230 236 DeploymentContext getDeployment(URL url); 237 238 244 URL getWatchUrl(URL url); 245 246 252 void checkIncompleteDeployments() throws DeploymentException; 253 254 } 255 | Popular Tags |