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,
java.lang.Class objectClass)
Initialize the GbjGciInterface, returning 32/641/642 depending on the
underlying GS product oop format.
|
static void |
serverContinue(GbjSession sess,
int sessionId,
GbjGciReport process,
boolean errFlag,
GbjGciReport stResult,
GbjGciReport jvResult,
java.lang.String errMsg,
java.lang.String errStack)
Return control back to the server after handling a client forwarder error.
|
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, java.lang.Class objectClass)
Applications should call GbjSession.initialize( ). See GbjSession.initialize( ) for details and parameter usage.
useLinked
- See GbjSession.initialize( ) , must be trueappName
- See GbjSession.initialize( )bufSize
- See GbjSession.initialize( )preloadSize
- See GbjSession.initialize( )maxSessions
- See GbjSession.initialize( )objectClass
- See GbjSession.initialize( )
GbjException
- if there is an error in server executionpublic static int getFormat()
public static java.lang.String gciVersion()
GbjException
- if there is an error in server executionpublic static void serverContinue(GbjSession sess, int sessionId, GbjGciReport process, boolean errFlag, GbjGciReport stResult, GbjGciReport jvResult, java.lang.String errMsg, java.lang.String errStack)
This method should only be used by GbjSession.
public static void GCSIinitialize()
This method should only be used by package gbjstats classes.
GbjException
- if there is an error in server executionpublic 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.
GbjException
- if there is an error in server executionpublic 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)GbjException
- if there is an error in server executionpublic static void GCSIdetach()
This method should only be used by package gbjstats classes.
GbjException
- if there is an error in server executionpublic 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.GbjException
- if there is an error in server executionpublic 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.GbjException
- if there is an error in server executionpublic 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( ).GbjException
- if there is an error in server execution