org.apache.cocoon.components.web3.impl
Class Web3DataSourceImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by 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

Field Summary
protected  int current_clients
           
protected  int level
           
protected  ServiceManager manager
           
protected  String mySID
           
protected  int poolsize
           
protected  Web3Properties properties
           
protected  boolean trace
           
 
Fields inherited from interface org.apache.cocoon.components.web3.Web3DataSource
ROLE
 
Constructor Summary
Web3DataSourceImpl()
           
 
Method Summary
 void configure(Configuration configuration)
          Configure backend component
 void dispose()
          Dispose properly of the pool
 Web3Client getWeb3Client()
          Get the backend client, returns null if there is no more client in the pool.
 void initialize()
          initialize the component
 void releaseWeb3Client(Web3Client client)
           
 void service(ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Web3DataSourceImpl

public Web3DataSourceImpl()
Method Detail

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.