|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nu.staldal.lagoon.core.RemoteFileStorage
public abstract class RemoteFileStorage
Helper class to implement a FileStorage which stores file modification dates locally in the Lagoon working directory.
Constructor Summary | |
---|---|
RemoteFileStorage()
|
Method Summary | |
---|---|
protected void |
closeDateFile()
Close the file to store last update dates locally. |
long |
fileLastModified(java.lang.String pathname)
Check if a file exists and when it was last modified. |
protected void |
fileModified(java.lang.String pathname)
Signals that a file has been created or updated. |
protected void |
openDateFile(LagoonContext context)
Open the file to store last update dates locally. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nu.staldal.lagoon.core.FileStorage |
---|
close, createFile, deleteFile, isReentrant, needPassword, open |
Constructor Detail |
---|
public RemoteFileStorage()
Method Detail |
---|
protected void openDateFile(LagoonContext context) throws java.io.IOException
FileStorage.open(java.lang.String, nu.staldal.lagoon.core.LagoonContext, java.lang.String)
method.
java.io.IOException
protected void closeDateFile() throws java.io.IOException
FileStorage.close()
method.
java.io.IOException
protected void fileModified(java.lang.String pathname)
OutputHandler.commit()
method.
public final long fileLastModified(java.lang.String pathname)
fileLastModified
in interface FileStorage
pathname
- path to the file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |