Node Director
Public Member Functions | Protected Member Functions | List of all members
sfi.director.application.config.ConfigFileHandler Class Reference

config file handler. More...

Inheritance diagram for sfi.director.application.config.ConfigFileHandler:
sfi.director.util.ArchiveFilter sfi.director.application.config.Automounter sfi.director.application.config.CompatPasswd sfi.director.application.config.ConfigDir sfi.director.application.config.GenericFileHandler sfi.director.application.config.HerkeoisFbConf sfi.director.application.config.InitTab sfi.director.application.config.NamedConf sfi.director.application.config.NetgroupFile sfi.director.application.config.NFSDFSTab sfi.director.application.config.NFSExports sfi.director.application.config.NoConfigHandler sfi.director.application.config.NTPConf sfi.director.application.config.NTPKeys sfi.director.application.config.NTPTickers sfi.director.application.config.SambaSMBConf sfi.director.application.config.SendmailCF sfi.director.application.config.SendmailCW sfi.director.application.config.SendmailMasquerade sfi.director.application.config.SimpleKeyHandler sfi.director.application.config.SquidConf sfi.director.application.config.UUCPCall

Public Member Functions

void save (SaveConfigEnvironment env) throws DirectorException
 save this file if the ConfigEnvironment demands it.
void saveFile (SaveConfigEnvironment env, String file, String id) throws DirectorException
boolean isInScope (SaveConfigEnvironment env)
 does the ConfigEnvironment imply this config file must be saved.
String findFile (ConfigEnvironment env, boolean force)
 try to find the best matching file out of the filesel list.
synchronized void restore (RestoreConfigEnvironment env) throws DirectorException
 restore one config file from config environment env.
String id ()
String[] Packages ()
String[] Packages (String id)
String description (String id)
String configPrefixById (String id)
void archiveStart (OutputStream out)
void archiveWrite (byte[] data, int size) throws IOException
void archiveClose () throws IOException

Protected Member Functions

 ConfigFileHandler ()
 ConfigFileHandler (String id, String[] packages, String[] filesel)
void performPostRestore (RestoreConfigEnvironment env)
RestoreConfigEnvironment restEnv ()
void restEnv (RestoreConfigEnvironment env)
void id (String newid)
void Packages (String[] newpackages)
void Filesel (String[] newfilesel)
String[] Filesel ()
String[] restartIfProcs ()
void restartIfProcs (String[] procs)
String[] restartServices ()
void restartServices (String[] services)
String configPrefix ()
void configPrefix (String prefix)
void processLine (RestoreConfigEnvironment env, String line) throws IOException
Vector dropThem ()
Hashtable needInsert ()
void startFile (RestoreConfigEnvironment env)
void endFile (RestoreConfigEnvironment env) throws IOException
 place holder for handler specific finalization code
void emit (String key) throws IOException
void emit (String key, String value) throws IOException

Detailed Description

config file handler.

Classes derived from this class handle one specific config file.

Constructor & Destructor Documentation

sfi.director.application.config.ConfigFileHandler.ConfigFileHandler ( )
protected
sfi.director.application.config.ConfigFileHandler.ConfigFileHandler ( String  id,
String[]  packages,
String[]  filesel 
)
protected

Member Function Documentation

void sfi.director.application.config.ConfigFileHandler.archiveClose ( ) throws IOException
void sfi.director.application.config.ConfigFileHandler.archiveStart ( OutputStream  out)
void sfi.director.application.config.ConfigFileHandler.archiveWrite ( byte[]  data,
int  size 
) throws IOException
String sfi.director.application.config.ConfigFileHandler.configPrefix ( )
protected

