Node Director
|
subclasses implement a simple flat file based DBConnection usually used for accessing/writing objects in text based databases such as /etc/passwd More...
Public Member Functions | |
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 | |
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 (BufferedReader file) throws Exception |
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 |
DBObject | decode (String record) throws DirectorException |
String | encode (DBObject dbo) throws DirectorException |
String | file (DBObject dbo) throws DirectorException |
Protected Attributes | |
RemoteFile | file = null |
OutputStream | out = null |
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" |
subclasses implement a simple flat file based DBConnection usually used for accessing/writing objects in text based databases such as /etc/passwd
sfi.director.repository.FileDB.FileDB | ( | ) |
sfi.director.repository.FileDB.FileDB | ( | String | url | ) |
url |
References sfi.director.repository.FileDB.setURL().
|
virtual |
*
DirectorException |
dbo |
Implements sfi.director.repository.DBConnection.
References sfi.director.repository.FileDB.encode(), sfi.director.repository.FileDB.file, sfi.director.repository.FileDB.open_append(), and sfi.director.repository.FileDB.out.
|
protected |
Reimplemented in sfi.director.repository.NidumpFile.
Referenced by sfi.director.repository.FileDB.readRecord_freeline(), and sfi.director.repository.FileDB.readRecord_freemultiline().
void sfi.director.repository.FileDB.close | ( | ) | throws DirectorException |
Reimplemented from sfi.director.repository.DBConnection.
Reimplemented in sfi.director.repository.DHCPfile, and sfi.director.repository.NCUserCfgFile.
References sfi.director.repository.FileDB.out, and sfi.director.repository.DBConnection.url.
Referenced by sfi.director.repository.FileDB.finalize().
|
protected |
Reimplemented in sfi.director.repository.PasswdFile, sfi.director.repository.MailAliasFile, sfi.director.repository.NetgroupFile, sfi.director.repository.CupsPrintersFile, sfi.director.repository.VirtusertableFile, sfi.director.repository.CupsDriversFile, sfi.director.repository.ApachePasswdFile, sfi.director.repository.ProtocolsFile, sfi.director.repository.HostsFile, sfi.director.repository.TimezoneFile, sfi.director.repository.ServicesFile, sfi.director.repository.AutomounterFile, sfi.director.repository.FileWrapperDB, sfi.director.repository.GroupFile, sfi.director.repository.MailertableFile, sfi.director.repository.RpcFile, sfi.director.repository.MailNameFile, sfi.director.repository.BootparamsFile, sfi.director.repository.EthersFile, sfi.director.repository.SambaPasswdFile, sfi.director.repository.AutomasterFile, sfi.director.repository.ApacheGroupFile, sfi.director.repository.JSONFile, sfi.director.repository.NetmasksFile, sfi.director.repository.ShadowFile, sfi.director.repository.AliasesNidump, sfi.director.repository.LDIFFile, sfi.director.repository.PopmapFile, and sfi.director.repository.NetworksFile.
Referenced by sfi.director.repository.FileDB.readNext().
|
protected |
|
protected |
Reimplemented in sfi.director.repository.MailAliasFile, sfi.director.repository.NetgroupFile, sfi.director.repository.PasswdFile, sfi.director.repository.AutomounterFile, sfi.director.repository.ProtocolsFile, sfi.director.repository.AliasesNidump, sfi.director.repository.CupsPrintersFile, sfi.director.repository.DHCPfile, sfi.director.repository.HostsFile, sfi.director.repository.ServicesFile, sfi.director.repository.GroupFile, sfi.director.repository.DNSrevfile, sfi.director.repository.DNSfile, sfi.director.repository.ApachePasswdFile, sfi.director.repository.ApacheGroupFile, sfi.director.repository.AutomasterFile, sfi.director.repository.VirtusertableFile, sfi.director.repository.BootparamsFile, sfi.director.repository.TimezoneFile, sfi.director.repository.CupsDriversFile, sfi.director.repository.NCUserCfgFile, sfi.director.repository.SambaPasswdFile, sfi.director.repository.EthersFile, sfi.director.repository.MailertableFile, sfi.director.repository.ShadowFile, sfi.director.repository.FileWrapperDB, sfi.director.repository.NetmasksFile, sfi.director.repository.RpcFile, sfi.director.repository.CupsPrintcapFile, sfi.director.repository.JSONFile, sfi.director.repository.MailNameFile, sfi.director.repository.PopmapFile, sfi.director.repository.LDIFFile, sfi.director.repository.NameListFile, sfi.director.repository.NetworksFile, and sfi.director.repository.MailAccessFile.
Referenced by sfi.director.repository.FileDB.append().
|
protected |
|
protected |
References sfi.director.repository.FileDB.close().
|
protected |
|
protected |
References sfi.director.repository.FileDB.decode(), sfi.director.repository.Filter.matches(), sfi.director.repository.FileDB.readRecord(), sfi.director.repository.DBConnection.replace(), sfi.director.repository.DBConnection.setError(), and sfi.director.repository.DBConnection.url.
Referenced by sfi.director.repository.FileDB.search().
|
protected |
Reimplemented in sfi.director.repository.MailAliasFile, sfi.director.repository.CupsPrintersFile, sfi.director.repository.VirtusertableFile, sfi.director.repository.NidumpFile, sfi.director.repository.ProtocolsFile, sfi.director.repository.NetgroupFile, sfi.director.repository.HostsFile, sfi.director.repository.LDIFFile, sfi.director.repository.ServicesFile, sfi.director.repository.MailertableFile, sfi.director.repository.RpcFile, sfi.director.repository.TimezoneFile, sfi.director.repository.BootparamsFile, sfi.director.repository.EthersFile, sfi.director.repository.CupsDriversFile, sfi.director.repository.FileWrapperDB, and sfi.director.repository.NameListFile.
References sfi.director.repository.FileDB.file, and sfi.director.repository.FileDB.readRecord_line().
Referenced by sfi.director.repository.FileDB.readNext().
|
protected |
References sfi.director.repository.FileDB.backeatspace(), sfi.director.repository.FileDB.eatspace(), and sfi.director.repository.FileDB.file.
Referenced by sfi.director.repository.EthersFile.readRecord(), sfi.director.repository.MailertableFile.readRecord(), sfi.director.repository.TimezoneFile.readRecord(), sfi.director.repository.RpcFile.readRecord(), sfi.director.repository.ServicesFile.readRecord(), sfi.director.repository.HostsFile.readRecord(), sfi.director.repository.ProtocolsFile.readRecord(), sfi.director.repository.VirtusertableFile.readRecord(), and sfi.director.repository.MailAliasFile.readRecord().
|
protected |
|
protected |
References sfi.director.repository.FileDB.file.
Referenced by sfi.director.repository.CupsPrintersFile.readRecord(), and sfi.director.repository.FileDB.readRecord().
|
protected |
References sfi.director.repository.FileDB.file.
Referenced by sfi.director.repository.LDIFFile.readRecord().
|
protected |
References sfi.director.repository.FileDB.file.
|
protected |
References sfi.director.repository.FileDB.file.
Referenced by sfi.director.repository.NidumpFile.readRecord().
Enumeration sfi.director.repository.FileDB.search | ( | final String | expr, |
Options | searchopt | ||
) | throws DirectorException |
DirectorException |
expr | |
searchopt |
References sfi.director.retriever.RemoteFile.connectRetrieve(), sfi.director.repository.FileDB.file, sfi.director.repository.FileDB.readNext(), sfi.director.repository.DBConnection.SEARCH_BASEDN, and sfi.director.repository.DBConnection.url.
void sfi.director.repository.FileDB.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.FileDB.file, sfi.director.retriever.RetrieverManager.getConnection(), and sfi.director.repository.DBConnection.url.
Referenced by sfi.director.repository.FileDB.FileDB().
|
virtual |
|
protected |
Referenced by sfi.director.repository.FileDB.append(), sfi.director.repository.NCUserCfgFile.close(), sfi.director.repository.NCOdbcIniFile.encodeEntry(), sfi.director.repository.FileDB.open_append(), sfi.director.repository.FileWrapperDB.readRecord(), sfi.director.repository.LDIFFile.readRecord(), sfi.director.repository.NidumpFile.readRecord(), sfi.director.repository.CupsPrintersFile.readRecord(), sfi.director.repository.FileDB.readRecord(), sfi.director.repository.FileDB.readRecord_freeline(), sfi.director.repository.FileDB.readRecord_freemultiline(), sfi.director.repository.FileDB.readRecord_line(), sfi.director.repository.FileDB.readRecord_separator(), sfi.director.repository.FileDB.readRecord_startSeparator(), sfi.director.repository.FileDB.search(), sfi.director.repository.FileDB.setURL(), and sfi.director.repository.FileDB.truncate().
|
protected |