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

The AtomicFileRetriever tries to replace target files in one (nearly) "atomic" rename operation after file close. More...

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

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

Detailed Description

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.

Constructor & Destructor Documentation

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

Member Function Documentation

RemoteFile sfi.director.retriever.AtomicFileRetriever.connect ( String  url,
RemoteJob  context 
) throws DirectorException
virtual
OutputStream sfi.director.retriever.AtomicFileRetriever.writer ( File  tmpfile,
File  outfile 
) throws IOException
protected

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