Node Director
|
connect to a database the first time an operation is to be executed. More...
Public Member Functions | |
OnDemandDBConnection () | |
OnDemandDBConnection (String url) | |
OnDemandDBConnection (String url, String alt1) | |
OnDemandDBConnection (String url, String alt1, String alt2) | |
OnDemandDBConnection (String url, String alt1, String alt2, String alt3) | |
String | getURL () |
void | setCredentials (Credentials cred) |
void | setContext (RemoteJob context) |
void | setURL (String url) throws DirectorException |
void | setOption (String option) |
void | setOption (String option, String val) |
void | setOption (Options opt) |
void | setOption (SURL url) |
void | setError (Exception e) |
Exception | getError () |
DN | completeDN (DN dn) |
Enumeration | search (String expr) throws DirectorException |
Enumeration | search (String expr, Options searchopt) throws DirectorException |
void | append (DBObject dbo) throws DirectorException |
void | truncate () throws DirectorException |
void | replace (DBObject dbo) throws DirectorException |
void | remove (DBObject dbo) throws DirectorException |
DBAccessor | get (DN dn) throws DirectorException |
void | modify (DBObject dbo, Vector attrs) throws DirectorException |
void | close () throws DirectorException |
Public Member Functions inherited from sfi.director.repository.DBConnection | |
String | getOption (String option) |
Protected Member Functions | |
synchronized void | ensureConnected () throws DirectorException |
Protected Attributes | |
DBConnection | ourDB |
Credentials | accessCreds |
Vector | urls = new Vector() |
Protected Attributes inherited from sfi.director.repository.DBConnection | |
String | url |
RemoteJob | context |
Options | options = new Options() |
Exception | error = null |
Additional Inherited Members | |
Static Public Member Functions inherited from sfi.director.repository.DBConnection | |
static Enumeration | unwrap (final Enumeration wrapped) |
Given an Enumeration of DBAccessor objects as returned by the search() method, returns an Enumeration of DBObject objects. | |
static String | escapeSearchval (String val) |
Static Public Attributes inherited from sfi.director.repository.DBConnection | |
static final String | SEARCH_BASEDN = "BaseDN" |
used in conjunction with the search() method to set the base DN of the subtree we are about to search (option) | |
static final String | SEARCH_NOSUB = "Sub" |
static final String | SEARCH_WITHSTRUCT = "WithStruct" |
static final String | SEARCH_SORT = "Sort" |
static final String | SEARCH_SCHEMA = "Schema" |
connect to a database the first time an operation is to be executed.
sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection | ( | ) |
sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection | ( | String | url | ) |
sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection | ( | String | url, |
String | alt1 | ||
) |
sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection | ( | String | url, |
String | alt1, | ||
String | alt2 | ||
) |
sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection | ( | String | url, |
String | alt1, | ||
String | alt2, | ||
String | alt3 | ||
) |
|
virtual |
*
DirectorException |
dbo |
Implements sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.append(), sfi.director.repository.OnDemandDBConnection.ensureConnected(), and sfi.director.repository.OnDemandDBConnection.ourDB.
void sfi.director.repository.OnDemandDBConnection.close | ( | ) | throws DirectorException |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.close(), and sfi.director.repository.OnDemandDBConnection.ourDB.
|
protected |
References sfi.director.repository.OnDemandDBConnection.accessCreds, sfi.director.repository.DBConnection.context, sfi.director.repository.DBConnection.error, sfi.director.repository.DBManager.getConnection(), sfi.director.repository.DBConnection.options, sfi.director.repository.OnDemandDBConnection.ourDB, sfi.director.repository.DBConnection.setContext(), sfi.director.repository.DBConnection.setCredentials(), sfi.director.repository.DBConnection.setError(), sfi.director.repository.DBConnection.setOption(), sfi.director.repository.DBConnection.url, and sfi.director.repository.OnDemandDBConnection.urls.
Referenced by sfi.director.repository.OnDemandDBConnection.append(), sfi.director.repository.OnDemandDBConnection.completeDN(), sfi.director.repository.OnDemandDBConnection.get(), sfi.director.repository.OnDemandDBConnection.modify(), sfi.director.repository.OnDemandDBConnection.remove(), sfi.director.repository.OnDemandDBConnection.replace(), sfi.director.repository.OnDemandDBConnection.search(), and sfi.director.repository.OnDemandDBConnection.truncate().
DBAccessor sfi.director.repository.OnDemandDBConnection.get | ( | DN | dn | ) | throws DirectorException |
Exception sfi.director.repository.OnDemandDBConnection.getError | ( | ) |
String sfi.director.repository.OnDemandDBConnection.getURL | ( | ) |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.url, and sfi.director.repository.OnDemandDBConnection.urls.
void sfi.director.repository.OnDemandDBConnection.modify | ( | DBObject | dbo, |
Vector | attrs | ||
) | throws DirectorException |
void sfi.director.repository.OnDemandDBConnection.remove | ( | DBObject | dbo | ) | throws DirectorException |
void sfi.director.repository.OnDemandDBConnection.replace | ( | DBObject | dbo | ) | throws DirectorException |
Enumeration sfi.director.repository.OnDemandDBConnection.search | ( | String | expr | ) | throws DirectorException |
*
DirectorException |
expr |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.OnDemandDBConnection.ensureConnected(), sfi.director.repository.DBConnection.options, sfi.director.repository.OnDemandDBConnection.ourDB, and sfi.director.repository.DBConnection.search().
|
virtual |
*
DirectorException |
expr | |
searchopt |
Implements sfi.director.repository.DBConnection.
References sfi.director.repository.OnDemandDBConnection.ensureConnected(), sfi.director.repository.OnDemandDBConnection.ourDB, and sfi.director.repository.DBConnection.search().
void sfi.director.repository.OnDemandDBConnection.setContext | ( | RemoteJob | context | ) |
*
context |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.context, sfi.director.repository.OnDemandDBConnection.ourDB, and sfi.director.repository.DBConnection.setContext().
void sfi.director.repository.OnDemandDBConnection.setCredentials | ( | Credentials | cred | ) |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.OnDemandDBConnection.accessCreds, sfi.director.repository.OnDemandDBConnection.ourDB, and sfi.director.repository.DBConnection.setCredentials().
Referenced by sfi.director.util.Init.set_db().
void sfi.director.repository.OnDemandDBConnection.setError | ( | Exception | e | ) |
void sfi.director.repository.OnDemandDBConnection.setOption | ( | String | option | ) |
*
option |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.options, sfi.director.repository.OnDemandDBConnection.ourDB, sfi.director.util.Options.setOption(), and sfi.director.repository.DBConnection.setOption().
void sfi.director.repository.OnDemandDBConnection.setOption | ( | String | option, |
String | val | ||
) |
*
option | |
val |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.options, sfi.director.repository.OnDemandDBConnection.ourDB, sfi.director.util.Options.setOption(), and sfi.director.repository.DBConnection.setOption().
void sfi.director.repository.OnDemandDBConnection.setOption | ( | Options | opt | ) |
*
opt |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.options, sfi.director.repository.OnDemandDBConnection.ourDB, sfi.director.util.Options.setOption(), and sfi.director.repository.DBConnection.setOption().
void sfi.director.repository.OnDemandDBConnection.setOption | ( | SURL | url | ) |
void sfi.director.repository.OnDemandDBConnection.setURL | ( | String | url | ) | throws DirectorException |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.util.Tools.split(), sfi.director.repository.DBConnection.url, and sfi.director.repository.OnDemandDBConnection.urls.
|
virtual |
|
protected |
|
protected |
Referenced by sfi.director.repository.OnDemandDBConnection.append(), sfi.director.repository.OnDemandDBConnection.close(), sfi.director.repository.OnDemandDBConnection.completeDN(), sfi.director.repository.OnDemandDBConnection.ensureConnected(), sfi.director.repository.OnDemandDBConnection.get(), sfi.director.repository.OnDemandDBConnection.getError(), sfi.director.repository.OnDemandDBConnection.modify(), sfi.director.repository.OnDemandDBConnection.remove(), sfi.director.repository.OnDemandDBConnection.replace(), sfi.director.repository.OnDemandDBConnection.search(), sfi.director.repository.OnDemandDBConnection.setContext(), sfi.director.repository.OnDemandDBConnection.setCredentials(), sfi.director.repository.OnDemandDBConnection.setError(), sfi.director.repository.OnDemandDBConnection.setOption(), and sfi.director.repository.OnDemandDBConnection.truncate().
|
protected |