org.apache.cocoon.components.web3.impl
Class Web3DataSourceImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.web3.impl.Web3DataSourceImpl
- All Implemented Interfaces:
- Disposable, Initializable, Configurable, LogEnabled, Serviceable, ThreadSafe, Web3DataSource
public class Web3DataSourceImpl
- extends AbstractLogEnabled
- implements Web3DataSource, ThreadSafe
The Default implementation for R3DataSources in Web3. This uses the
normal com.sap.mw.jco.JCO
classes.
- Since:
- 2.1
- Version:
- CVS $Id: Web3DataSourceImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Michael Gerzabek
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
protected Web3Properties properties
poolsize
protected int poolsize
current_clients
protected int current_clients
mySID
protected String mySID
trace
protected boolean trace
level
protected int level
manager
protected ServiceManager manager
Web3DataSourceImpl
public Web3DataSourceImpl()
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Configure backend component
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
initialize
public void initialize()
throws Exception
- initialize the component
- Specified by:
initialize
in interface Initializable
- Throws:
Exception
getWeb3Client
public Web3Client getWeb3Client()
throws Exception
- Get the backend client, returns
null
if there is no more
client in the pool.
- Specified by:
getWeb3Client
in interface Web3DataSource
- Throws:
Exception
releaseWeb3Client
public void releaseWeb3Client(Web3Client client)
- Specified by:
releaseWeb3Client
in interface Web3DataSource
dispose
public void dispose()
- Dispose properly of the pool
- Specified by:
dispose
in interface Disposable
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.