|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iom.WorkspacePoolDriver
getPooledWorkspace
if the intent is to create a
new connection pool or to get a connection from an existing pool. Furthermore, calls to
closePool
may match more than one pool, and the caller has no way to control which
pools should be closed.
public class WorkspacePoolDriver
The old interface for connection pooling.
WorkspaceFactory
Method Summary | |
---|---|
static void |
closePool(java.util.Hashtable credentials,
java.lang.String searchContext,
java.lang.String sasLogicalName,
java.lang.String userDN)
Deprecated. Close all unused workspace objects in the appropriate pool(s). |
static java.io.PrintWriter |
getLog()
Deprecated. Messages about all pools operating under this driver are printed on this writer. |
static WorkspaceConnector |
getPooledWorkspace(java.util.Hashtable credentials,
java.lang.String searchContext,
java.lang.String sasLogicalName,
java.lang.String userDN,
long waitMilliseconds)
Deprecated. Get a workspace from an appropriate pool. |
static void |
setLog(java.io.PrintWriter l)
Deprecated. Messages about all pools operating under this driver will be printed on this writer. |
Method Detail |
---|
public static WorkspaceConnector getPooledWorkspace(java.util.Hashtable credentials, java.lang.String searchContext, java.lang.String sasLogicalName, java.lang.String userDN, long waitMilliseconds) throws WorkspacePoolException
credentials
- information that identifies a JNDI directory and specifies how to bind to it. Behavior is undefined
if the value of this parameter is null
.searchContext
- the starting point in the JNDI directory for searches. Behavior is undefined
if the value of this parameter is null
.sasLogicalName
- a logical name that identifies a pool or a
set of pools. Behavior is undefined
if the value of this parameter is null
.userDN
- the distinguished name of a user or group of users that is used to determine which, if any, of the
the pools identified by sasLogicalName
can be used to fulfill this request. If the value is
null
, then any of the pools identified by sasLogicalName
can be used to fulfill this
request.waitMilliseconds
- used if the workspace pool has reached its maximum
use threshold at the time of this method call. If that is the case, then this method will behave in
one of the three following ways based on the value of waitMilliseconds
:
waitMilliseconds
) before either
returning a workspace connector or throwing an exception.
WorkspacePoolException
- if the given logical name and user DN do not identify any
workspace pools or if the given credentials do not provide sufficient authority
to access the workspace pool information in JNDI or if the pool cannot be initialized.public static void closePool(java.util.Hashtable credentials, java.lang.String searchContext, java.lang.String sasLogicalName, java.lang.String userDN) throws WorkspacePoolException
credentials
- information that identifies a JNDI directory and specifies how to bind to it. Behavior is undefined
if the value of this parameter is null
.searchContext
- the starting point in the JNDI directory for searches. Behavior is undefined
if the value of this parameter is null
.sasLogicalName
- a logical name that identifies a pool or a
set of pools. Behavior is undefined
if the value of this parameter is null
.userDN
- the distinguished name of a user or group of users that is used to determine which, if any, of the
the pools identified by sasLogicalName
should be closed. If the value is
null
, then all of the pools identified by sasLogicalName
will be closed.
WorkspacePoolException
- if the given logical name and user DN do not identify any
workspace pools or if the given credentials do not provide sufficient authority
to access the workspace pool information in JNDI.public static void setLog(java.io.PrintWriter l)
log
- writer to print messages to.public static java.io.PrintWriter getLog()
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |