All Packages Class Hierarchy This Package Previous Next Index
Class vnet.yawb.YAWBBackendManager
java.lang.Object
|
+----vnet.yawb.YAWBBackendManager
- public class YAWBBackendManager
- extends Object
Maintains a cache of backends and performs data retrievals.
-
BACKEND_CLASS
-
-
BACKEND_ID
-
-
backends
- Available backends.
-
CACHE_MAX_SIZE
-
-
DEFAULT_MAX_CACHE_SIZE
-
-
maxCache
- Backend connection max cache size.
-
YAWBBackendManager(Properties)
- Constructs a new YAWBBackendManager.
-
getConnection(YAWBBackendManager. BackendStore)
- Returns a spare connection.
-
getDataStore(YAWBStoreElement)
- Retrieves a data store based on a YAWBStoreElement.
-
returnConnection(YAWBBackendConnection)
- Returns a connection the cache.
backends
protected Hashtable backends
- Available backends.
maxCache
protected int maxCache
- Backend connection max cache size.
BACKEND_CLASS
public static final String BACKEND_CLASS
BACKEND_ID
public static final String BACKEND_ID
CACHE_MAX_SIZE
public static final String CACHE_MAX_SIZE
DEFAULT_MAX_CACHE_SIZE
public static final int DEFAULT_MAX_CACHE_SIZE
YAWBBackendManager
public YAWBBackendManager(Properties conf) throws YAWBException, NullPointerException
- Constructs a new YAWBBackendManager.
- Parameters:
- conf - non-null backend properties.
- Throws: YAWBException
- if a configurationerror occurs
- Throws: NullPointerException
- if conf is null
getDataStore
public YAWBDataStore getDataStore(YAWBStoreElement source) throws YAWBException
- Retrieves a data store based on a YAWBStoreElement.
- Parameters:
- source - a source element, may not be null
- Returns:
- a data store
- Throws: YAWBException
- if a YAWB error occured
returnConnection
protected void returnConnection(YAWBBackendConnection conn)
- Returns a connection the cache. This should be called after a
connection and and YAWBDataStores that originated from it
have been finished with.
- Parameters:
- conn - the no-longer-required connection to be added
back to the cache
getConnection
protected YAWBBackendConnection getConnection(YAWBBackendManager. BackendStore store) throws YAWBException
- Returns a spare connection.
- Throws: YAWBException
- if a YAWB error occured
All Packages Class Hierarchy This Package Previous Next Index