Modifier and Type | Method and Description |
---|---|
FileLock |
FileLockList.findLock(FileLock lock)
Find the matching lock
|
FileLock |
FileLockList.findLock(long offset,
long len,
int pid)
Find the matching lock
|
FileLock |
FileLockList.getLockAt(int idx)
Return the specified lock details
|
FileLock |
FileLockList.removeLock(FileLock lock)
Remove a lock from the list
|
FileLock |
FileLockList.removeLock(long offset,
long len,
int pid)
Remove a lock from the list
|
FileLock |
FileLockList.removeLockAt(int idx)
Remove the lock at the specified index in the list
|
Modifier and Type | Method and Description |
---|---|
void |
FileLockList.addLock(FileLock lock)
Add a lock to the list
|
boolean |
FileLockList.allowsLock(FileLock lock)
Check if the new lock should be allowed by comparing with the locks in the list.
|
boolean |
FileLockList.canReadFile(FileLock lock)
Check if the file is readable for the specified section of the file and process id
|
boolean |
FileLockList.canWriteFile(FileLock lock)
Check if the file is writeable for the specified section of the file and process id
|
FileLock |
FileLockList.findLock(FileLock lock)
Find the matching lock
|
boolean |
FileLock.hasOverlap(FileLock lock)
Check if the specified locks byte range overlaps this locks byte range.
|
FileLock |
FileLockList.removeLock(FileLock lock)
Remove a lock from the list
|
Modifier and Type | Method and Description |
---|---|
FileLock |
NetworkFile.getLockAt(int idx)
Get the details of an active lock from the list
|
Modifier and Type | Method and Description |
---|---|
void |
NetworkFile.addLock(FileLock lock)
Add a lock to the active lock list
|
void |
NetworkFile.removeLock(FileLock lock)
Remove a lock from the active lock list
|
Modifier and Type | Method and Description |
---|---|
FileLock |
FileStateCache.createFileLockObject(NetworkFile file,
long offset,
long len,
int pid)
Create a lock object, use the standard FileLock object.
|
FileLock |
FileStateLockManager.createLockObject(SrvSession sess,
TreeConnection tree,
NetworkFile file,
long offset,
long len,
int pid)
Create a file lock object.
|
Modifier and Type | Method and Description |
---|---|
void |
FileState.addLock(FileLock lock)
Add a lock to this file
|
void |
FileStateCache.addLock(FileState fstate,
FileLock lock)
Add a lock to this file
|
void |
FileStateLockManager.lockFile(SrvSession sess,
TreeConnection tree,
NetworkFile file,
FileLock lock)
Lock a byte range within a file, or the whole file.
|
void |
FileState.removeLock(FileLock lock)
Remove a lock on this file
|
void |
FileStateCache.removeLock(FileState fstate,
FileLock lock)
Remove a lock on this file
|
void |
FileStateLockManager.unlockFile(SrvSession sess,
TreeConnection tree,
NetworkFile file,
FileLock lock)
Unlock a byte range within a file, or the whole file
|
Modifier and Type | Class and Description |
---|---|
class |
ClusterFileLock
Cluster File Lock
|
Modifier and Type | Method and Description |
---|---|
FileLock |
HazelCastClusterFileStateCache.createFileLockObject(NetworkFile file,
long offset,
long len,
int pid)
Create a file lock object
|
Modifier and Type | Method and Description |
---|---|
void |
HazelCastClusterFileStateCache.addLock(FileState fstate,
FileLock lock)
Add a lock to this file
|
void |
HazelCastClusterFileStateCache.removeLock(FileState fstate,
FileLock lock)
Remove a lock on this file
|
Modifier and Type | Method and Description |
---|---|
FileLock |
LockManager.createLockObject(SrvSession sess,
TreeConnection tree,
NetworkFile file,
long offset,
long len,
int pid)
Create a lock object, allows the FileLock object to be extended
|
Modifier and Type | Method and Description |
---|---|
void |
FileLockListener.lockDenied(SrvSession sess,
NetworkFile file,
FileLock lock)
Lock has been denied on the specified file.
|
void |
LockManager.lockFile(SrvSession sess,
TreeConnection tree,
NetworkFile file,
FileLock lock)
Lock a byte range within a file, or the whole file.
|
void |
FileLockListener.lockGranted(SrvSession sess,
NetworkFile file,
FileLock lock)
Lock has been granted on the specified file.
|
void |
FileLockListener.lockReleased(SrvSession sess,
NetworkFile file,
FileLock lock)
Lock has been released on the specified file.
|
void |
LockManager.unlockFile(SrvSession sess,
TreeConnection tree,
NetworkFile file,
FileLock lock)
Unlock a byte range within a file, or the whole file
|
Modifier and Type | Class and Description |
---|---|
class |
NIOFileLock
NIO File Lock Class
|
Modifier and Type | Method and Description |
---|---|
FileLock |
NIOLockManager.createLockObject(SrvSession sess,
TreeConnection tree,
NetworkFile file,
long offset,
long len,
int pid)
Create a lock object, allows the FileLock object to be extended
|
Modifier and Type | Method and Description |
---|---|
void |
NIOLockManager.lockFile(SrvSession sess,
TreeConnection tree,
NetworkFile file,
FileLock lock)
Lock a byte range within a file, or the whole file.
|
void |
NIOLockManager.unlockFile(SrvSession sess,
TreeConnection tree,
NetworkFile file,
FileLock lock)
Unlock a byte range within a file, or the whole file
|
Copyright © 2005–2017 Alfresco Software. All rights reserved.