Node Director
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
sfi.director.retriever.FileInsertRetriever Class Reference

The FileInsertRetriever tries to replace specially marked sections in target files. More...

Inheritance diagram for sfi.director.retriever.FileInsertRetriever:
sfi.director.retriever.BackupFileRetriever sfi.director.retriever.AtomicFileRetriever sfi.director.retriever.FileRetriever sfi.director.retriever.Retriever sfi.director.retriever.RetrieverDriver

Classes

class  FileInserter

Public Member Functions

 FileInsertRetriever ()
 FileInsertRetriever (String name)
- Public Member Functions inherited from sfi.director.retriever.BackupFileRetriever
 BackupFileRetriever ()
 BackupFileRetriever (String name)
- Public Member Functions inherited from sfi.director.retriever.AtomicFileRetriever
 AtomicFileRetriever ()
 AtomicFileRetriever (String name)
RemoteFile connect (String url, RemoteJob context) throws DirectorException
- Public Member Functions inherited from sfi.director.retriever.FileRetriever
 FileRetriever ()
 FileRetriever (String name)
boolean accept (String url, RemoteJob context)
- Public Member Functions inherited from sfi.director.retriever.Retriever
 Retriever ()
 Retriever (String name)
String name ()
boolean accept (String url)
RemoteFile connect (String url) throws sfi.director.util.DirectorException

Static Public Attributes

static String magicstart = "##BEGIN director maintained section"
static String magicend = "##END director maintained section"

Protected Member Functions

OutputStream writer (File tmpfile, File outfile) throws IOException

Detailed Description

The FileInsertRetriever tries to replace specially marked sections in target files.

It bases on the AtomicFileRetriever and file update will therefore take place in a near-atomic way.

The section to be auto-updated in the target file must be marked within lines containing

##BEGIN director maintained section

and

##END director maintained section

Constructor & Destructor Documentation

sfi.director.retriever.FileInsertRetriever.FileInsertRetriever ( )
sfi.director.retriever.FileInsertRetriever.FileInsertRetriever ( String  name)

Member Function Documentation

OutputStream sfi.director.retriever.FileInsertRetriever.writer ( File  tmpfile,
File  outfile 
) throws IOException
protected

Member Data Documentation

String sfi.director.retriever.FileInsertRetriever.magicend = "##END director maintained section"
static
String sfi.director.retriever.FileInsertRetriever.magicstart = "##BEGIN director maintained section"
static

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