org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure
Class SecureClientPoolFactory

java.lang.Object
  extended by org.apache.commons.pool.BaseKeyedPoolableObjectFactory
      extended by org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory
All Implemented Interfaces:
org.apache.commons.pool.KeyedPoolableObjectFactory

public class SecureClientPoolFactory
extends org.apache.commons.pool.BaseKeyedPoolableObjectFactory


Constructor Summary
SecureClientPoolFactory(String trustStore, String trustStorePassword)
           
 
Method Summary
 org.wso2.carbon.databridge.commons.thrift.service.secure.ThriftSecureEventTransmissionService.Client makeObject(Object key)
           
 boolean validateObject(Object key, Object obj)
           
 
Methods inherited from class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
activateObject, destroyObject, passivateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureClientPoolFactory

public SecureClientPoolFactory(String trustStore,
                               String trustStorePassword)
Method Detail

makeObject

public org.wso2.carbon.databridge.commons.thrift.service.secure.ThriftSecureEventTransmissionService.Client makeObject(Object key)
                                                                                                                throws AgentSecurityException,
                                                                                                                       org.apache.thrift.transport.TTransportException
Specified by:
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Specified by:
makeObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
Throws:
AgentSecurityException
org.apache.thrift.transport.TTransportException

validateObject

public boolean validateObject(Object key,
                              Object obj)
Specified by:
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Overrides:
validateObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory


Copyright © 2015 WSO2. All rights reserved.