public class GbjGciInterface
extends java.lang.Object
The only public methods that customer applications should directly call are:
All other functionality is either protected and is intended to be accessed though GbjGciSession, or a call to the GCSI layer and should be accessed through package gbjstats classes. See documentation for those classes for details.
Modifier and Type | Field and Description |
---|---|
static int |
format
Indicates GS/S product oop format.
|
static java.lang.String |
GBJGCI_VERSION
String representing the GbjGci version
|
static boolean |
isAndroid
Boolean flag indicating if we're running on Android
|
static boolean |
isBigEndian
Boolean flag indicating if host is big-endian
|
static long[] |
kernelOops
Kernel oops.
|
static long |
OOP_NIL
oop of nil
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
gciVersion()
Return the GCI version string.
|
static int |
GCSIattach(java.lang.String stoneName)
Attach to a particular shared page cache on this host.
|
static void |
GCSIdetach()
Detach from an attached shared page cache.
|
static GbjGciCacheStats |
GCSIgetStats(int index)
Return back the cache statistics sampled earlier for a particular process.
|
static GbjGciCacheStats |
GCSIgetStats(long pid,
GbjGciCacheStats stats)
Return back the cache statistics sampled earlier for a particular process.
|
static void |
GCSIinitialize()
Initialize the GCSI (GCI Cache Statistics Interface).
|
static int |
GCSIsampleStats(long[] processIds)
Take a sample of cache stats for all processes on this cache.
|
static java.lang.String[][] |
GCSIstatNames()
Return a String[][] containing cache statistic names.
|
static int |
getFormat()
Return 32/641/642, depending on the associated GS/S product oop format.
|
static int |
initialize(boolean useLinked,
java.lang.String appName,
int bufSize,
int preloadSize,
int maxSessions)
Initialize the GbjGciInterface,
|
static java.util.logging.Logger |
setupLogger(java.lang.Class loggerClass)
Setup Logging for gbjgci/gbj/gbjstat classes
|
public static int format
GS/64 2.X and later: 642
public static final java.lang.String GBJGCI_VERSION
public static final boolean isAndroid
public static final boolean isBigEndian
public static final long OOP_NIL
public static long[] kernelOops
public static java.util.logging.Logger setupLogger(java.lang.Class loggerClass)
loggerClass
- Classpublic static int initialize(boolean useLinked, java.lang.String appName, int bufSize, int preloadSize, int maxSessions)
Applications should call GbjSession.initialize( ). See GbjSession.initialize( ) for details and parameter usage.
useLinked
- See GbjSession.initialize( ) , must be falseappName
- ignored See GbjSession.initialize( )bufSize
- See GbjSession.initialize( )preloadSize
- See GbjSession.initialize( )maxSessions
- See GbjSession.initialize( )
GbjGciException
- thrown for any errorpublic static int getFormat()
GbjGciException
-
GS/S: 32
GS/64 versions 1.X: 641
GS/64 versions 2.X and later: 642
public static java.lang.String gciVersion()
GbjGciException
- thrown for any errorpublic static void GCSIinitialize()
This method should only be used by package gbjstats classes.
GbjGciException
- thrown for any errorpublic static java.lang.String[][] GCSIstatNames()
This method should only be used by package gbjstats classes.
First index is by type, second is by particular cache stat.
GbjGciException
- thrown for any errorpublic static int GCSIattach(java.lang.String stoneName)
This method should only be used by package gbjstats classes.
stoneName
- Name of the stone
(or the stone associated with this remote SPC)GbjGciException
- thrown for any errorpublic static void GCSIdetach()
This method should only be used by package gbjstats classes.
GbjGciException
- thrown for any errorpublic static int GCSIsampleStats(long[] processIds)
This method should only be used by package gbjstats classes.
Note that this only takes the sample -- use GCSIgetStats( ) to return the actual sampled statistics.
processIds
- A long[] to hold the returned process ID's of the
sampled sessions.GbjGciException
- thrown for any errorpublic static GbjGciCacheStats GCSIgetStats(long pid, GbjGciCacheStats stats)
This method should only be used by package gbjstats classes.
pid
- The ID of the process of interest.stats
- A GbjGciCacheStats object to hold the returned cache stats.GbjGciException
- thrown for any errorpublic static GbjGciCacheStats GCSIgetStats(int index)
This method should only be used by package gbjstats classes.
index
- A numeric index for indexing through a batch of sampled stats.
Should be less than the max value returned by GCSIsampleStats( ).GbjGciException
- thrown for any error