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

reads/writes virtusertable files More...

Inheritance diagram for sfi.director.repository.VirtusertableFile:
sfi.director.repository.FileDB sfi.director.repository.DBConnection

Public Member Functions

 VirtusertableFile ()
 VirtusertableFile (String url)
- Public Member Functions inherited from sfi.director.repository.FileDB
 FileDB ()
 FileDB (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
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

String readRecord (BufferedReader in) throws Exception
 read one record out of the source file
DBObject decode (String record)
 decodes one record
String encode (DBObject dbo) throws DirectorException
 converts a DBObject into a textual mail alias record
- Protected Member Functions inherited from sfi.director.repository.FileDB
void finalize ()
DBAccessor readNext (BufferedReader in, Filter expr)
void open_append () throws DirectorException
int eatspace (String s, int idx)
int backeatspace (String s, int idx)
String readRecord_line (BufferedReader file) throws Exception
String readRecord_freeline (BufferedReader file) throws Exception
String readRecord_freemultiline (BufferedReader file) throws Exception
String readRecord_separator (BufferedReader file, String separator) throws Exception
String readRecord_separator (BufferedReader file, String separator, String comment) throws Exception
String readRecord_startSeparator (BufferedReader file, String separator) throws Exception
String file (DBObject dbo) throws DirectorException

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"
- Protected Attributes inherited from sfi.director.repository.FileDB
RemoteFile file = null
OutputStream out = null

Detailed Description

reads/writes virtusertable files

Constructor & Destructor Documentation

sfi.director.repository.VirtusertableFile.VirtusertableFile ( )
sfi.director.repository.VirtusertableFile.VirtusertableFile ( String  url)
  • Parameters
    url

Member Function Documentation

DBObject sfi.director.repository.VirtusertableFile.decode ( String  record)
protected

decodes one record

Parameters
record
Returns
DBObject associated with the record

Reimplemented from sfi.director.repository.FileDB.

String sfi.director.repository.VirtusertableFile.encode ( DBObject  dbo) throws DirectorException
protected

converts a DBObject into a textual mail alias record

Exceptions
DirectorException
Parameters
dbo
Returns
mail alias file entry

Reimplemented from sfi.director.repository.FileDB.

References sfi.director.repository.DBConnection.getOption(), and sfi.director.util.Tools.split().

String sfi.director.repository.VirtusertableFile.readRecord ( BufferedReader  in) throws Exception
protected

read one record out of the source file

Exceptions
Exception
Parameters
in
Returns
text belonging to this record

Reimplemented from sfi.director.repository.FileDB.

References sfi.director.repository.FileDB.readRecord_freeline().


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