Node Director
|
implements access to NIS tables. More...
Public Member Functions | |
NISTable () | |
NISTable (String url) | |
void | setURL (String urlStr) throws DirectorException |
set URL of the NIS Table used for I/O. | |
Enumeration | search (final String expr, Options searchopt) throws DirectorException |
void | append (DBObject dbo) throws DirectorException |
append a NIS entry to a table. | |
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 () |
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.DBConnection | |
String | url |
RemoteJob | context |
Options | options = new Options() |
Exception | error = null |
implements access to NIS tables.
Currently this is write only access.
sfi.director.repository.NISTable.NISTable | ( | ) |
sfi.director.repository.NISTable.NISTable | ( | String | url | ) |
url |
References sfi.director.repository.NISTable.setURL().
|
virtual |
append a NIS entry to a table.
This will only work if the table was truncated first as the NISTable driver cannot append to an existing table. Append will queue up entries in memory. They will not be written to the NIS table until a close() is invoked. This prevents us of getting corrupted NIS maps if processing of entries fails before the whole map was written.
Implements sfi.director.repository.DBConnection.
void sfi.director.repository.NISTable.close | ( | ) | throws DirectorException |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.util.Tools.attachErrorLogger(), sfi.director.util.Tools.consume(), sfi.director.util.Tools.exec(), sfi.director.util.Tools.execWait(), sfi.director.repository.DBConnection.getOption(), sfi.director.util.MyProperties.getProperty(), sfi.director.util.MyProperties.getPropertyBoolean(), sfi.director.util.Setup.properties, sfi.director.util.Tools.split(), and sfi.director.util.Tools.workingWaitFor().
Referenced by sfi.director.repository.NISTable.finalize().
|
protected |
References sfi.director.repository.NISTable.close().
Enumeration sfi.director.repository.NISTable.search | ( | final String | expr, |
Options | searchopt | ||
) | throws DirectorException |
DirectorException |
expr | |
searchopt |
void sfi.director.repository.NISTable.setURL | ( | String | urlStr | ) | throws DirectorException |
set URL of the NIS Table used for I/O.
DirectorException |
url |
Reimplemented from sfi.director.repository.DBConnection.
References sfi.director.util.SURL.getFile(), sfi.director.util.SURL.getHost(), and sfi.director.repository.DBConnection.setOption().
Referenced by sfi.director.repository.NISTable.NISTable().
|
virtual |
Implements sfi.director.repository.DBConnection.