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


org.objectweb.jonas.service.AbsServiceImpl
   org.objectweb.jonas.dbm.DataBaseServiceImpl

DataBaseServiceImpl
public class DataBaseServiceImpl extends AbsServiceImpl implements DataBaseService,DataBaseServiceImplMBean(Code)
DatabaseService acts as a factory for the DataSource objects. Its goal is to create such objects and to register them in JNDI
author:
   Philippe Durieux
author:
   Contributor(s):
author:
   00/18/04 Jun Inamori (j-office@osa.att.ne.jp)
author:
   New implementation of unbindDataSources for closing correctly
author:
   all connections at server shutdown.


author:
   03/01/14 Adriana Danes


author:
   Highlight Configuration properties
author:
   Change createDataSource() signature : take additional argument, the datasource name
author:
   Manage binded datasources (mapping of jndi name to datasource name)
author:
   Use datasource name for naming MBeans (instead of jndi name)
author:
   Modify MBean methods to take into account the previous points.


author:
   03/05/25 Introduce pool size configuration
author:
   04/09/20 Create JSR77 MBeans JDBCResource, JDBCDataSource JDBCDriver



Field Summary
final static  StringCLASS
    
final static  StringCLASSNAME
    
final public static  StringCONNCHECKLEVEL
    
final public static  StringCONNMAXAGE
    
final public static  StringCONNTESTSTMT
    
final static  StringDATASOURCES
    
final static  StringDEF_CLASSNAME
    
final static  StringDEF_CONNCHECKLEVEL
    
final static  StringDEF_CONNMAXAGE
    
final static  StringDEF_CONNTESTSTMT
    
final static  StringDEF_DESCRIPTION
    
final static  StringDEF_ISOLATIONLEVEL
    
final static  StringDEF_MAPPERNAME
    
final static  StringDEF_MAXCONPOOL
    
final static  StringDEF_MAXOPENTIME
    
final static  StringDEF_MAXWAITERS
    
final static  StringDEF_MAXWAITTIME
    
final static  StringDEF_MINCONPOOL
    
final static  StringDEF_PASSWORD
    
final static  StringDEF_PSTMTMAX
    
final static  StringDEF_SAMPLINGPERIOD
    
final static  StringDEF_URL
    
final static  StringDEF_USERNAME
    
final static  StringDESCRIPTION
    
final static  StringISOLATIONLEVEL
    
final public static  StringJDBCResourceName
    
final static  StringMAPPERNAME
    
final static  StringMAXCONPOOL
    
final public static  StringMAXOPENTIME
    
final static  StringMAXWAITERS
    
final static  StringMAXWAITTIME
    
final static  StringMINCONPOOL
    
final static  StringNAME
    
final static  StringPASSWORD
    
final public static  StringPSTMTMAX
    
final static  StringSAMPLINGPERIOD
    
final static  StringURL
    
final static  StringUSERNAME
    


Method Summary
public  voidcreateDataSource(String datasourceName, Properties dsd)
     Creates a ConnectionManager (implementation of sql.dataSource).
public  voiddoInit(Context ctx)
     Initialization of the DataBase service.
public  voiddoStart()
     Starting DataBase service Initialization of the service is already done.
public  voiddoStop()
    
public  ConnectionManagergetConnectionManager(String dsname)
     get ConnectionManager for the datasource having this JNDI name.
public  IntegergetCurrentNumberOfDataSource()
    
public  CollectiongetDSList()
    
public  PropertiesgetDataSourcePropertiesFile(String dsFile)
    
public  ListgetDataSourcePropertiesFiles()
    
public  StringgetDatasourceName(String jndiName)
    
public  IntegergetTotalCurrentNumberOfJDBCConnectionOpen()
    
public  booleanisLoadedDataSource(String dsName)
    
public  voidloadDataSource(String name, Properties prop, Boolean loadFromFile)
    
public  voidunbindDataSources()
    
public  voidunloadDataSource(String name)
    

Field Detail
CLASS
final static String CLASS(Code)



CLASSNAME
final static String CLASSNAME(Code)



CONNCHECKLEVEL
final public static String CONNCHECKLEVEL(Code)



CONNMAXAGE
final public static String CONNMAXAGE(Code)



CONNTESTSTMT
final public static String CONNTESTSTMT(Code)



DATASOURCES
final static String DATASOURCES(Code)



DEF_CLASSNAME
final static String DEF_CLASSNAME(Code)



DEF_CONNCHECKLEVEL
final static String DEF_CONNCHECKLEVEL(Code)



DEF_CONNMAXAGE
final static String DEF_CONNMAXAGE(Code)



DEF_CONNTESTSTMT
final static String DEF_CONNTESTSTMT(Code)



DEF_DESCRIPTION
final static String DEF_DESCRIPTION(Code)



DEF_ISOLATIONLEVEL
final static String DEF_ISOLATIONLEVEL(Code)



DEF_MAPPERNAME
final static String DEF_MAPPERNAME(Code)



