org.ow2.jonas.dbm.internal
Interface JOnASDataBaseManagerServiceMBean

All Known Implementing Classes:
JOnASDataBaseManagerService

public interface JOnASDataBaseManagerServiceMBean

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

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

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

Method Detail

getDataSourcePropertiesFiles

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

getCurrentNumberOfDataSource

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

getTotalCurrentNumberOfJDBCConnectionOpen

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

getDataSourcePropertiesFile

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

loadDataSource

void loadDataSource(String name,
                    Properties prop,
                    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(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(String dsName)
unload existing datasource


getDatasourceName

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


Copyright © 2012 OW2 Consortium. All Rights Reserved.