|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionFactoryShellInterface
Methods common to all connection factory interfaces.
Method Summary | |
---|---|
void |
addConnectionFactoryEventListener(ConnectionFactoryEventListener listener)
Add a listener for connection factory events. |
ConnectionFactoryAdminInterface |
getAdminInterface(Credential adminLogin)
Get the factory administrator's interface. |
ConnectionInterface |
getConnection(Credential login)
Get a connection to a server. |
ConnectionInterface |
getConnection(Credential login,
long waitMilliseconds)
Get a connection to a server. |
java.util.List |
getDomains()
Get the list of authentication domains supported by this factory. |
void |
removeConnectionFactoryEventListener(ConnectionFactoryEventListener listener)
Remove a listener for connection factory events. |
Method Detail |
---|
void addConnectionFactoryEventListener(ConnectionFactoryEventListener listener)
listener
- a listener for connection factory eventsvoid removeConnectionFactoryEventListener(ConnectionFactoryEventListener listener)
listener
- a listener for connection factory eventsjava.util.List getDomains()
ConnectionInterface getConnection(Credential login) throws ConnectionFactoryException
login
- credentials for someone allowed to use this factory
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(Credential login, long waitMilliseconds) throws ConnectionFactoryException
login
- credentials for someone allowed to use this factorywaitMilliseconds
- 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(Credential adminLogin) throws ConnectionFactoryException
login
- credentials for someone allowed to administer this factory or null
ConnectionFactoryException
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |