Package com.sun.enterprise.resource.pool
Class ResourceGateway
- java.lang.Object
-
- com.sun.enterprise.resource.pool.ResourceGateway
-
public class ResourceGateway extends Object
Resource gateway used to restrict the resource access. eg: based on priority.- Author:
- Jagadish Ramu
-
-
Constructor Summary
Constructors Constructor Description ResourceGateway()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquiredResource()
used to indicate the gateway that a resource is acquired.boolean
allowed()
indicates whether resource access is allowed or not.protected static void
debug(String debugStatement)
static ResourceGateway
getInstance(String className)
-
-
-
Field Detail
-
_logger
protected static final Logger _logger
-
-
Method Detail
-
allowed
public boolean allowed()
indicates whether resource access is allowed or not.- Returns:
- boolean
-
acquiredResource
public void acquiredResource()
used to indicate the gateway that a resource is acquired.
-
getInstance
public static ResourceGateway getInstance(String className) throws PoolingException
- Throws:
PoolingException
-
debug
protected static void debug(String debugStatement)
-
-