public interface OpLockManager
An oplock manager implementationis used to store oplock details for the CIFS protocol handler.
Modifier and Type | Method and Description |
---|---|
void |
cancelOplockTimer(String path)
Cancel an oplock break timer
|
void |
changeOpLockType(OpLockDetails oplock,
int newTyp)
Change an oplock type
|
int |
checkExpiredOplockBreaks()
Check for expired oplock break requests
|
OpLockDetails |
getOpLockDetails(String path)
Return the oplock details for a path, or null if there is no oplock on the path
|
boolean |
grantOpLock(String path,
OpLockDetails oplock,
NetworkFile netFile)
Grant an oplock, store the oplock details
|
int |
hasOpLock(String path)
Check if there is an oplock for the specified path, return the oplock type.
|
void |
releaseOpLock(String path)
Release an oplock
|
void |
requestOpLockBreak(String path,
OpLockDetails oplock,
SMBSrvSession sess,
SMBSrvPacket pkt)
Request an oplock break on the specified oplock
|
int hasOpLock(String path)
path
- StringOpLockDetails getOpLockDetails(String path)
path
- Stringboolean grantOpLock(String path, OpLockDetails oplock, NetworkFile netFile) throws ExistingOpLockException
path
- Stringoplock
- OpLockDetailsnetFile
- NetworkFileExistingOpLockException
- If the file already has an oplockvoid requestOpLockBreak(String path, OpLockDetails oplock, SMBSrvSession sess, SMBSrvPacket pkt) throws IOException, DeferFailedException
path
- Stringoplock
- OpLockDetailssess
- SMBSrvSessionpkt
- SMBSrvPacketIOException
DeferFailedException
void releaseOpLock(String path)
path
- Stringvoid changeOpLockType(OpLockDetails oplock, int newTyp)
oplock
- OpLockDetailsnewTyp
- intvoid cancelOplockTimer(String path)
path
- Stringint checkExpiredOplockBreaks()
Copyright © 2005–2017 Alfresco Software. All rights reserved.