org.wso2.carbon.databridge.agent.internal.endpoint.thrift.client
Class ThriftSecureClientPoolFactory

java.lang.Object
  extended by org.apache.commons.pool.BaseKeyedPoolableObjectFactory
      extended by org.wso2.carbon.databridge.agent.internal.client.AbstractClientPoolFactory
          extended by org.wso2.carbon.databridge.agent.internal.client.AbstractSecureClientPoolFactory
              extended by org.wso2.carbon.databridge.agent.internal.endpoint.thrift.client.ThriftSecureClientPoolFactory
All Implemented Interfaces:
org.apache.commons.pool.KeyedPoolableObjectFactory

public class ThriftSecureClientPoolFactory
extends AbstractSecureClientPoolFactory


Constructor Summary
ThriftSecureClientPoolFactory(String trustStore, String trustStorePassword)
           
 
Method Summary
 Object createClient(String protocol, String hostName, int port)
           
 void terminateClient(Object client)
           
 boolean validateClient(Object client)
           
 
Methods inherited from class org.wso2.carbon.databridge.agent.internal.client.AbstractSecureClientPoolFactory
getTrustStore, getTrustStorePassword, setTrustStore, setTrustStorePassword
 
Methods inherited from class org.wso2.carbon.databridge.agent.internal.client.AbstractClientPoolFactory
destroyObject, makeObject, validateObject
 
Methods inherited from class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
activateObject, passivateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftSecureClientPoolFactory

public ThriftSecureClientPoolFactory(String trustStore,
                                     String trustStorePassword)
Method Detail

createClient

public Object createClient(String protocol,
                           String hostName,
                           int port)
                    throws DataEndpointAgentSecurityException
Specified by:
createClient in class AbstractClientPoolFactory
Throws:
DataEndpointAgentSecurityException

validateClient

public boolean validateClient(Object client)
Specified by:
validateClient in class AbstractClientPoolFactory

terminateClient

public void terminateClient(Object client)
Specified by:
terminateClient in class AbstractClientPoolFactory


Copyright © 2015 WSO2. All rights reserved.