public interface QuotaManager
Provides the basic interface for filesystem disk quota management.
Modifier and Type | Method and Description |
---|---|
long |
allocateSpace(SrvSession sess,
TreeConnection tree,
NetworkFile file,
long alloc)
Allocate space on the filesystem.
|
long |
getAvailableFreeSpace()
Return the free space available in bytes
|
long |
getUserFreeSpace(SrvSession sess,
TreeConnection tree)
Return the free space available to the specified user/session
|
void |
releaseSpace(SrvSession sess,
TreeConnection tree,
int fid,
java.lang.String path,
long alloc)
Release space to the free space for the filesystem.
|
void |
startManager(DiskInterface disk,
DiskDeviceContext ctx)
Start the quota manager.
|
void |
stopManager(DiskInterface disk,
DiskDeviceContext ctx)
Stop the quota manager
|
void startManager(DiskInterface disk, DiskDeviceContext ctx) throws QuotaManagerException
disk
- DiskInterfacectx
- DiskDeviceContextQuotaManagerException
void stopManager(DiskInterface disk, DiskDeviceContext ctx) throws QuotaManagerException
disk
- DiskInterfacectx
- DiskDeviceContextQuotaManagerException
long allocateSpace(SrvSession sess, TreeConnection tree, NetworkFile file, long alloc) throws java.io.IOException
sess
- SrvSessiontree
- TreeConnectionfile
- NetworkFilealloc
- longjava.io.IOException
void releaseSpace(SrvSession sess, TreeConnection tree, int fid, java.lang.String path, long alloc) throws java.io.IOException
sess
- SrvSessiontree
- TreeConnectionfid
- intpath
- Stringalloc
- longjava.io.IOException
long getAvailableFreeSpace()
long getUserFreeSpace(SrvSession sess, TreeConnection tree)
sess
- SrvSessiontree
- TreeConnectionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.