|
Open SiteSearch 4.1.1 Final |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ORG.oclc.db.Connections
Connections manages shared connections between remote hosts and DbRemoteZ objects. There may be 1 shared connection per remote host or 1 shared connection per user per remote host.
| Field Summary | |
static boolean |
One
Value for PerUser flag on constructor. |
static boolean |
OnePerUser
Value for PerUser flag on constructor. |
| Method Summary | |
boolean |
add(String sessionId,
Object connection)
|
boolean |
add(String sessionId,
String autho,
String password,
Object connection)
Associate a user with a connection object. |
Object |
get(String sessionId,
String autho,
String password)
Get a connection object for this server. |
static Connections |
getConnections(String serverName,
int port,
String host,
boolean PerUser)
Connections allows a user to share a connection to all the databases at a remote site or it allows all users to share a connection to all the databases at a remote site. |
boolean |
remove(String sessionId,
String autho,
String password)
Un-associate a user from a connection object. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final boolean OnePerUser
public static final boolean One
| Method Detail |
public static Connections getConnections(String serverName,
int port,
String host,
boolean PerUser)
serverName - the name of ther remote server from the configuration
files.port - for the remote serverhost - for the remote serverPerUser - true == each user gets a private connection to the server.
false == all users share a connection to the server.
public Object get(String sessionId,
String autho,
String password)
sessionId - the user requesting the connection
public boolean add(String sessionId,
Object connection)
public boolean add(String sessionId,
String autho,
String password,
Object connection)
sessionId - user identifierautho - the authorization if applicablepassword - the password if applicableconnection - object
public boolean remove(String sessionId,
String autho,
String password)
sessionId - user identifier
|
Open SiteSearch 4.1.1 Final |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||