Node Director
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sfi.director.repository.DivertDB Class Reference

implements a write-only database expecting one or multiple <objectclass> objects each followed by a number of associated objects. More...

Inheritance diagram for sfi.director.repository.DivertDB:
sfi.director.repository.DBConnection sfi.director.repository.HostDivertDB sfi.director.repository.UserDivertDB

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"

Detailed Description

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.

Constructor & Destructor Documentation

sfi.director.repository.DivertDB.DivertDB ( )
sfi.director.repository.DivertDB.DivertDB ( String  url)

Member Function Documentation

void sfi.director.repository.DivertDB.append ( DBObject  dbo) throws DirectorException
virtual
void sfi.director.repository.DivertDB.close ( ) throws DirectorException
void sfi.director.repository.DivertDB.finalize ( )
protected
boolean sfi.director.repository.DivertDB.isHead ( DBObject  dbo)
protected
Enumeration sfi.director.repository.DivertDB.search ( final String  expr,
Options  searchopt 
) throws DirectorException
  • Exceptions
    DirectorException
    Parameters
    expr
    searchopt
void sfi.director.repository.DivertDB.setURL ( String  url) throws DirectorException

set URL of the RemoteFile used for input/output

Exceptions
DirectorException
Parameters
url

Reimplemented from sfi.director.repository.DBConnection.

References sfi.director.repository.DBConnection.url.

Referenced by sfi.director.repository.DivertDB.DivertDB().

void sfi.director.repository.DivertDB.truncate ( ) throws DirectorException
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().

Member Data Documentation

Filter sfi.director.repository.DivertDB.filter
protected
Object sfi.director.repository.DivertDB.lastWarned = new Object()
protected
boolean sfi.director.repository.DivertDB.truncate = false
protected

The documentation for this class was generated from the following file: