Package org.opencms.db
Class CmsCacheSettings
- java.lang.Object
-
- org.opencms.db.CmsCacheSettings
-
public class CmsCacheSettings extends java.lang.Object
The settings of the OpenCms memory monitor.- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description CmsCacheSettings()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAclCacheSize()
Returns the size of the memory monitor's cache for ACLs.java.lang.String
getCacheKeyGenerator()
Returns the name of the class to generate cache keys.int
getConfiguredOrgUnitCacheSize()
Returns the size of the memory monitor's cache for organizational units.int
getConfiguredProjectResourcesCacheSize()
Returns the size of the memory monitor's cache for project resources.int
getConfiguredPropertyListsCacheSize()
Returns the size of the memory monitor's cache for property lists.int
getConfiguredRolesCacheSize()
Returns the size of the memory monitor's cache for roles.int
getGroupCacheSize()
Returns the size of the memory monitor's cache for groups.int
getOrgUnitCacheSize()
Returns the size of the memory monitor's cache for organizational units.int
getPermissionCacheSize()
Returns the size of the memory monitor's cache for permission checks.int
getProjectCacheSize()
Returns the size of the memory monitor's cache for projects.int
getProjectResourcesCacheSize()
Returns the size of the memory monitor's cache for project resources.int
getPropertyCacheSize()
Returns the size of the memory monitor's cache for properties.int
getPropertyListsCacheSize()
Returns the size of the memory monitor's cache for property lists.int
getResourceCacheSize()
Returns the size of the memory monitor's cache for resources.int
getResourcelistCacheSize()
Returns the size of the memory monitor's cache for lists of resources.int
getRolesCacheSize()
Returns the size of the memory monitor's cache for roles.int
getUserCacheSize()
Returns the size of the memory monitor's cache for users.int
getUserGroupsCacheSize()
Returns the size of the memory monitor's cache for user/group relations.void
setAclCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for ACLs.void
setCacheKeyGenerator(java.lang.String classname)
Sets the name of the class to generate cache keys.void
setGroupCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for groups.void
setOrgUnitCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for organizational units.void
setPermissionCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for permission checks.void
setProjectCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for projects.void
setProjectResourcesCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for project resources.void
setPropertyCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for properties.void
setPropertyListsCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for property lists.void
setResourceCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for resources.void
setResourcelistCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for lists of resources.void
setRolesCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for roles.void
setUserCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for users.void
setUserGroupsCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for user/group relations.
-
-
-
Constructor Detail
-
CmsCacheSettings
public CmsCacheSettings()
Default constructor.
-
-
Method Detail
-
getAclCacheSize
public int getAclCacheSize()
Returns the size of the memory monitor's cache for ACLs.- Returns:
- the size of the memory monitor's cache for ACLs
-
getCacheKeyGenerator
public java.lang.String getCacheKeyGenerator()
Returns the name of the class to generate cache keys.- Returns:
- the name of the class to generate cache keys
-
getConfiguredOrgUnitCacheSize
public int getConfiguredOrgUnitCacheSize()
Returns the size of the memory monitor's cache for organizational units.Might be
-1
if configuration entry is missing.- Returns:
- the size of the memory monitor's cache for organizational units
-
getConfiguredProjectResourcesCacheSize
public int getConfiguredProjectResourcesCacheSize()
Returns the size of the memory monitor's cache for project resources.Might be
-1
if configuration entry is missing.- Returns:
- the size of the memory monitor's cache for project resources
-
getConfiguredPropertyListsCacheSize
public int getConfiguredPropertyListsCacheSize()
Returns the size of the memory monitor's cache for property lists.Might be
-1
if configuration entry is missing.- Returns:
- the size of the memory monitor's cache for property lists
-
getConfiguredRolesCacheSize
public int getConfiguredRolesCacheSize()
Returns the size of the memory monitor's cache for roles.Might be
-1
if configuration entry is missing.- Returns:
- the size of the memory monitor's cache for roles
-
getGroupCacheSize
public int getGroupCacheSize()
Returns the size of the memory monitor's cache for groups.- Returns:
- the size of the memory monitor's cache for groups
-
getOrgUnitCacheSize
public int getOrgUnitCacheSize()
Returns the size of the memory monitor's cache for organizational units.- Returns:
- the size of the memory monitor's cache for organizational units
-
getPermissionCacheSize
public int getPermissionCacheSize()
Returns the size of the memory monitor's cache for permission checks.- Returns:
- the size of the memory monitor's cache for permission checks
-
getProjectCacheSize
public int getProjectCacheSize()
Returns the size of the memory monitor's cache for projects.- Returns:
- the size of the memory monitor's cache for projects
-
getProjectResourcesCacheSize
public int getProjectResourcesCacheSize()
Returns the size of the memory monitor's cache for project resources.- Returns:
- the size of the memory monitor's cache for project resources
-
getPropertyCacheSize
public int getPropertyCacheSize()
Returns the size of the memory monitor's cache for properties.- Returns:
- the size of the memory monitor's cache for properties
-
getPropertyListsCacheSize
public int getPropertyListsCacheSize()
Returns the size of the memory monitor's cache for property lists.- Returns:
- the size of the memory monitor's cache for property lists
-
getResourceCacheSize
public int getResourceCacheSize()
Returns the size of the memory monitor's cache for resources.- Returns:
- the size of the memory monitor's cache for resources
-
getResourcelistCacheSize
public int getResourcelistCacheSize()
Returns the size of the memory monitor's cache for lists of resources.- Returns:
- the size of the memory monitor's cache for lists of resources
-
getRolesCacheSize
public int getRolesCacheSize()
Returns the size of the memory monitor's cache for roles.- Returns:
- the size of the memory monitor's cache for roles
-
getUserCacheSize
public int getUserCacheSize()
Returns the size of the memory monitor's cache for users.- Returns:
- the size of the memory monitor's cache for users
-
getUserGroupsCacheSize
public int getUserGroupsCacheSize()
Returns the size of the memory monitor's cache for user/group relations.- Returns:
- the size of the memory monitor's cache for user/group relations
-
setAclCacheSize
public void setAclCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for ACLs.- Parameters:
size
- the size of the memory monitor's cache for ACLs
-
setCacheKeyGenerator
public void setCacheKeyGenerator(java.lang.String classname)
Sets the name of the class to generate cache keys.- Parameters:
classname
- the name of the class to generate cache keys
-
setGroupCacheSize
public void setGroupCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for groups.- Parameters:
size
- the size of the memory monitor's cache for groups
-
setOrgUnitCacheSize
public void setOrgUnitCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for organizational units.- Parameters:
size
- the size of the memory monitor's cache for organizational units
-
setPermissionCacheSize
public void setPermissionCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for permission checks.- Parameters:
size
- the size of the memory monitor's cache for permission checks
-
setProjectCacheSize
public void setProjectCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for projects.- Parameters:
size
- the size of the memory monitor's cache for projects
-
setProjectResourcesCacheSize
public void setProjectResourcesCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for project resources.- Parameters:
size
- the size of the memory monitor's cache for project resources
-
setPropertyCacheSize
public void setPropertyCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for properties.- Parameters:
size
- the size of the memory monitor's cache for properties
-
setPropertyListsCacheSize
public void setPropertyListsCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for property lists.- Parameters:
size
- the size of the memory monitor's cache for property lists
-
setResourceCacheSize
public void setResourceCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for resources.- Parameters:
size
- the size of the memory monitor's cache for resources
-
setResourcelistCacheSize
public void setResourcelistCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for lists of resources.- Parameters:
size
- the size of the memory monitor's cache for lists of resources
-
setRolesCacheSize
public void setRolesCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for roles.- Parameters:
size
- the size of the memory monitor's cache for roles
-
setUserCacheSize
public void setUserCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for users.- Parameters:
size
- the size of the memory monitor's cache for users
-
setUserGroupsCacheSize
public void setUserGroupsCacheSize(java.lang.String size)
Sets the size of the memory monitor's cache for user/group relations.- Parameters:
size
- the size of the memory monitor's cache for user/group relations
-
-