org.ow2.petals.transport.platform.nio.client
Class NioClientObjectPoolImpl

java.lang.Object
  extended by org.ow2.petals.transport.platform.nio.client.NioClientObjectPoolImpl
All Implemented Interfaces:
NioClientObjectPool

public class NioClientObjectPoolImpl
extends java.lang.Object
implements NioClientObjectPool

This class is only a Fractal Wrapper of the Apache generic keyed object pool.

Author:
Christophe DENEUX (Capgemini Sud)

Field Summary
protected  ConfigurationService configurationService
          Interface used to access configuration
protected  org.ow2.petals.util.LoggingUtil log
          Logger Wrapper
protected  NioSelector selectorAgent
           The socket selector Fractal component to use to process network IO.
protected  TopologyService topologyService
          Interface used to get host and port of message recipient
 
Fields inherited from interface org.ow2.petals.transport.platform.nio.client.NioClientObjectPool
NIO_CLIENT_OBJECT_ITF
 
Constructor Summary
NioClientObjectPoolImpl()
           
 
Method Summary
 NioClient borrowObject(java.lang.String targetContainerName)
           
 void returnObject(java.lang.String targetContainerName, NioClient clientConnection)
           
 void start()
           
 void stop()
          Method called when the fractal component is stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configurationService

protected ConfigurationService configurationService
Interface used to access configuration


topologyService

protected TopologyService topologyService
Interface used to get host and port of message recipient


selectorAgent

protected NioSelector selectorAgent

The socket selector Fractal component to use to process network IO.


log

protected org.ow2.petals.util.LoggingUtil log
Logger Wrapper

Constructor Detail

NioClientObjectPoolImpl

public NioClientObjectPoolImpl()
Method Detail

borrowObject

public NioClient borrowObject(java.lang.String targetContainerName)
                       throws java.lang.Exception
Specified by:
borrowObject in interface NioClientObjectPool
Throws:
java.lang.Exception

returnObject

public void returnObject(java.lang.String targetContainerName,
                         NioClient clientConnection)
                  throws java.lang.Exception
Specified by:
returnObject in interface NioClientObjectPool
Throws:
java.lang.Exception

start

public void start()
           throws org.objectweb.fractal.api.control.IllegalLifeCycleException,
                  org.objectweb.fractal.api.NoSuchInterfaceException
Throws:
org.objectweb.fractal.api.control.IllegalLifeCycleException
org.objectweb.fractal.api.NoSuchInterfaceException

stop

public void stop()
          throws java.lang.Exception
Method called when the fractal component is stopped

Throws:
java.lang.Exception


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.