- java.lang.Object
-
- com.ibm.oti.shared.SharedClassStatistics
-
public class SharedClassStatistics extends Object
SharedClassStatistics provides static functions that report basic cache statistics.
-
-
Constructor Summary
Constructors Constructor Description SharedClassStatistics()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
cacheDir()
Returns the cache directory.static String
cacheName()
Returns the cache name.static String
cachePath()
Returns the full cache path.static long
freeSpaceBytes()
Returns the free space of the shared cache that the JVM is currently connected to.static long
maxAotBytes()
Returns the maximum space allowed for AOT data of the cache that the JVM is currently connected to.static long
maxJitDataBytes()
Returns the maximum space allowed for JIT data of the cache that the JVM is currently connected to.static long
maxSizeBytes()
Returns the size of the shared cache that the JVM is currently connected to.static long
minAotBytes()
Returns the minimum space reserved for AOT data of the cache that the JVM is currently connected to.static long
minJitDataBytes()
Returns the minimum space reserved for JIT data of the cache that the JVM is currently connected to.static long
numberAttached()
Returns the SysV shmem nattch value for a non-persistent top level cache.static long
softmxBytes()
Returns the soft limit in bytes for the available space of the cache that the JVM is currently connected to.
-
-
-
Constructor Detail
-
SharedClassStatistics
@Deprecated public SharedClassStatistics()
Deprecated.Constructs a new instance of this class.
-
-
Method Detail
-
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
public static String cachePath()
Returns the full cache path.- Returns:
- the full cache path, or NULL if it cannot be determined
-
cacheName
public static String cacheName()
Returns the cache name.- Returns:
- the cache name, or NULL if it cannot be determined
-
cacheDir
public static String cacheDir()
Returns the cache directory.- Returns:
- the cache directory, or NULL if it cannot be determined
-
-