Java Doc for MainDeployer.java in  » EJB-Server-JBoss-4.2.1 » system » org » jboss » deployment » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » system » org.jboss.deployment 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.system.ServiceMBeanSupport
   org.jboss.deployment.MainDeployer

MainDeployer
public class MainDeployer extends ServiceMBeanSupport implements Deployer,MainDeployerMBean(Code)
The main/primary component for deployment.

MainDeployerMBean is generated by xdoclet.
author:
   Marc Fleury
author:
   Scott Stark
author:
   David Jencks
author:
   Dimitris Andreadis
version:
   $Revision: 62368 $




Constructor Summary
public  MainDeployer()
     Explict no-args contsructor for JMX.

Method Summary
public  voidaddDeployer(SubDeployer deployer)
     The addDeployer method registers a deployer with the main deployer.
public  voidcheckIncompleteDeployments()
     Check the current deployment states and generate a IncompleteDeploymentException if there are mbeans waiting for depedencies.
protected  voidcopy(URL src, File dest)
    
protected  voidcreateService()
     The createService method is one of the ServiceMBean lifecyle operations.
public  voiddeploy(String urlspec)
     The deploy method deploys a package identified by a string representation of a URL.
public  voiddeploy(URL url)
    
public  voiddeploy(DeploymentInfo deployment)
     The deploy method deploys a package represented by a DeploymentInfo object.
public  booleangetCopyFiles()
    
public  DeploymentInfogetDeployment(URL url)
     The getDeployment method returns the DeploymentInfo object for the URL supplied.
public  String[]getEnhancedSuffixOrder()
    
protected  ObjectNamegetObjectName(MBeanServer server, ObjectName name)
    
public  String[]getSuffixOrder()
    
public  FilegetTempDir()
    
public  StringgetTempDirString()
    
public  URLgetWatchUrl(URL url)
     The getWatchUrl method returns the URL that, when modified, indicates that a redeploy is needed.
public  booleanisDeployed(String url)
     The isDeployed method tells you if a package identified by a string representation of a URL is currently deployed.
public  booleanisDeployed(URL url)
     The isDeployed method tells you if a packaged identified by a URL is deployed.
public  CollectionlistDeployed()
     The listDeployed method returns a collection of DeploymemtInfo objects for the currently deployed packages.
public  StringlistDeployedAsString()
     Describe listDeployedAsString method here.
public  CollectionlistDeployedModules()
     The listDeployedModules method returns a collection of SerializableDeploymentInfo objects for the currently deployed packages.
public  CollectionlistDeployers()
     The listDeployers method returns a collection of ObjectNames of deployers registered with the MainDeployer.
public  CollectionlistIncompletelyDeployed()
     The listIncompletelyDeployed method returns a list of packages that have not deployed completely.
public  CollectionlistWaitingForDeployer()
     The listWaitingForDeployer method returns a collection of the packages that currently have no identified deployer.
public  voidredeploy(String urlspec)
     Describe redeploy method here.
public  voidredeploy(URL url)
     Describe redeploy method here.
public  voidredeploy(DeploymentInfo sdi)
     Describe redeploy method here.
public  voidremoveDeployer(SubDeployer deployer)
     The removeDeployer method unregisters a deployer with the MainDeployer.
public  voidsetCopyFiles(boolean copyFiles)
     Set the flag indicating whether directory content will be deployed.
public  voidsetEnhancedSuffixOrder(String[] enhancedSuffixOrder)
    
public  voidsetServiceController(ObjectName serviceController)
     Describe setServiceController method here.
public  voidsetTempDir(File tempDir)
    
public  voidshutdown()
     The shutdown method undeploys all deployed packages in reverse order of their deployement.
public  voidstart(String urlspec)
    
public  voidstop(String urlspec)
    
public  voidundeploy(String urlspec)
     The undeploy method undeploys a package identified by a string representation of a URL.
public  voidundeploy(URL url)
    
public  voidundeploy(DeploymentInfo di)
     The undeploy method undeploys a package represented by a DeploymentInfo object.
protected  voidundeploy(DeploymentInfo di, boolean isShutdown)
    


Constructor Detail
MainDeployer
public MainDeployer()(Code)
Explict no-args contsructor for JMX.




