public class NFSSrvSession extends SrvSession
Constructor and Description |
---|
NFSSrvSession(NetworkServer srv,
InetAddress addr,
int port,
int type)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addConnection(TreeConnection tree)
Add a new connection to the list of active tree connections for this session
|
protected int |
allocateSearchSlot(SearchContext search)
Allocate a slot in the active searches list for a new search.
|
protected void |
cleanupSession()
Cleanup any resources owned by this session, close files, searches and change notification requests.
|
void |
closeSession()
Close the session, cleanup any resources.
|
protected void |
deallocateSearchSlot(int ctxId)
Deallocate the specified search context/slot.
|
TreeConnection |
findConnection(int shareHash)
Find the tree connection for the specified share hash
|
Object |
getAuthIdentifier()
Return the authentication identifier
|
NetworkFileCache |
getFileCache()
Return the open file cache
|
long |
getLastAccess()
Get the last access date/time for the session
|
ClientInfo |
getNFSClientInformation()
return the NFS client information
|
NFSServer |
getNFSServer()
Return the NFS server that the session is associated with
|
InetAddress |
getRemoteAddress()
Return the client network address
|
int |
getRemotePort()
Return the remote port
|
protected SearchContext |
getSearchContext(int srchId)
Return the search context for the specified search id.
|
int |
getSearchCount()
Return the number of active tree searches.
|
boolean |
hasAuthIdentifier()
Determine if the session has an authentication identifier
|
int |
isType()
Return the session type
|
void |
removeConnection(TreeConnection tree)
Remove a connection from the list of active tree connections for this session
|
void |
setAuthIdentifier(Object authIdent)
Set the authentication identifier
|
void |
setLastAccess()
Set the last access date/time for the session
|
void |
setLastAccess(long dateTime)
Set the last access date/time for the session
|
void |
setNFSClientInformation(ClientInfo cInfo)
Set the NFS client information
|
protected void |
setSearchContext(int slot,
SearchContext srch)
Store the seach context in the specified slot.
|
boolean |
useCaseSensitiveSearch()
Indicate that NFS filesystem searches are case sensitive
|
addDynamicShare, clearTransaction, debugPrint, debugPrintln, debugPrintln, endTransaction, getAuthenticationContext, getClientInformation, getDriverState, getDynamicShareList, getLastIOTime, getNextPostProcessor, getProcessId, getProtocolName, getRemoteName, getServer, getSessionId, getTransactionObject, getUniqueId, hasAuthenticationContext, hasClientInformation, hasDebug, hasDynamicShares, hasPostProcessorRequests, hasProtocolName, hasRemoteName, hasTransaction, initializeTransactionObject, isLoggedOn, isPseudoFilesEnabled, isShutdown, setAuthenticationContext, setClientInformation, setDebug, setDebugPrefix, setDriverState, setLastIOTime, setLoggedOn, setProcessId, setProtocolName, setRemoteName, setSessionId, setShutdown, setTransaction, setTransaction, setUniqueId, toString
public NFSSrvSession(NetworkServer srv, InetAddress addr, int port, int type)
srv
- NetworkServeraddr
- InetAddressport
- inttype
- intpublic final int isType()
public final NetworkFileCache getFileCache()
public final boolean hasAuthIdentifier()
public final Object getAuthIdentifier()
public InetAddress getRemoteAddress()
getRemoteAddress
in class SrvSession
public final int getRemotePort()
public final long getLastAccess()
public final ClientInfo getNFSClientInformation()
public final void setNFSClientInformation(ClientInfo cInfo)
cInfo
- ClientInfopublic final TreeConnection findConnection(int shareHash)
shareHash
- intpublic final void addConnection(TreeConnection tree)
tree
- TreeConnectionpublic final void removeConnection(TreeConnection tree)
tree
- TreeConnectionpublic final void setAuthIdentifier(Object authIdent)
authIdent
- Objectpublic final void setLastAccess(long dateTime)
dateTime
- longpublic final void setLastAccess()
public void closeSession()
closeSession
in class SrvSession
protected final int allocateSearchSlot(SearchContext search)
search
- SearchContextprotected final void deallocateSearchSlot(int ctxId)
ctxId
- intpublic final NFSServer getNFSServer()
protected final SearchContext getSearchContext(int srchId)
srchId
- intpublic final int getSearchCount()
protected final void setSearchContext(int slot, SearchContext srch)
slot
- Slot to store the search context.srch
- SearchContextprotected final void cleanupSession()
public boolean useCaseSensitiveSearch()
useCaseSensitiveSearch
in class SrvSession
Copyright © 2005–2017 Alfresco Software. All rights reserved.