Package org.hpccsystems.ws.client
Class HPCCWsClientPool
- java.lang.Object
-
- org.hpccsystems.ws.client.utils.ObjectPool<HPCCWsClient>
-
- org.hpccsystems.ws.client.HPCCWsClientPool
-
public class HPCCWsClientPool extends ObjectPool<HPCCWsClient>
HPCCWsClientPool class.
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_EXPIRE_MILLIS
ConstantDEFAULT_EXPIRE_MILLIS=60000
-
Constructor Summary
Constructors Constructor Description HPCCWsClientPool(String protocol, String targetWsECLWatchAddress, String targetWsECLWatchPort, String user, String password)
Instantiates a new HPCC ws client pool.HPCCWsClientPool(String protocol, String targetWsECLWatchAddress, String targetWsECLWatchPort, String user, String password, long timeout)
Instantiates a new HPCC ws client pool.HPCCWsClientPool(Connection connection)
Instantiates a new HPCC ws client pool.HPCCWsClientPool(Connection connection, long timeout)
Instantiates a new HPCC ws client pool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HPCCWsClient
create()
void
expire(HPCCWsClient client)
boolean
validate(HPCCWsClient client)
-
Methods inherited from class org.hpccsystems.ws.client.utils.ObjectPool
checkIn, checkOut
-
-
-
-
Field Detail
-
DEFAULT_EXPIRE_MILLIS
public static final long DEFAULT_EXPIRE_MILLIS
ConstantDEFAULT_EXPIRE_MILLIS=60000
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HPCCWsClientPool
public HPCCWsClientPool(String protocol, String targetWsECLWatchAddress, String targetWsECLWatchPort, String user, String password, long timeout)
Instantiates a new HPCC ws client pool.- Parameters:
protocol
- the protocoltargetWsECLWatchAddress
- the target ws ECL watch addresstargetWsECLWatchPort
- the target ws ECL watch portuser
- the userpassword
- the passwordtimeout
- the timeout
-
HPCCWsClientPool
public HPCCWsClientPool(String protocol, String targetWsECLWatchAddress, String targetWsECLWatchPort, String user, String password)
Instantiates a new HPCC ws client pool.- Parameters:
protocol
- the protocoltargetWsECLWatchAddress
- the target ws ECL watch addresstargetWsECLWatchPort
- the target ws ECL watch portuser
- the userpassword
- the password
-
HPCCWsClientPool
public HPCCWsClientPool(Connection connection)
Instantiates a new HPCC ws client pool.- Parameters:
connection
- the connection
-
HPCCWsClientPool
public HPCCWsClientPool(Connection connection, long timeout)
Instantiates a new HPCC ws client pool.- Parameters:
connection
- the connectiontimeout
- the timeout
-
-
Method Detail
-
create
protected HPCCWsClient create()
- Specified by:
create
in classObjectPool<HPCCWsClient>
-
validate
public boolean validate(HPCCWsClient client)
- Specified by:
validate
in classObjectPool<HPCCWsClient>
-
expire
public void expire(HPCCWsClient client)
- Specified by:
expire
in classObjectPool<HPCCWsClient>
-
-