Alfresco repository filesystem oplocks implementation

Oplock support can be switched off using the 'disableOplocks' property

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18116 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2010-01-19 10:50:23 +00:00
parent 8db9d90a72
commit db17ae8831
5 changed files with 441 additions and 4 deletions

View File

@@ -62,6 +62,9 @@ public class ContentContext extends AlfrescoContext
private AccessControlListBean m_accessControlList;
// Enable/disable oplocks
private boolean m_oplocksDisabled;
// Node monitor
@@ -137,6 +140,15 @@ public class ContentContext extends AlfrescoContext
setShareName(nodeRef.toString());
}
/**
* Enable/disable oplock support
*
* @param disableOplocks boolean
*/
public void setDisableOplocks( boolean disableOplocks) {
m_oplocksDisabled = disableOplocks;
}
@Override
public void initialize(AlfrescoDiskDriver filesysDriver)
@@ -215,6 +227,15 @@ public class ContentContext extends AlfrescoContext
return m_disableNodeMonitor;
}
/**
* Determine if oplocks support should be disabled
*
* @return boolean
*/
public boolean getDisableOplocks() {
return m_oplocksDisabled;
}
/**
* Gets the access control list.
*