Package org.compiere.util
Class CacheInfo
java.lang.Object
org.compiere.util.CacheInfo
- All Implemented Interfaces:
Serializable
Info value object for a register cache
- Author:
- hengsin
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCacheInfos
(boolean sortByName) Get info for all register cacheint
Get expire of individual entry in minutes (<= 0 for no expire)long
getHit()
Get cache hit countint
Get maximum number of cached itemslong
getMiss()
Get cache miss countgetName()
Get register name of cacheGet address of this server nodeGet id of this server nodeint
getSize()
Get number of entries in cacheGet optional table nameboolean
Is cache support distribution to multiple iDempiere node
-
Constructor Details
-
CacheInfo
- Parameters:
cache
-
-
-
Method Details
-
getName
Get register name of cache- Returns:
- the name
-
getTableName
Get optional table name- Returns:
- the tableName
-
getSize
public int getSize()Get number of entries in cache- Returns:
- the size
-
getExpireMinutes
public int getExpireMinutes()Get expire of individual entry in minutes (<= 0 for no expire)- Returns:
- the expireMinutes
-
getMaxSize
public int getMaxSize()Get maximum number of cached items- Returns:
- the maxSize
-
isDistributed
public boolean isDistributed()Is cache support distribution to multiple iDempiere node- Returns:
- the distributed
-
getNodeAddress
Get address of this server node- Returns:
- the nodeAddress
-
getNodeId
Get id of this server node- Returns:
- the nodeId
-
getHit
public long getHit()Get cache hit count- Returns:
- hit count
-
getMiss
public long getMiss()Get cache miss count- Returns:
- miss count
-
getCacheInfos
Get info for all register cache- Parameters:
sortByName
-- Returns:
- cache infos
-