Node Director
|
The AtomicFileRetriever tries to replace target files in one (nearly) "atomic" rename operation after file close. More...
Classes | |
class | AtomicFile |
Public Member Functions | |
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 |
Protected Member Functions | |
OutputStream | writer (File tmpfile, File outfile) throws IOException |
The AtomicFileRetriever tries to replace target files in one (nearly) "atomic" rename operation after file close.
This is useful for replacing files where you have to guarantee that they are consistant at any time.
If the target file exists AtomicFileRetriever will try to set the same permissions on the newly created file.
sfi.director.retriever.AtomicFileRetriever.AtomicFileRetriever | ( | ) |
sfi.director.retriever.AtomicFileRetriever.AtomicFileRetriever | ( | String | name | ) |
|
virtual |
|
protected |
Reimplemented in sfi.director.retriever.FileInsertRetriever, and sfi.director.retriever.BackupFileRetriever.
Referenced by sfi.director.retriever.AtomicFileRetriever.connect().