com.ibm.oti.shared

Class SharedClassCacheInfo

  1. java.lang.Object
  2. extended bycom.ibm.oti.shared.SharedClassCacheInfo

  1. public class SharedClassCacheInfo
  2. extends java.lang.Object
SharedClassCacheInfo stores information about a shared class cache and provides methods to retrieve that information.


Field Summary

Modifier and Type Field and Description
  1. static
  2. int
ADDRESS_MODE_32
Specifies a 32-bit cache.
  1. static
  2. int
ADDRESS_MODE_64
Specifies a 64-bit cache.
  1. static
  2. int
JVMLEVEL_JAVA5
Specifies Java 5 cache.
  1. static
  2. int
JVMLEVEL_JAVA6
Specifies Java 6 cache.
  1. static
  2. int
JVMLEVEL_JAVA7
Specifies Java 7 cache.

Method Summary

Modifier and Type Method and Description
  1. int
getCacheAddressMode()
Get the address mode for the shared class cache.
  1. long
getCacheFreeBytes()
Get the amount of free bytes in shared class cache.
  1. int
getCacheJVMLevel()
Get the JVM level for the shared class cache.
  1. java.lang.String
getCacheName()
Gets the cache name for the shared class cache.
  1. long
getCacheSize()
Get total usable shared class cache size.
  1. java.util.Date
getLastDetach()
Get the time when the shared class cache was last detached.
  1. int
getOSsemid()
Get the OS semaphore id associated with the shared class cache.
  1. int
getOSshmid()
Get the OS shared memory id associated with the shared class cache.
  1. boolean
isCacheCompatible()
Check the compatibility of the shared class cache with this JVM.
  1. boolean
isCacheCorrupt()
Check if the shared class cache is corrupt.
  1. boolean
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

  1. public static final int JVMLEVEL_JAVA5
Specifies Java 5 cache.
See Also:

JVMLEVEL_JAVA6

  1. public static final int JVMLEVEL_JAVA6
Specifies Java 6 cache.
See Also:

JVMLEVEL_JAVA7

  1. public static final int JVMLEVEL_JAVA7
Specifies Java 7 cache.
See Also:

ADDRESS_MODE_32

  1. public static final int ADDRESS_MODE_32
Specifies a 32-bit cache.
See Also:

ADDRESS_MODE_64

  1. public static final int ADDRESS_MODE_64
Specifies a 64-bit cache.
See Also:

Method Detail

getCacheName

  1. public java.lang.String getCacheName( )
Gets the cache name for the shared class cache.
Returns:
name of the shared class cache.

isCacheCompatible

  1. 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

  1. public boolean isCachePersistent( )
Check if the shared class cache is persistent.
Returns:
true if cache is persistent, false otherwise.

getOSshmid

  1. 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

  1. 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

  1. public java.util.Date getLastDetach( )
Get the time when the shared class cache was last detached.
Returns:
Date

getCacheJVMLevel

  1. public int getCacheJVMLevel()
Get the JVM level for the shared class cache.
Returns:

getCacheAddressMode

  1. public int getCacheAddressMode( )
Get the address mode for the shared class cache.
Returns:

isCacheCorrupt

  1. public boolean isCacheCorrupt()
Check if the shared class cache is corrupt.
Returns:
true if the cache is corrupt, false otherwise.

getCacheSize

  1. public long getCacheSize()
Get total usable shared class cache size. Returns -1 if cache is incompatible.
Returns:
number of usable bytes in cache.

getCacheFreeBytes

  1. public long getCacheFreeBytes()
Get the amount of free bytes in shared class cache. Returns -1 if cache is incompatible.
Returns:
long