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

implements access to NIS tables. More...

Inheritance diagram for sfi.director.repository.NISTable:
sfi.director.repository.DBConnection

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

Detailed Description

implements access to NIS tables.

Currently this is write only access.

Constructor & Destructor Documentation

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

References sfi.director.repository.NISTable.setURL().

Member Function Documentation

void sfi.director.repository.NISTable.append ( DBObject  dbo) throws DirectorException
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
void sfi.director.repository.NISTable.finalize ( )
protected
Enumeration sfi.director.repository.NISTable.search ( final String  expr,
Options  searchopt 
) throws DirectorException
  • Exceptions
    DirectorException
    Parameters
    expr
    searchopt
void sfi.director.repository.NISTable.setURL ( String  urlStr) throws DirectorException

set URL of the NIS Table used for I/O.

Exceptions
DirectorException
Parameters
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().

void sfi.director.repository.NISTable.truncate ( ) throws DirectorException
virtual

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