Class CacheInfo

java.lang.Object
org.compiere.util.CacheInfo
All Implemented Interfaces:
Serializable

public class CacheInfo extends Object implements Serializable
Info value object for a register cache
Author:
hengsin
See Also:
  • Constructor Details

    • CacheInfo

      public CacheInfo(CCache<?,?> cache)
      Parameters:
      cache -
  • Method Details

    • getName

      public String getName()
      Get register name of cache
      Returns:
      the name
    • getTableName

      public String 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

      public InetAddress getNodeAddress()
      Get address of this server node
      Returns:
      the nodeAddress
    • getNodeId

      public String 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

      public static List<CacheInfo> getCacheInfos(boolean sortByName)
      Get info for all register cache
      Parameters:
      sortByName -
      Returns:
      cache infos