DEF_MAXCONPOOL
final static String DEF_MAXCONPOOL(Code)



DEF_MAXOPENTIME
final static String DEF_MAXOPENTIME(Code)



DEF_MAXWAITERS
final static String DEF_MAXWAITERS(Code)



DEF_MAXWAITTIME
final static String DEF_MAXWAITTIME(Code)



DEF_MINCONPOOL
final static String DEF_MINCONPOOL(Code)



DEF_PASSWORD
final static String DEF_PASSWORD(Code)



DEF_PSTMTMAX
final static String DEF_PSTMTMAX(Code)



DEF_SAMPLINGPERIOD
final static String DEF_SAMPLINGPERIOD(Code)



DEF_URL
final static String DEF_URL(Code)



DEF_USERNAME
final static String DEF_USERNAME(Code)



DESCRIPTION
final static String DESCRIPTION(Code)



ISOLATIONLEVEL
final static String ISOLATIONLEVEL(Code)



JDBCResourceName
final public static String JDBCResourceName(Code)
Our naming convention for JDBCResource ObjectName (value of the 'name' key property)



MAPPERNAME
final static String MAPPERNAME(Code)



MAXCONPOOL
final static String MAXCONPOOL(Code)



MAXOPENTIME
final public static String MAXOPENTIME(Code)



MAXWAITERS
final static String MAXWAITERS(Code)



MAXWAITTIME
final static String MAXWAITTIME(Code)



MINCONPOOL
final static String MINCONPOOL(Code)



NAME
final static String NAME(Code)



PASSWORD
final static String PASSWORD(Code)



PSTMTMAX
final public static String PSTMTMAX(Code)



SAMPLINGPERIOD
final static String SAMPLINGPERIOD(Code)



URL
final static String URL(Code)



USERNAME
final static String USERNAME(Code)





Method Detail
createDataSource
public void createDataSource(String datasourceName, Properties dsd) throws Exception(Code)
Creates a ConnectionManager (implementation of sql.dataSource).
Parameters:
  datasourceName - - datasource name
Parameters:
  dsd - - a set of properties that describes a dataSource and the ConnectionPool



doInit
public void doInit(Context ctx) throws ServiceException(Code)
Initialization of the DataBase service. Configuration information is passed thru a Context object.



doStart
public void doStart() throws ServiceException(Code)
Starting DataBase service Initialization of the service is already done.



doStop
public void doStop() throws ServiceException(Code)
Stopping DataBase service Unbind Datasource



getConnectionManager
public ConnectionManager getConnectionManager(String dsname)(Code)
get ConnectionManager for the datasource having this JNDI name.



getCurrentNumberOfDataSource
public Integer getCurrentNumberOfDataSource()(Code)
MBean method: Integer Total Number of Datasource available in JOnAS



getDSList
public Collection getDSList()(Code)
return the list of the datasources



getDataSourcePropertiesFile
public Properties getDataSourcePropertiesFile(String dsFile) throws Exception(Code)
MBean method: datasource properties from a local file



getDataSourcePropertiesFiles
public List getDataSourcePropertiesFiles() throws Exception(Code)
MBean method: the list of properties files describing datasources found in JONAS_BASE/conf



getDatasourceName
public String getDatasourceName(String jndiName)(Code)
MBean method allowing to determine the datasource name from its jndi name
Parameters:
  jndiName - The jndi name of a datasource The datasource name



getTotalCurrentNumberOfJDBCConnectionOpen
public Integer getTotalCurrentNumberOfJDBCConnectionOpen()(Code)
MBean method: Integer Total Number of JDBC connection open



isLoadedDataSource
public boolean isLoadedDataSource(String dsName)(Code)
MBean method: true if the datasource having thid jndi name is loadd



loadDataSource
public void loadDataSource(String name, Properties prop, Boolean loadFromFile) throws ServiceException(Code)
MBean method: load a new datasource
Parameters:
  name - datasource name
Parameters:
  prop - datasource properties
Parameters:
  loadFromFile - if false the datasource creation was dynamicaly invoked by a managementoperation providing the properties in the prop object.
throws:
  ServiceException - datasource could not be created



unbindDataSources
public void unbindDataSources() throws NamingException(Code)
Unbind dataSource names from the registry, unregister MBeans



unloadDataSource
public void unloadDataSource(String name)(Code)
MBean method:
Parameters:
  name - of the data source to unload



Methods inherited from org.objectweb.jonas.service.AbsServiceImpl
abstract protected void doInit(Context ctx) throws ServiceException(Code)(Java Doc)
abstract protected void doStart() throws ServiceException(Code)(Java Doc)
abstract protected void doStop() throws ServiceException(Code)(Java Doc)
public String getDomainName()(Code)(Java Doc)
public String getJonasServerName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public void init(Context ctx) throws ServiceException(Code)(Java Doc)
public boolean isStarted()(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void start() throws ServiceException(Code)(Java Doc)
public void stop() throws ServiceException(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.