java.lang.Object
com.ibm.oti.shared.SharedClassStatistics
SharedClassStatistics provides static functions that report basic cache statistics.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
cacheDir()
Returns the cache directory.static String
Returns the cache name.static String
Returns the full cache path.static long
Returns the free space of the shared cache that the JVM is currently connected to.static long
Returns the maximum space allowed for AOT data of the cache that the JVM is currently connected to.static long
Returns the maximum space allowed for JIT data of the cache that the JVM is currently connected to.static long
Returns the size of the shared cache that the JVM is currently connected to.static long
Returns the minimum space reserved for AOT data of the cache that the JVM is currently connected to.static long
Returns the minimum space reserved for JIT data of the cache that the JVM is currently connected to.static long
Returns the SysV shmem nattch value for a non-persistent top level cache.static long
Returns the soft limit in bytes for the available space of the cache that the JVM is currently connected to.
-
Constructor Details
-
SharedClassStatistics
Deprecated.Constructs a new instance of this class.
-
-
Method Details
-
maxSizeBytes
public static long maxSizeBytes()Returns the size of the shared cache that the JVM is currently connected to.- Returns:
- the total size in bytes
-
freeSpaceBytes
public static long freeSpaceBytes()Returns the free space of the shared cache that the JVM is currently connected to.- Returns:
- the free space in bytes
-
softmxBytes
public static long softmxBytes()Returns the soft limit in bytes for the available space of the cache that the JVM is currently connected to.- Returns:
- the soft max size or cache size in bytes if it is not set
-
minAotBytes
public static long minAotBytes()Returns the minimum space reserved for AOT data of the cache that the JVM is currently connected to.- Returns:
- the minimum shared classes cache space reserved for AOT data in bytes or -1 if it is not set
-
maxAotBytes
public static long maxAotBytes()Returns the maximum space allowed for AOT data of the cache that the JVM is currently connected to.- Returns:
- the maximum shared classes cache space allowed for AOT data in bytes or -1 if it is not set
-
minJitDataBytes
public static long minJitDataBytes()Returns the minimum space reserved for JIT data of the cache that the JVM is currently connected to.- Returns:
- the minimum shared classes cache space reserved for JIT data in bytes or -1 if it is not set
-
maxJitDataBytes
public static long maxJitDataBytes()Returns the maximum space allowed for JIT data of the cache that the JVM is currently connected to.- Returns:
- the maximum shared classes cache space allowed for JIT data in bytes or -1 if it is not set
-
numberAttached
public static long numberAttached()Returns the SysV shmem nattch value for a non-persistent top level cache.On Windows or for persistent caches, -1 is returned. Depending on the platform and OS, such as z/OS, the value indicates the number of JVMs attached to the cache.
- Returns:
- the SysV shmem nattch value for a top level non-persistent cache, or -1 if it cannot be determined
-
cachePath
Returns the full cache path.- Returns:
- the full cache path, or NULL if it cannot be determined
-
cacheName
Returns the cache name.- Returns:
- the cache name, or NULL if it cannot be determined
-
cacheDir
Returns the cache directory.- Returns:
- the cache directory, or NULL if it cannot be determined
-