|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionFactoryInterface
User interface for connection factories. The factory
controls the lifetime of a connection. When a request for
a connection arrives, the factory will return an existing
pooled connection if one is available, or it will create a new connection
if necessary. Users must notify the factory when they are done with the
connection so it can be returned to the pool or destroyed. The
connection handle
provides the necessary notification method.
A factory may have a limit on the number of connections it
is allowed to create and manage at a time. If a factory allocates all the connections
it is allowed to managed to users, and
a new request for a connection arrives, the factory will not be able
to serve the request immediately. The various getConnection()
methods provide flags and defaults that allow the caller to specify how long he or
she is willing to wait for another user to return a connection to the factory's pool.
Method Summary | |
---|---|
ConnectionFactoryAdminInterface |
getAdminInterface()
Get the factory administrator's interface. |
ConnectionFactoryAdminInterface |
getAdminInterface(java.lang.String adminName,
java.lang.String password)
This method is provided for compatibility with previous releases, and it is otherwise rarely used. |
ConnectionInterface |
getConnection()
Get a connection to a server that does not require a user name and password for connections. |
ConnectionInterface |
getConnection(long waitMilliseconds)
Get a connection to a server that does not require a user name and password for connections. |
ConnectionInterface |
getConnection(java.lang.String domain)
Get a connection to a server that does not require a user name and password for connections. |
ConnectionInterface |
getConnection(java.lang.String domain,
long waitMilliseconds)
Get a connection to a server that does not require a user name and password for connections. |
ConnectionInterface |
getConnection(java.lang.String userName,
java.lang.String password)
Get a connection to a server. |
ConnectionInterface |
getConnection(java.lang.String userName,
java.lang.String password,
long waitMilliseconds)
Get a connection to a server. |
ConnectionInterface |
getConnection(java.lang.String userName,
java.lang.String password,
java.lang.String domain)
Get a connection to a server. |
ConnectionInterface |
getConnection(java.lang.String userName,
java.lang.String password,
java.lang.String domain,
long waitMilliseconds)
Get a connection to a server. |
Methods inherited from interface com.sas.services.connection.ConnectionFactoryShellInterface |
---|
addConnectionFactoryEventListener, getAdminInterface, getConnection, getConnection, getDomains, removeConnectionFactoryEventListener |
Method Detail |
---|
ConnectionInterface getConnection() throws ConnectionFactoryException
ConnectionFactoryException
- if the factory cannot create a
connection to satisfy this request or if the factory has been shutdownConnectionInterface getConnection(java.lang.String domain) throws ConnectionFactoryException
domain
- the authentication domain for the server
ConnectionFactoryException
- if the factory cannot create a
connection to satisfy this request or if the factory has been shutdownConnectionInterface getConnection(long waitMilliseconds) throws ConnectionFactoryException
waitMilliseconds
- a flag indicating how the call should behave if the factory has allocated
all the connections it is allowed to manage to other users.
<0
0
>0
ConnectionFactoryException
- if the factory cannot create a
connection to satisfy this request or if the request times out or if the factory has been shutdownConnectionInterface getConnection(java.lang.String domain, long waitMilliseconds) throws ConnectionFactoryException
domain
- the authentication domain for the serverwaitMilliseconds
- a flag indicating how the call should behave if the factory has allocated
all the connections it is allowed to manage to other users.
<0
0
>0
ConnectionFactoryException
- if the factory cannot create a
connection to satisfy this request or if the request times out or if the factory has been shutdownConnectionInterface getConnection(java.lang.String userName, java.lang.String password) throws ConnectionFactoryException
userName
- the name of someone allowed to use this factorypassword
- the password that authenticates userName
ConnectionFactoryException
- if the factory cannot create a
connection to satisfy this request or if the factory has been shutdown orConnectionInterface getConnection(java.lang.String userName, java.lang.String password, java.lang.String domain) throws ConnectionFactoryException
userName
- the name of someone allowed to use this factorypassword
- the password that authenticates userNamedomain
- the authentication domain for userName and password
ConnectionFactoryException
- if the factory cannot create a
connection to satisfy this request or if the factory has been shutdownConnectionInterface getConnection(java.lang.String userName, java.lang.String password, long waitMilliseconds) throws ConnectionFactoryException
userName
- the name of someone allowed to use this factorypassword
- the password that authenticates userNamewaitMilliseconds
- a flag indicating how the call should behave if the factory has allocated
all the connections it is allowed to manage to other users.
<0
0
>0
ConnectionFactoryException
- if the factory cannot create a
connection to satisfy this request or if the request times out or if the factory has been shutdownConnectionInterface getConnection(java.lang.String userName, java.lang.String password, java.lang.String domain, long waitMilliseconds) throws ConnectionFactoryException
userName
- the name of someone allowed to use this factorypassword
- the password that authenticates userNamedomain
- the authentication domain for userName and passwordwaitMilliseconds
- a flag indicating how the call should behave if the factory has allocated
all the connections it is allowed to manage to other users.
<0
0
>0
ConnectionFactoryException
- if the factory cannot create a
connection to satisfy this request or if the request times out or if the factory has been shutdownConnectionFactoryAdminInterface getAdminInterface() throws ConnectionFactoryException
ConnectionFactoryException
ConnectionFactoryAdminInterface getAdminInterface(java.lang.String adminName, java.lang.String password) throws ConnectionFactoryException
ConnectionFactoryException
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |