<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE mbean PUBLIC
   "-//JBoss//DTD JBOSS XMBEAN 1.1//EN"
   "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_1.dtd">

<!-- $Id: org.jboss.deployment.MainDeployer-xmbean.xml 46368 2006-07-18 15:59:06Z dimitris $ -->

<!-- The MainDeployer XMBean descriptor -->
<mbean>
   <description>The Main deployer is the service which acts as the entry
       point for the deployment/undeployment requests.
   </description>
   <class>org.jboss.deployment.MainDeployer</class>

   <attribute access='read-write' setMethod='setCopyFiles' getMethod='getCopyFiles'>
      <description></description>
      <name>CopyFiles</name>
      <type>boolean</type>
      <descriptors>
         <value value="true"/>
      </descriptors>
   </attribute>
   <attribute access='write-only' setMethod='setServiceController'>
      <description></description>
      <name>ServiceController</name>
      <type>javax.management.ObjectName</type>
   </attribute>
   <attribute access='read-only' getMethod='getServiceName'>
      <description></description>
      <name>ServiceName</name>
      <type>javax.management.ObjectName</type>
   </attribute>
   <attribute access='read-only' getMethod='getSuffixOrder'>
      <description>The suffix order used when sorting deployments, constructed dynamically by registering deployers</description>
      <name>SuffixOrder</name>
      <type>[Ljava.lang.String;</type>
   </attribute>
   <attribute access='read-write' setMethod='setEnhancedSuffixOrder' getMethod='getEnhancedSuffixOrder'>
      <description>Allows the override of the suffix order declared by subdeployers, using the syntax [order:]suffix
      </description>
      <name>EnhancedSuffixOrder</name>
      <type>[Ljava.lang.String;</type>
      <!--
         Statically set one or more enhanced suffix orders, independent of the value proposed by subdeployers.
         Some deployers may also allow the suffixes/orders to be set locally, so that's preferable too.
         For reference, this is the list of enhanced suffixes likely to be set by deployers (it may not
         be completely up-to-date, or there can be user-defined deployers).
         
         050:.deployer,050:-deployer.xml,100:.aop,100:-aop.xml,150:.sar,150:-service.xml,200:.beans,250:.rar,300:-ds.xml,350:.har,400:.jar,400:.ejb3,400:.par,500:.war,600:.wsr,650:.ear,700:.jar,750:.zip,800:.bsh,900:.last
         
         Until we resolve some startup issues, we'll setup some static enhanced suffix orders bellow
         and leave the rest of the suffixes contributed dynamically by registering deployers.
      -->
      <descriptors>
         <value value="250:.rar,300:-ds.xml,400:.jar,500:.war,550:.jse,650:.ear,800:.bsh"/>
      </descriptors>
   </attribute>
   <attribute access='read-write' setMethod='setTempDir' getMethod='getTempDir'>
      <description></description>
      <name>TempDir</name>
      <type>java.io.File</type>
   </attribute>
   <attribute access='read-only' getMethod='getTempDirString'>
      <description></description>
      <name>TempDirString</name>
      <type>java.lang.String</type>
   </attribute>
   
   &defaultAttributes;

   <operation>
      <description></description>
      <name>addDeployer</name>
      <parameter>
         <name>deployer</name>
         <type>org.jboss.deployment.SubDeployer</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>removeDeployer</name>
      <parameter>
         <name>deployer</name>
         <type>org.jboss.deployment.SubDeployer</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>deploy</name>
      <parameter>
         <name>url</name>
         <type>java.lang.String</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>   
      <name>deploy</name>
      <parameter>
         <name>url</name>
         <type>java.net.URL</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>deploy</name>
      <parameter>
         <name>sdi</name>
         <type>org.jboss.deployment.DeploymentInfo</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description>starts a package identified by a URL</description>
      <name>start</name>
      <parameter>
         <name>urlspec</name>
         <type>java.lang.String</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description>stops a package identified by a URL</description>
      <name>stop</name>
      <parameter>
         <name>urlspec</name>
         <type>java.lang.String</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>getDeployment</name>
      <parameter>
         <name>url</name>
         <type>java.net.URL</type>
      </parameter>
      <return-type>org.jboss.deployment.DeploymentInfo</return-type>
   </operation>
   <operation>
      <description></description>
      <name>getWatchUrl</name>
      <parameter>
         <name>url</name>
         <type>java.net.URL</type>
      </parameter>
      <return-type>java.net.URL</return-type>
   </operation>
   <operation>
      <description></description>
      <name>isDeployed</name>
      <parameter>
         <name>url</name>
         <type>java.net.URL</type>
      </parameter>
      <return-type>boolean</return-type>
   </operation>
   <operation>
      <description></description>
      <name>isDeployed</name>
      <parameter>
         <name>url</name>
         <type>java.lang.String</type>
      </parameter>
      <return-type>boolean</return-type>
   </operation>
   <operation>
      <description></description>
      <name>listDeployed</name>
      <return-type>java.util.Collection</return-type>
   </operation>
   <operation>
      <description></description>
      <name>listDeployedAsString</name>
      <return-type>java.lang.String</return-type>
   </operation>
   <operation>
      <description></description>
      <name>listDeployedModules</name>
      <return-type>java.util.Collection</return-type>
   </operation>
   <operation>
      <description></description>
      <name>listDeployers</name>
      <return-type>java.util.Collection</return-type>
   </operation>
   <operation>
      <description>Check the current deployment states and generate a
      IncompleteDeploymentException if there are mbeans waiting for depedencies.
      </description>
      <name>checkIncompleteDeployments</name>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>listIncompletelyDeployed</name>
      <return-type>java.util.Collection</return-type>
   </operation>
   <operation>
      <description></description>
      <name>listWaitingForDeployer</name>
      <return-type>java.util.Collection</return-type>
   </operation>
   <operation>
      <description></description>
      <name>redeploy</name>
      <parameter>
         <name>url</name>
         <type>java.lang.String</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>redeploy</name>
      <parameter>
         <name>url</name>
         <type>java.net.URL</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>redeploy</name>
      <parameter>
         <name>sdi</name>
         <type>org.jboss.deployment.DeploymentInfo</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>shutdown</name>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>undeploy</name>
      <parameter>
         <name>url</name>
         <type>java.lang.String</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>undeploy</name>
      <parameter>
         <name>url</name>
         <type>java.net.URL</type>
      </parameter>
      <return-type>void</return-type>
   </operation>
   <operation>
      <description></description>
      <name>undeploy</name>
      <parameter>
         <name>sdi</name>
         <type>org.jboss.deployment.DeploymentInfo</type>
      </parameter>
      <return-type>void</return-type>
   </operation>

   &defaultOperations;
   
</mbean>