Method Detail
addDeployer
public void addDeployer(SubDeployer deployer)(Code)
The addDeployer method registers a deployer with the main deployer. Any waiting packages are tested to see if the new deployer will deploy them.
Parameters:
  deployer - a SubDeployer value



checkIncompleteDeployments
public void checkIncompleteDeployments() throws DeploymentException(Code)
Check the current deployment states and generate a IncompleteDeploymentException if there are mbeans waiting for depedencies.
exception:
  IncompleteDeploymentException -



copy
protected void copy(URL src, File dest) throws IOException(Code)



createService
protected void createService() throws Exception(Code)
The createService method is one of the ServiceMBean lifecyle operations. (no jmx tag needed from superinterface)
exception:
  Exception - if an error occurs



deploy
public void deploy(String urlspec) throws DeploymentException, MalformedURLException(Code)
The deploy method deploys a package identified by a string representation of a URL.
Parameters:
  urlspec - a String value
exception:
  MalformedURLException - if an error occurs



deploy
public void deploy(URL url) throws DeploymentException(Code)
The deploy method deploys a package identified by a URL
Parameters:
  url - an URL value



deploy
public void deploy(DeploymentInfo deployment) throws DeploymentException(Code)
The deploy method deploys a package represented by a DeploymentInfo object.
Parameters:
  deployment - a DeploymentInfo value
exception:
  DeploymentException - if an error occurs



getCopyFiles
public boolean getCopyFiles()(Code)
Get the flag indicating whether directory content will be deployed the file copy flag



getDeployment
public DeploymentInfo getDeployment(URL url)(Code)
The getDeployment method returns the DeploymentInfo object for the URL supplied.
Parameters:
  url - an URL value a DeploymentInfo value



getEnhancedSuffixOrder
public String[] getEnhancedSuffixOrder()(Code)
Get the enhanced suffix order the enhanced suffix order



getObjectName
protected ObjectName getObjectName(MBeanServer server, ObjectName name) throws MalformedObjectNameException(Code)



getSuffixOrder
public String[] getSuffixOrder()(Code)
Get the ordering of the deployment suffixes the ordering of the deployment suffixes



getTempDir
public File getTempDir()(Code)
Get the temp directory the path to the local tmp directory



getTempDirString
public String getTempDirString()(Code)
Get the temp directory the path to the local tmp directory



getWatchUrl
public URL getWatchUrl(URL url)(Code)
The getWatchUrl method returns the URL that, when modified, indicates that a redeploy is needed.
Parameters:
  url - an URL value a URL value



isDeployed
public boolean isDeployed(String url) throws MalformedURLException(Code)
The isDeployed method tells you if a package identified by a string representation of a URL is currently deployed.
Parameters:
  url - a String value a boolean value
exception:
  MalformedURLException - if an error occurs



isDeployed
public boolean isDeployed(URL url)(Code)
The isDeployed method tells you if a packaged identified by a URL is deployed.
Parameters:
  url - an URL value a boolean value



listDeployed
public Collection listDeployed()(Code)
The listDeployed method returns a collection of DeploymemtInfo objects for the currently deployed packages. a Collection value



listDeployedAsString
public String listDeployedAsString()(Code)
Describe listDeployedAsString method here. a String value



listDeployedModules
public Collection listDeployedModules()(Code)
The listDeployedModules method returns a collection of SerializableDeploymentInfo objects for the currently deployed packages. a Collection value



listDeployers
public Collection listDeployers()(Code)
The listDeployers method returns a collection of ObjectNames of deployers registered with the MainDeployer. a Collection value



listIncompletelyDeployed
public Collection listIncompletelyDeployed()(Code)
The listIncompletelyDeployed method returns a list of packages that have not deployed completely. The toString method will include any exception in the status field. a Collection value



listWaitingForDeployer
public Collection listWaitingForDeployer()(Code)
The listWaitingForDeployer method returns a collection of the packages that currently have no identified deployer. a Collection value



redeploy
public void redeploy(String urlspec) throws DeploymentException, MalformedURLException(Code)
Describe redeploy method here.
Parameters:
  urlspec - a String value
exception:
  DeploymentException - if an error occurs
exception:
  MalformedURLException - if an error occurs



redeploy
public void redeploy(URL url) throws DeploymentException(Code)
Describe redeploy method here.
Parameters:
  url - an URL value
