com.ibm.oti.shared
Class SharedClassCacheInfo
- java.lang.Object
com.ibm.oti.shared.SharedClassCacheInfo
- public class SharedClassCacheInfo
- extends java.lang.Object
Field Summary
Modifier and Type | Field and Description |
---|---|
|
ADDRESS_MODE_32
Specifies a 32-bit cache.
|
|
ADDRESS_MODE_64
Specifies a 64-bit cache.
|
|
JVMLEVEL_JAVA5
Specifies Java 5 cache.
|
|
JVMLEVEL_JAVA6
Specifies Java 6 cache.
|
|
JVMLEVEL_JAVA7
Specifies Java 7 cache.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getCacheAddressMode()
Get the address mode for the shared class cache.
|
|
getCacheFreeBytes()
Get the amount of free bytes in shared class cache.
|
|
getCacheJVMLevel()
Get the JVM level for the shared class cache.
|
|
getCacheName()
Gets the cache name for the shared class cache.
|
|
getCacheSize()
Get total usable shared class cache size.
|
|
getLastDetach()
Get the time when the shared class cache was last detached.
|
|
getOSsemid()
Get the OS semaphore id associated with the shared class cache.
|
|
getOSshmid()
Get the OS shared memory id associated with the shared class cache.
|
|
isCacheCompatible()
Check the compatibility of the shared class cache with this JVM.
|
|
isCacheCorrupt()
Check if the shared class cache is corrupt.
|
|
isCachePersistent()
Check if the shared class cache is persistent.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
JVMLEVEL_JAVA5
- public static final int JVMLEVEL_JAVA5
Specifies Java 5 cache.
See Also:
JVMLEVEL_JAVA6
- public static final int JVMLEVEL_JAVA6
Specifies Java 6 cache.
See Also:
JVMLEVEL_JAVA7
- public static final int JVMLEVEL_JAVA7
Specifies Java 7 cache.
See Also:
ADDRESS_MODE_32
- public static final int ADDRESS_MODE_32
Specifies a 32-bit cache.
See Also:
ADDRESS_MODE_64
- public static final int ADDRESS_MODE_64
Specifies a 64-bit cache.
See Also:
Method Detail
getCacheName
- public java.lang.String getCacheName( )
Gets the cache name for the shared class cache.
Returns:
name of the shared class cache.
isCacheCompatible
- public boolean isCacheCompatible( )
Check the compatibility of the shared class cache with this JVM.
Returns:
true if cache is compatible with this JVM, false otherwise.
isCachePersistent
- public boolean isCachePersistent( )
Check if the shared class cache is persistent.
Returns:
true if cache is persistent, false otherwise.
getOSshmid
- public int getOSshmid()
Get the OS shared memory id associated with the shared class cache.
Returns:
a valid value if cache is non-persistent and shared memory id is available, else -1.
getOSsemid
- public int getOSsemid()
Get the OS semaphore id associated with the shared class cache.
Returns:
a valid value if cache is non-persistent and semaphore id is available, else -1.
getLastDetach
- public java.util.Date getLastDetach( )
Get the time when the shared class cache was last detached.
Returns:
Date
getCacheJVMLevel
- public int getCacheJVMLevel()
Get the JVM level for the shared class cache.
Returns:
getCacheAddressMode
- public int getCacheAddressMode( )
Get the address mode for the shared class cache.
Returns:
either
ADDRESS_MODE_32
or
ADDRESS_MODE_64
isCacheCorrupt
- public boolean isCacheCorrupt()
Check if the shared class cache is corrupt.
Returns:
true if the cache is corrupt, false otherwise.
getCacheSize
- public long getCacheSize()
Get total usable shared class cache size. Returns -1 if cache is incompatible.
Returns:
number of usable bytes in cache.
getCacheFreeBytes
- public long getCacheFreeBytes()
Get the amount of free bytes in shared class cache. Returns -1 if cache is incompatible.
Returns:
long