sfi.director.retriever.AtomicFileRetriever Class Reference

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 List of all members.

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.


Public Member Functions

 AtomicFileRetriever ()
 AtomicFileRetriever (String name)
RemoteFile connect (String url, RemoteJob context) throws DirectorException

Protected Member Functions

OutputStream writer (File tmpfile, File outfile) throws IOException

Package Attributes

boolean ownerSticky = true

Classes

class  AtomicFile


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]
 

Reimplemented from sfi.director.retriever.FileRetriever.

OutputStream sfi.director.retriever.AtomicFileRetriever.writer File  tmpfile,
File  outfile
throws IOException [protected]
 

Reimplemented in sfi.director.retriever.BackupFileRetriever, and sfi.director.retriever.FileInsertRetriever.


Member Data Documentation

boolean sfi.director.retriever.AtomicFileRetriever.ownerSticky = true [package]
 


The documentation for this class was generated from the following file:
Generated on Sat Aug 16 01:20:56 2008 for Node Director by  doxygen 1.4.5