org.objectweb.jonas.dbm
Interface DataBaseServiceImplMBean

All Known Implementing Classes:
DataBaseServiceImpl

public interface DataBaseServiceImplMBean

MBean Interface for DataBase Service Management MBean type: Standard MBean model: Inheritance (DataBaseServiceImpl)

Author:
Michel Bruno and Guillaume Riviere Contributor(s): 03/01/14 Adriana Danes Change loadDataSource() signature : take additional argument, the datasource name Additionnal MBean method : getDatasourceName()

Method Summary
 java.lang.Integer getCurrentNumberOfDataSource()
           
 java.lang.String getDatasourceName(java.lang.String jndiName)
           
 java.util.Properties getDataSourcePropertiesFile(java.lang.String dsFile)
           
 java.util.List getDataSourcePropertiesFiles()
           
 java.lang.Integer getTotalCurrentNumberOfJDBCConnectionOpen()
           
 boolean isLoadedDataSource(java.lang.String dsName)
          Determine if a datasource with a given name is already loaded in the dbm service
 void loadDataSource(java.lang.String name, java.util.Properties prop, java.lang.Boolean loadFromFile)
          Load new datasource
 void unloadDataSource(java.lang.String dsName)
          unload existing datasource
 

Method Detail

getDataSourcePropertiesFiles

java.util.List getDataSourcePropertiesFiles()
                                            throws java.lang.Exception
Returns:
the list of properties files describing datasources found in JONAS_BASE/conf
Throws:
java.lang.Exception

getCurrentNumberOfDataSource

java.lang.Integer getCurrentNumberOfDataSource()
Returns:
Integer Total Number of Datasource available in JOnAS

getTotalCurrentNumberOfJDBCConnectionOpen

java.lang.Integer getTotalCurrentNumberOfJDBCConnectionOpen()
Returns:
Integer Total Number of JDBC connection open

getDataSourcePropertiesFile

java.util.Properties getDataSourcePropertiesFile(java.lang.String dsFile)
                                                 throws java.lang.Exception
Returns:
datasource properties from a local file
Throws:
java.lang.Exception

loadDataSource

void loadDataSource(java.lang.String name,
                    java.util.Properties prop,
                    java.lang.Boolean loadFromFile)
                    throws ServiceException
Load new datasource

Parameters:
name - datasource name
prop - datasource properties
loadFromFile - true if the datasource is loaded from a .properties file
Throws:
ServiceException

isLoadedDataSource

boolean isLoadedDataSource(java.lang.String dsName)
Determine if a datasource with a given name is already loaded in the dbm service

Parameters:
dsName - the name of the datasource to be checked if loaded

unloadDataSource

void unloadDataSource(java.lang.String dsName)
unload existing datasource


getDatasourceName

java.lang.String getDatasourceName(java.lang.String jndiName)
Parameters:
jndiName - The jndi name of a datasource
Returns:
The datasource name