|
Node Director
|
implements a write-only database expecting one or multiple <objectclass> objects each followed by a number of associated objects. More...
Public Member Functions | |
| DivertDB () | |
| DivertDB (String url) | |
| void | setURL (String url) throws DirectorException |
| set URL of the RemoteFile used for input/output | |
| Enumeration | search (final String expr, Options searchopt) throws DirectorException |
| void | append (DBObject dbo) throws DirectorException |
| void | truncate () throws DirectorException |
| remember truncate() calls. | |
| void | close () throws DirectorException |
Public Member Functions inherited from sfi.director.repository.DBConnection | |
| void | setCredentials (Credentials cred) |
| String | getURL () |
| void | setContext (RemoteJob context) |
| void | setOption (String option) |
| void | setOption (String option, String val) |
| void | setOption (Options opt) |
| void | setOption (SURL url) |
| String | getOption (String option) |
| void | setError (Exception e) |
| Exception | getError () |
| DN | completeDN (DN dn) |
| Enumeration | search (String expr) throws DirectorException |
| abstract Enumeration | search (String expr, Options searchopt) 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 |
Protected Member Functions | |
| void | finalize () |
| boolean | isHead (DBObject dbo) |
Protected Attributes | |
| Filter | filter |
| boolean | truncate = false |
| Object | lastWarned = new Object() |
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" |
implements a write-only database expecting one or multiple <objectclass> objects each followed by a number of associated objects.
Each time an <objectclass> object is detected, a new DBConnection is opened. The local part of the DivertDB database is a template expanded with the head object.
| sfi.director.repository.DivertDB.DivertDB | ( | ) |
| sfi.director.repository.DivertDB.DivertDB | ( | String | url | ) |
| url |
References sfi.director.repository.DivertDB.filter, sfi.director.repository.DBConnection.getOption(), and sfi.director.repository.DivertDB.setURL().
|
virtual |
*
| DirectorException |
| dbo |
Implements sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.append(), sfi.director.repository.DivertDB.close(), sfi.director.util.Logger.DEBUG, sfi.director.util.Tools.expand(), sfi.director.repository.DBManager.getConnection(), sfi.director.repository.DBConnection.getOption(), sfi.director.repository.DivertDB.isHead(), sfi.director.repository.DivertDB.lastWarned, sfi.director.util.Tools.log(), sfi.director.repository.DivertDB.truncate(), sfi.director.repository.DBConnection.truncate(), and sfi.director.repository.DBConnection.url.
| void sfi.director.repository.DivertDB.close | ( | ) | throws DirectorException |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.close().
Referenced by sfi.director.repository.DivertDB.append(), and sfi.director.repository.DivertDB.finalize().
|
protected |
References sfi.director.repository.DivertDB.close().
|
protected |
References sfi.director.repository.DivertDB.filter, and sfi.director.repository.Filter.matches().
Referenced by sfi.director.repository.DivertDB.append().
| Enumeration sfi.director.repository.DivertDB.search | ( | final String | expr, |
| Options | searchopt | ||
| ) | throws DirectorException |
| DirectorException |
| expr | |
| searchopt |
| void sfi.director.repository.DivertDB.setURL | ( | String | url | ) | throws DirectorException |
set URL of the RemoteFile used for input/output
| DirectorException |
| url |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.repository.DBConnection.url.
Referenced by sfi.director.repository.DivertDB.DivertDB().
|
virtual |
remember truncate() calls.
If truncate was ever invoked new connections opened after a truncate() call will also be truncated when opened.
Implements sfi.director.repository.DBConnection.
Referenced by sfi.director.repository.DivertDB.append().
|
protected |
|
protected |
Referenced by sfi.director.repository.DivertDB.append().
|
protected |
1.8.1.2