com.waveset.adapter
Class AgentPoolBroker

java.lang.Object
  extended bycom.waveset.adapter.AgentPoolBroker

public class AgentPoolBroker
extends java.lang.Object


Field Summary
static java.lang.String code_id
           
 
Method Summary
 RASecureConnection getConnection(Resource r)
           
static AgentPoolBroker getInstance()
           
 AgentConnectionPool getPool(Resource r)
           
 int getPoolFreeCount(Resource r)
          Test method to check the pool status
 int getPoolInUseCount(Resource r)
          Test method to check the pool status
 java.lang.String[] getPoolNames()
           
static void setContext(LighthouseContext ctx)
          Set a LighthouseContext so the adapter pool can find the encryption keys to use for a resource.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Method Detail

getInstance

public static AgentPoolBroker getInstance()

setContext

public static void setContext(LighthouseContext ctx)
Set a LighthouseContext so the adapter pool can find the encryption keys to use for a resource. If not set the default key is used.


shutdown

public void shutdown()

getPool

public AgentConnectionPool getPool(Resource r)
                            throws WavesetException
Throws:
WavesetException

getConnection

public RASecureConnection getConnection(Resource r)
                                 throws java.io.IOException,
                                        java.lang.InterruptedException,
                                        java.security.InvalidKeyException,
                                        WavesetException
Throws:
java.io.IOException
java.lang.InterruptedException
java.security.InvalidKeyException
WavesetException

getPoolFreeCount

public int getPoolFreeCount(Resource r)
                     throws WavesetException
Test method to check the pool status

Throws:
WavesetException

getPoolInUseCount

public int getPoolInUseCount(Resource r)
                      throws WavesetException
Test method to check the pool status

Throws:
WavesetException

getPoolNames

public java.lang.String[] getPoolNames()