protected class NetworkFileCache.FileEntry extends Object
Constructor and Description |
---|
NetworkFileCache.FileEntry(NetworkFile file,
TreeConnection conn,
NFSSrvSession sess)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
closeFile()
Close the file
|
TreeConnection |
getConnection()
Return the disk share connection
|
NetworkFile |
getFile()
Return the network file
|
NFSSrvSession |
getSession()
Get the session that last accessed the file
|
long |
getTimeout()
Return the file timeout
|
boolean |
isClosed()
Check if the network file has been closed due to no I/O activity
|
void |
markAsClosed()
Mark the file entry as closed
|
void |
openFile()
Open the network file
|
void |
setSession(NFSSrvSession sess)
Set the session that last accessed the file
|
void |
updateTimeout()
Update the file timeout
|
void |
updateTimeout(long tmo)
Update the file timeout
|
public NetworkFileCache.FileEntry(NetworkFile file, TreeConnection conn, NFSSrvSession sess)
file
- NetworkFileconn
- TreeConnectionsess
- NFSSrvSessionpublic final long getTimeout()
public final NetworkFile getFile()
public final TreeConnection getConnection()
public final NFSSrvSession getSession()
public final void updateTimeout()
public final void updateTimeout(long tmo)
tmo
- longpublic final void setSession(NFSSrvSession sess)
sess
- NFSSrvSessionpublic final boolean isClosed()
public final void closeFile()
public final void openFile()
public final void markAsClosed()
Copyright © 2005–2017 Alfresco Software. All rights reserved.