| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.MainDeployer
The main/primary component for deployment.
MainDeployerMBean is generated by xdoclet.
| Field Summary | 
| Fields inherited from class org.jboss.system.ServiceMBeanSupport | 
log, server, SERVICE_CONTROLLER_SIG, serviceName | 
| Fields inherited from interface org.jboss.deployment.MainDeployerMBean | 
OBJECT_NAME | 
| Fields inherited from interface org.jboss.system.ServiceMBean | 
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED | 
| Fields inherited from interface org.jboss.deployment.MainDeployerConstants | 
ADD_DEPLOYER, REMOVE_DEPLOYER | 
| Constructor Summary | |
MainDeployer()
Explict no-args contsructor for JMX.  | 
|
| Method Summary | |
 void | 
addDeployer(SubDeployer deployer)
The addDeployer method registers a deployer with the main deployer. | 
 void | 
checkIncompleteDeployments()
Check the current deployment states and generate a IncompleteDeploymentException if there are mbeans waiting for depedencies.  | 
protected  void | 
copy(URL src,
     File dest)
 | 
protected  void | 
createService()
The createService method is one of the ServiceMBean lifecyle operations. | 
 void | 
deploy(DeploymentInfo deployment)
The deploy method deploys a package represented by a DeploymentInfo object. | 
 void | 
deploy(String urlspec)
The deploy method deploys a package identified by a
 string representation of a URL. | 
 void | 
deploy(URL url)
The deploy method deploys a package identified by a URL | 
 boolean | 
getCopyFiles()
Get the flag indicating whether directory content will be deployed  | 
 DeploymentInfo | 
getDeployment(URL url)
The getDeployment method returns the DeploymentInfo
 object for the URL supplied. | 
 String[] | 
getEnhancedSuffixOrder()
Get the enhanced suffix order  | 
protected  javax.management.ObjectName | 
getObjectName(javax.management.MBeanServer server,
              javax.management.ObjectName name)
Sub-classes should override this method if they only need to set their object name during MBean pre-registration.  | 
 String[] | 
getSuffixOrder()
Get the ordering of the deployment suffixes  | 
 File | 
getTempDir()
Get the temp directory  | 
 String | 
getTempDirString()
Get the temp directory  | 
 URL | 
getWatchUrl(URL url)
The getWatchUrl method returns the URL that, when modified,
 indicates that a redeploy is needed. | 
 boolean | 
isDeployed(String url)
The isDeployed method tells you if a package identified by a string
 representation of a URL is currently deployed. | 
 boolean | 
isDeployed(URL url)
The isDeployed method tells you if a packaged identified by
 a URL is deployed. | 
 Collection | 
listDeployed()
The listDeployed method returns a collection of DeploymemtInfo
 objects for the currently deployed packages. | 
 String | 
listDeployedAsString()
Describe listDeployedAsString method here. | 
 Collection | 
listDeployedModules()
The listDeployedModules method returns a collection of SerializableDeploymentInfo
 objects for the currently deployed packages. | 
 Collection | 
listDeployers()
The listDeployers method returns a collection of ObjectNames of
 deployers registered with the MainDeployer. | 
 Collection | 
listIncompletelyDeployed()
The listIncompletelyDeployed method returns a list of packages that have
 not deployed completely. | 
 Collection | 
listWaitingForDeployer()
The listWaitingForDeployer method returns a collection
 of the packages that currently have no identified deployer. | 
 void | 
redeploy(DeploymentInfo sdi)
Describe redeploy method here. | 
 void | 
redeploy(String urlspec)
Describe redeploy method here. | 
 void | 
redeploy(URL url)
Describe redeploy method here. | 
 void | 
removeDeployer(SubDeployer deployer)
The removeDeployer method unregisters a deployer with the MainDeployer. | 
 void | 
setCopyFiles(boolean copyFiles)
Set the flag indicating whether directory content will be deployed.  | 
 void | 
setEnhancedSuffixOrder(String[] enhancedSuffixOrder)
Set the enhanced suffix order  | 
 void | 
setServiceController(javax.management.ObjectName serviceController)
Describe setServiceController method here. | 
 void | 
setTempDir(File tempDir)
Set the temp directory  | 
 void | 
shutdown()
The shutdown method undeploys all deployed packages in
 reverse order of their deployement. | 
 void | 
undeploy(DeploymentInfo di)
The undeploy method undeploys a package represented by a
 DeploymentInfo object. | 
protected  void | 
undeploy(DeploymentInfo di,
         boolean isShutdown)
 | 
 void | 
undeploy(String urlspec)
The undeploy method undeploys a package identified by a string
 representation of a URL. | 
 void | 
undeploy(URL url)
The undeploy method  undeploys a package identified by a URL | 
| Methods inherited from class org.jboss.system.ServiceMBeanSupport | 
create, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService | 
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport | 
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.jboss.system.ServiceMBean | 
getName, getState, getStateString, jbossInternalLifecycle | 
| Methods inherited from interface org.jboss.system.Service | 
create, destroy, start, stop | 
| Constructor Detail | 
public MainDeployer()
| Method Detail | 
public boolean getCopyFiles()
getCopyFiles in interface MainDeployerMBeanpublic void setCopyFiles(boolean copyFiles)
setCopyFiles in interface MainDeployerMBeancopyFiles - the local copy flag valuepublic File getTempDir()
getTempDir in interface MainDeployerMBeanpublic void setTempDir(File tempDir)
setTempDir in interface MainDeployerMBeantempDir - the path to the local tmp directorypublic String getTempDirString()
getTempDirString in interface MainDeployerMBeanpublic String[] getSuffixOrder()
getSuffixOrder in interface MainDeployerMBeanpublic String[] getEnhancedSuffixOrder()
getEnhancedSuffixOrder in interface MainDeployerMBeanpublic void setEnhancedSuffixOrder(String[] enhancedSuffixOrder)
setEnhancedSuffixOrder in interface MainDeployerMBeanenhancedSuffixOrder - the enhanced suffix orderpublic void setServiceController(javax.management.ObjectName serviceController)
setServiceController method here.
setServiceController in interface MainDeployerMBeanserviceController - an ObjectName valuepublic Collection listDeployed()
listDeployed method returns a collection of DeploymemtInfo
 objects for the currently deployed packages.