Referenced by sfi.director.application.config.Automounter.Automounter(), sfi.director.application.config.CompatPasswd.CompatPasswd(), sfi.director.application.config.ConfigFileHandler.configPrefix(), sfi.director.application.config.ConfigFileHandler.configPrefixById(), sfi.director.application.config.CupsConf.CupsConf(), sfi.director.application.config.CupsPrinters.CupsPrinters(), sfi.director.application.config.EtcServices.EtcServices(), sfi.director.application.config.InitTab.InitTab(), sfi.director.application.config.LoginDefs.LoginDefs(), sfi.director.application.config.MgettyConfig.MgettyConfig(), sfi.director.application.config.MgettyDialin.MgettyDialin(), sfi.director.application.config.MgettyLogin.MgettyLogin(), sfi.director.application.config.NamedConf.NamedConf(), sfi.director.application.config.NetgroupFile.NetgroupFile(), sfi.director.application.config.NFSDFSTab.NFSDFSTab(), sfi.director.application.config.NFSExports.NFSExports(), sfi.director.application.config.NTPConf.NTPConf(), sfi.director.application.config.NTPKeys.NTPKeys(), sfi.director.application.config.NTPTickers.NTPTickers(), sfi.director.application.config.ResolvConf.ResolvConf(), sfi.director.application.config.SendmailAccess.SendmailAccess(), sfi.director.application.config.SendmailCF.SendmailCF(), sfi.director.application.config.SendmailCW.SendmailCW(), sfi.director.application.config.SendmailMasquerade.SendmailMasquerade(), sfi.director.application.config.SquidConf.SquidConf(), sfi.director.application.config.ConfigFileHandler.startFile(), sfi.director.application.config.UUCPCall.UUCPCall(), sfi.director.application.config.UUCPConfig.UUCPConfig(), sfi.director.application.config.UUCPDial.UUCPDial(), sfi.director.application.config.UUCPDialcode.UUCPDialcode(), sfi.director.application.config.UUCPPasswd.UUCPPasswd(), sfi.director.application.config.UUCPPort.UUCPPort(), and sfi.director.application.config.UUCPSys.UUCPSys().

void sfi.director.application.config.ConfigFileHandler.configPrefix ( String  prefix)
protected
String sfi.director.application.config.ConfigFileHandler.configPrefixById ( String  id)
String sfi.director.application.config.ConfigFileHandler.description ( String  id)
Vector sfi.director.application.config.ConfigFileHandler.dropThem ( )
protected
void sfi.director.application.config.ConfigFileHandler.emit ( String  key) throws IOException
protected
void sfi.director.application.config.ConfigFileHandler.emit ( String  key,
String  value 
) throws IOException
protected
void sfi.director.application.config.ConfigFileHandler.endFile ( RestoreConfigEnvironment  env) throws IOException
protected
void sfi.director.application.config.ConfigFileHandler.Filesel ( String[]  newfilesel)
protected
String [] sfi.director.application.config.ConfigFileHandler.Filesel ( )
protected
String sfi.director.application.config.ConfigFileHandler.findFile ( ConfigEnvironment  env,
boolean  force 
)
void sfi.director.application.config.ConfigFileHandler.id ( String  newid)
protected
String sfi.director.application.config.ConfigFileHandler.id ( )
boolean sfi.director.application.config.ConfigFileHandler.isInScope ( SaveConfigEnvironment  env)
Hashtable sfi.director.application.config.ConfigFileHandler.needInsert ( )
protected
void sfi.director.application.config.ConfigFileHandler.Packages ( String[]  newpackages)
protected
String [] sfi.director.application.config.ConfigFileHandler.Packages ( )
String [] sfi.director.application.config.ConfigFileHandler.Packages ( String  id)
void sfi.director.application.config.ConfigFileHandler.performPostRestore ( RestoreConfigEnvironment  env)
protected
void sfi.director.application.config.ConfigFileHandler.processLine ( RestoreConfigEnvironment  env,
String  line 
) throws IOException
protected
String [] sfi.director.application.config.ConfigFileHandler.restartIfProcs ( )
protected
void sfi.director.application.config.ConfigFileHandler.restartIfProcs ( String[]  procs)
protected
String [] sfi.director.application.config.ConfigFileHandler.restartServices ( )
protected
void sfi.director.application.config.ConfigFileHandler.restartServices ( String[]  services)
protected
RestoreConfigEnvironment sfi.director.application.config.ConfigFileHandler.restEnv ( )
protected
void sfi.director.application.config.ConfigFileHandler.restEnv ( RestoreConfigEnvironment  env)
protected
synchronized void sfi.director.application.config.ConfigFileHandler.restore ( RestoreConfigEnvironment  env) throws DirectorException
void sfi.director.application.config.ConfigFileHandler.save ( SaveConfigEnvironment  env) throws DirectorException
void sfi.director.application.config.ConfigFileHandler.saveFile ( SaveConfigEnvironment  env,
String  file,
String  id 
) throws DirectorException
void sfi.director.application.config.ConfigFileHandler.startFile ( RestoreConfigEnvironment  env)
protected

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