mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Add live usage quota manager implementation to the file server. ALF-1068.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,6 +28,7 @@ import org.alfresco.jlan.server.filesys.DiskInterface;
|
||||
import org.alfresco.jlan.server.filesys.DiskSharedDevice;
|
||||
import org.alfresco.jlan.server.filesys.FileName;
|
||||
import org.alfresco.jlan.server.filesys.FileSystem;
|
||||
import org.alfresco.jlan.server.filesys.quota.QuotaManagerException;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
|
||||
/**
|
||||
@@ -260,6 +261,16 @@ public class ContentContext extends AlfrescoContext
|
||||
if ( m_nodeMonitor != null)
|
||||
m_nodeMonitor.shutdownRequest();
|
||||
|
||||
// Stop the quota manager, if enabled
|
||||
|
||||
if ( hasQuotaManager()) {
|
||||
try {
|
||||
getQuotaManager().stopManager(null, this);
|
||||
}
|
||||
catch ( QuotaManagerException ex) {
|
||||
}
|
||||
}
|
||||
|
||||
// Call the base class
|
||||
|
||||
super.CloseContext();
|
||||
|
Reference in New Issue
Block a user