listDeployed in interface MainDeployerMBeanCollection valuepublic Collection listDeployedModules()
listDeployedModules method returns a collection of SerializableDeploymentInfo
 objects for the currently deployed packages.
listDeployedModules in interface MainDeployerMBeanCollection valuepublic String listDeployedAsString()
listDeployedAsString method here.
listDeployedAsString in interface MainDeployerMBeanString valuepublic Collection listIncompletelyDeployed()
listIncompletelyDeployed method returns a list of packages that have
 not deployed completely. The toString method will include any exception in the status
 field.
listIncompletelyDeployed in interface MainDeployerMBeanCollection valuepublic Collection listWaitingForDeployer()
listWaitingForDeployer method returns a collection
 of the packages that currently have no identified deployer.
listWaitingForDeployer in interface MainDeployerMBeanCollection valuepublic void addDeployer(SubDeployer deployer)
addDeployer method registers a deployer with the main deployer.
 Any waiting packages are tested to see if the new deployer will deploy them.
addDeployer in interface MainDeployerMBeandeployer - a SubDeployer valuepublic void removeDeployer(SubDeployer deployer)
removeDeployer method unregisters a deployer with the MainDeployer.
 Deployed packages deployed with this deployer are undeployed.
removeDeployer in interface MainDeployerMBeandeployer - a SubDeployer valuepublic Collection listDeployers()
listDeployers method returns a collection of ObjectNames of
 deployers registered with the MainDeployer.
listDeployers in interface MainDeployerMBeanCollection value
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
ServiceMBeanSupport
getObjectName in class ServiceMBeanSupportjavax.management.MalformedObjectNameException
protected void createService()
                      throws Exception
createService method is one of the ServiceMBean lifecyle operations.
 (no jmx tag needed from superinterface)
createService in class ServiceMBeanSupportException - if an error occurspublic void shutdown()
shutdown method undeploys all deployed packages in
 reverse order of their deployement.
shutdown in interface MainDeployerMBeanpublic void redeploy(String urlspec) throws DeploymentException, MalformedURLException
redeploy method here.
redeploy in interface MainDeployerMBeanurlspec - a String value
DeploymentException - if an error occurs
MalformedURLException - if an error occurspublic void redeploy(URL url) throws DeploymentException
redeploy method here.
redeploy in interface MainDeployerMBeanurl - an URL value
DeploymentException - if an error occurspublic void redeploy(DeploymentInfo sdi) throws DeploymentException
redeploy method here.
redeploy in interface MainDeployerMBeansdi - a DeploymentInfo value
DeploymentException - if an error occurspublic void undeploy(URL url) throws DeploymentException
undeploy method  undeploys a package identified by a URL
url - an URL value
DeploymentException - Failed to undeploy URL.public void undeploy(String urlspec) throws DeploymentException, MalformedURLException
undeploy method undeploys a package identified by a string
 representation of a URL.
undeploy in interface MainDeployerMBeanurlspec - a String value
MalformedURLException - if an error occurs
DeploymentExceptionpublic void undeploy(DeploymentInfo di)
undeploy method undeploys a package represented by a
 DeploymentInfo object.
undeploy in interface MainDeployerMBeandi - a DeploymentInfo valueprotected void undeploy(DeploymentInfo di, boolean isShutdown)
public void deploy(String urlspec) throws DeploymentException, MalformedURLException
deploy method deploys a package identified by a
 string representation of a URL.
deploy in interface MainDeployerMBeanurlspec - a String value
MalformedURLException - if an error occurs
DeploymentExceptionpublic void deploy(URL url) throws DeploymentException
deploy method deploys a package identified by a URL
url - an URL value
DeploymentException - Failed to deploy URL.public void deploy(DeploymentInfo deployment) throws DeploymentException
deploy method deploys a package represented by a DeploymentInfo object.
deploy in interface MainDeployerMBeandeployment - a DeploymentInfo value
DeploymentException - if an error occursprotected void copy(URL src, File dest) throws IOException
IOExceptionpublic boolean isDeployed(String url) throws MalformedURLException
isDeployed method tells you if a package identified by a string
 representation of a URL is currently deployed.
isDeployed in interface MainDeployerMBeanurl - a String value
boolean value
MalformedURLException - if an error occurspublic boolean isDeployed(URL url)
isDeployed method tells you if a packaged identified by
 a URL is deployed.
isDeployed in interface Deployerurl - an URL value
boolean valuepublic DeploymentInfo getDeployment(URL url)
getDeployment method returns the DeploymentInfo
 object for the URL supplied.
getDeployment in interface MainDeployerMBeanurl - an URL value
DeploymentInfo valuepublic URL getWatchUrl(URL url)
getWatchUrl method returns the URL that, when modified,
 indicates that a redeploy is needed.
getWatchUrl in interface MainDeployerMBeanurl - an URL value
URL value
public void checkIncompleteDeployments()
                                throws DeploymentException
checkIncompleteDeployments in interface MainDeployerMBean
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||