Node Director
|
The FileInsertRetriever tries to replace specially marked sections in target files. More...
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 |
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
sfi.director.retriever.FileInsertRetriever.FileInsertRetriever | ( | ) |
sfi.director.retriever.FileInsertRetriever.FileInsertRetriever | ( | String | name | ) |
|
protected |
Reimplemented from sfi.director.retriever.BackupFileRetriever.
|
static |
|
static |