|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.filesys.state.FileStateTable
public class FileStateTable
File State Table Class
Contains an indexed list of the currently open files/folders.
| Constructor Summary | |
|---|---|
FileStateTable()
Class constructor |
|
| Method Summary | |
|---|---|
void |
addFileState(FileState fstate)
Add a new file state |
void |
Dump()
Dump the state cache entries to the specified stream |
java.util.Enumeration |
enumerate()
Enumerate the file state cache |
FileState |
findFileState(java.lang.String path)
Find the file state for the specified path |
FileState |
findFileState(java.lang.String path,
boolean isdir,
boolean create)
Find the file state for the specified path, and optionally create a new file state if not found |
long |
getCacheTimer()
Get the file state cache timer, in milliseconds |
int |
numberOfStates()
Return the number of states in the cache |
void |
removeAllFileStates()
Remove all file states from the cache |
int |
removeExpiredFileStates()
Remove expired file states from the cache |
FileState |
removeFileState(java.lang.String path)
Remove the file state for the specified path |
void |
renameFileState(java.lang.String newPath,
FileState state)
Rename a file state, remove the existing entry, update the path and add the state back into the cache using the new path. |
void |
setCacheTimer(long tmo)
Set the default file state cache timer, in milliseconds |
FileState |
updateFileState(java.lang.String oldName,
java.lang.String newName)
Update the name that a file state is cached under, and the associated file state |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileStateTable()
| Method Detail |
|---|
public final long getCacheTimer()
public final int numberOfStates()
public final void setCacheTimer(long tmo)
tmo - longpublic final void addFileState(FileState fstate)
fstate - FileStatepublic final FileState findFileState(java.lang.String path)
path - String
public final FileState findFileState(java.lang.String path,
boolean isdir,
boolean create)
path - Stringisdir - booleancreate - boolean
public final FileState updateFileState(java.lang.String oldName,
java.lang.String newName)
oldName - StringnewName - String
public final java.util.Enumeration enumerate()
public final FileState removeFileState(java.lang.String path)
path - String
public final void renameFileState(java.lang.String newPath,
FileState state)
newPath - Stringstate - FileStatepublic final void removeAllFileStates()
public final int removeExpiredFileStates()
public final void Dump()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||