Java Doc for ServiceManager.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » service » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.service 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas.service.ServiceManager

ServiceManager
public class ServiceManager (Code)
This class implements a manager of org.objectweb.jonas.service.Service for JOnAS. The services are defined in the jonas.properties files - 'jonas.services' property defines the list of the services, - for each service - 'jonas.service..class' property defines the class of the implementation of the service, - 'jonas.service..XXXX' properties define the configuration of the service
author:
   Helene Joanin
author:
   Contributor(s):
author:
   01/06/15: Regis Le Brettevillois - Libelis
author:
   02/06 : Florent Benoit & Ludovic Bert : Ear service/Web Container service
author:
   Philippe Durieux
author:
   03/01/14 Adriana Danes : pass the entire property name (jonas.service..XXXX)
author:
   in the configuration context at service creation time


Field Summary
final static  StringPREFIX_SERVICE_PROP_NAME
    
final static  StringSERVICES_PROP_NAME
    


Method Summary
protected  ContextcreateServiceContextFor(String serviceName)
     Creates and returns the context for the configuration of the service which have the given name. (Uses the 'jonas.service..XXXX' properties for that)
Parameters:
  serviceName - the name of the service to obtain the configuration.
protected  ServicecreateServiceFrom(String serviceName)
     Creates and returns the service which have the given name. (Uses the 'jonas.service..class' property for that)
Parameters:
  serviceName - the name of the service to instanciate.
public  ServicegetDataBaseService()
    
public  ServicegetDiscoveryService()
    
public  ServicegetEarService()
    
public  ServicegetEjbService()
    
public static  ServiceManagergetInstance()
     Get the unique instance.
public  ServicegetJmsService()
    
public  ServicegetJmxService()
    
public  ServicegetMailService()
     Return the mail service (service's name: 'mail').
public  ServicegetRarService()
    
public  ServicegetRegistryService()
    
public  ServicegetResourceService()
    
public  ServicegetSecurityService()
    
public  ServicegetService(String name)
    
public  String[]getServiceNames()
     return the list of services + registry if needed.
public  Service[]getServices()
    
public  ServicegetTransactionService()
    
public  ServicegetWebContainerService()
     Return the web service (service's name: 'web').
public  ServicegetWebServicesService()
     Return the WebServices service (service's name: 'ws').
protected  voidreadServices()
     For each service, create it and its associated configuration context.
public  voidstartJmx(String idMBeanServer)
    
public  voidstartRegistry()
    
public  voidstartServices()
     Starts the managed services.
public  voidstopServices()
     Management Method: Stop all services.

Field Detail
PREFIX_SERVICE_PROP_NAME
final static String PREFIX_SERVICE_PROP_NAME(Code)
A JOnAS service



SERVICES_PROP_NAME
final static String SERVICES_PROP_NAME(Code)
Services of JOnAS





Method Detail
createServiceContextFor
protected Context createServiceContextFor(String serviceName) throws NamingException(Code)
Creates and returns the context for the configuration of the service which have the given name. (Uses the 'jonas.service..XXXX' properties for that)
Parameters:
  serviceName - the name of the service to obtain the configuration. Context the context for the service.
throws:
  NamingException - if the context can't be built.



createServiceFrom
protected Service createServiceFrom(String serviceName) throws ServiceException(Code)
Creates and returns the service which have the given name. (Uses the 'jonas.service..class' property for that)
Parameters:
  serviceName - the name of the service to instanciate. Service the instance of the service.
throws:
  ServiceException - if the service can't be created.



getDataBaseService
public Service getDataBaseService() throws ServiceException(Code)
Return the DataBase service (service's name: 'dbm') the DBM service.
throws:
  ServiceException - if can not get the dbm service.



getDiscoveryService
public Service getDiscoveryService() throws ServiceException(Code)
Return the discovery service (service's name: 'discovery') the discovery service.
throws:
  ServiceException - if can not get the discovery service.



getEarService
public Service getEarService() throws ServiceException(Code)
Return the Ear service (service's name: 'ear') the EAR service.
throws:
  ServiceException - if can not get the ear service.



getEjbService
public Service getEjbService() throws ServiceException(Code)
Return the EJB service (service's name: 'ejb') the EJB service.
throws:
  ServiceException - if can not get the ejb service.



getInstance
public static ServiceManager getInstance()(Code)
Get the unique instance. Create it at first call. ServiceManager the unique instance
throws:
  Exception - if the ServiceManager can't be built.



getJmsService
public Service getJmsService() throws ServiceException(Code)
Return the JMS service (service's name: 'jms') the JMS service.
throws:
  ServiceException - if can not get the jms service.



getJmxService
public Service getJmxService() throws ServiceException(Code)
Return the JMX service (service's name: 'jmx') the JMX service.
throws:
  ServiceException - if can not get the jmx service.



getMailService
public Service getMailService() throws ServiceException(Code)
Return the mail service (service's name: 'mail'). the mail service.
throws:
  ServiceException - if can not get the mail service.



getRarService
public Service getRarService() throws ServiceException(Code)
Return the Rar service (service's name: 'resource') the RAR service.
throws:
  ServiceException - if can not get the rar service.



getRegistryService
public Service getRegistryService() throws ServiceException(Code)
Return the Registry service (service's name: 'registry') the Registry service.
throws:
  ServiceException - if can not get the registry service.



getResourceService
public Service getResourceService() throws ServiceException(Code)
Return the Resource service (service's name: 'resource') the Resource service.
throws:
  ServiceException - if can not get the resource service.



getSecurityService
public Service getSecurityService() throws ServiceException(Code)
Return the Security service (service's name: 'security') the Security service.
throws:
  ServiceException - if can not get the security service.



getService
public Service getService(String name) throws ServiceException(Code)
Get the service which have the given name
Parameters:
  name - the given name the service which have the given name
throws:
  ServiceException - if the service can't be retrieved.



getServiceNames
public String[] getServiceNames()(Code)
return the list of services + registry if needed. String[] the name of the services.



getServices
public Service[] getServices() throws ServiceException(Code)
Returns the list of the managed services String[] the name of the managed services.
throws:
  ServiceException - if the list can't be retrieved.



getTransactionService
public Service getTransactionService() throws ServiceException(Code)
Return the Transaction service (service's name: 'jtm') the JTM service.
throws:
  ServiceException - if can not get the jtm service.



getWebContainerService
public Service getWebContainerService() throws ServiceException(Code)
Return the web service (service's name: 'web'). the web service.
throws:
  ServiceException - if can not get the web service.



getWebServicesService
public Service getWebServicesService() throws ServiceException(Code)
Return the WebServices service (service's name: 'ws'). the WebServices service.
throws:
  ServiceException - if can not get the WebServices service.



readServices
protected void readServices() throws ServiceException(Code)
For each service, create it and its associated configuration context. (creates services, contextsByService and servicesByName)
throws:
  ServiceException - if the services can't be read.



startJmx
public void startJmx(String idMBeanServer) throws ServiceException(Code)
Start the jmx service
throws:
  ServiceException - if the jmx service can't be started.



startRegistry
public void startRegistry() throws ServiceException(Code)
Start the mandatory "registry" service
throws:
  ServiceException - if the "registry" service can't be started.



startServices
public void startServices() throws ServiceException(Code)
Starts the managed services.
throws:
  ServiceException - if the services can't be started.



stopServices
public void stopServices() throws ServiceException(Code)
Management Method: Stop all services. The services are stopped in the reverse order of their starting. (Continue the processing of stopping for the others services, even if there is a problem for one service.)
throws:
  ServiceException - if the service can't be stopped.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.