exception:
  DeploymentException - if an error occurs



redeploy
public void redeploy(DeploymentInfo sdi) throws DeploymentException(Code)
Describe redeploy method here.
Parameters:
  sdi - a DeploymentInfo value
exception:
  DeploymentException - if an error occurs



removeDeployer
public void removeDeployer(SubDeployer deployer)(Code)
The removeDeployer method unregisters a deployer with the MainDeployer. Deployed packages deployed with this deployer are undeployed.
Parameters:
  deployer - a SubDeployer value



setCopyFiles
public void setCopyFiles(boolean copyFiles)(Code)
Set the flag indicating whether directory content will be deployed. The default value is taken from the jboss.deploy.localcopy system property.
Parameters:
  copyFiles - the local copy flag value



setEnhancedSuffixOrder
public void setEnhancedSuffixOrder(String[] enhancedSuffixOrder)(Code)
Set the enhanced suffix order
Parameters:
  enhancedSuffixOrder - the enhanced suffix order



setServiceController
public void setServiceController(ObjectName serviceController)(Code)
Describe setServiceController method here.
Parameters:
  serviceController - an ObjectName value



setTempDir
public void setTempDir(File tempDir)(Code)
Set the temp directory
Parameters:
  tempDir - the path to the local tmp directory



shutdown
public void shutdown()(Code)
The shutdown method undeploys all deployed packages in reverse order of their deployement.



start
public void start(String urlspec) throws DeploymentException, MalformedURLException(Code)
The start method starts a package identified by a URL
Parameters:
  urlspec - an URL value



stop
public void stop(String urlspec) throws DeploymentException, MalformedURLException(Code)
The stop method stops a package identified by a URL
Parameters:
  urlspec - an URL value



undeploy
public void undeploy(String urlspec) throws DeploymentException, MalformedURLException(Code)
The undeploy method undeploys a package identified by a string representation of a URL.
Parameters:
  urlspec - the stringfied url to undeploy



undeploy
public void undeploy(URL url) throws DeploymentException(Code)
The undeploy method undeploys a package identified by a URL
Parameters:
  url - the url to undeploy



undeploy
public void undeploy(DeploymentInfo di)(Code)
The undeploy method undeploys a package represented by a DeploymentInfo object.
Parameters:
  di - a DeploymentInfo value



undeploy
protected void undeploy(DeploymentInfo di, boolean isShutdown)(Code)



Fields inherited from org.jboss.system.ServiceMBeanSupport
final public static String[] SERVICE_CONTROLLER_SIG(Code)(Java Doc)
protected Logger log(Code)(Java Doc)
protected MBeanServer server(Code)(Java Doc)
protected ObjectName serviceName(Code)(Java Doc)

Methods inherited from org.jboss.system.ServiceMBeanSupport
public void create() throws Exception(Code)(Java Doc)
protected void createService() throws Exception(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
protected void destroyService() throws Exception(Code)(Java Doc)
public DeploymentInfo getDeploymentInfo() throws JMException(Code)(Java Doc)
public Logger getLog()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected long getNextNotificationSequenceNumber()(Code)(Java Doc)
protected ObjectName getObjectName(MBeanServer server, ObjectName name) throws MalformedObjectNameException(Code)(Java Doc)
public MBeanServer getServer()(Code)(Java Doc)
public ObjectName getServiceName()(Code)(Java Doc)
public int getState()(Code)(Java Doc)
public String getStateString()(Code)(Java Doc)
protected void jbossInternalCreate() throws Exception(Code)(Java Doc)
protected String jbossInternalDescription()(Code)(Java Doc)
protected void jbossInternalDestroy()(Code)(Java Doc)
public void jbossInternalLifecycle(String method) throws Exception(Code)(Java Doc)
protected void jbossInternalStart() throws Exception(Code)(Java Doc)
protected void jbossInternalStop()(Code)(Java Doc)
public void postDeregister()(Code)(Java Doc)
public void postRegister(Boolean registrationDone)(Code)(Java Doc)
public void preDeregister() throws Exception(Code)(Java Doc)
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc)
public void start() throws Exception(Code)(Java Doc)
protected void startService() throws Exception(Code)(Java Doc)
public void stop()(Code)(Java Doc)
protected void stopService() throws Exception(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.