|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.cics.server.Wrapper
public final class Wrapper
Class that wraps a user's main Java application, providing access to the
COMMAREA, if one is supplied, and also catching all exceptions.
Its name cannot be changed from com.ibm.cics.server.Wrapper because it
is invoked as that by CICS JVM initialisation code. Logically it
belongs in the com.ibm.cics.server.ts.ext package.
Its callUserClass method is invoked by the Wrapper class main method.
It invokes either
main(CommAreaHolder)
or
main(String[])
.
Field Summary | |
---|---|
static java.io.PrintStream |
errHandler
Create print stream for error |
static java.io.PrintStream |
outHandler
Create print stream for output |
Constructor Summary | |
---|---|
Wrapper()
|
Method Summary | |
---|---|
static void |
addOrbRef(org.omg.CORBA.ORB theOrb)
|
static void |
callUserClass(java.lang.String[] args)
This callUserClass method attempts to call the CommAreaHolder variant of main() on the user's class. |
static boolean |
collectingTrace()
Determine if trace should be passed to CICS, if it doesn't need to be then there is a significant saving in pathlength due to avoiding expensive RAS initialization. |
static int |
isSQLJPropSet()
Has SQLJ set its property ? (also called by DTCTask.c so don't remove!) If getProperty returns null, it has not been set and returns 0, else 1 |
static void |
jvmServerOSGiEntry(com.ibm.cics.osgi.ClassProxy classProxy)
Entry point into the Wrapper for OSGi JVMSERVER threads. |
static void |
jvmServerStats(java.lang.String[] args)
Called by a CICS JVMServer system thread to collect statistics. |
static void |
jvmServerTerminate(java.lang.String[] args)
Entry method for DFHSJTH to stop threads during the purge/kill of a JVMServer |
static void |
jvmServerWrapperEntry(java.lang.String[] args)
Entry point into the Wrapper for JVMSERVER threads. |
static void |
main(java.lang.String[] args)
This main method has been split into smaller methods that can be called from WrapperEntry and jvmServerWrapperEntry, in order to prevent the duplication of code. |
static void |
set_jvmserver_disabling(java.lang.String[] args)
Sets the 'being_disabled' flag on this JVMSERVER This will prevent any threads crossing into CICS code, instead they return a 'purged' exception. |
static long |
WrapperCCStats()
Return the free space available in the Shared Class Cache |
static int |
WrapperEntry(java.lang.String[] args)
Entry point into the Wrapper from DFHSJCS. |
static int |
WrapperGC()
This method is invoked by the SJ domain to ensure that a full GC scan is done after the heap utilisation exceeds the threshhold |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.io.PrintStream outHandler
public static java.io.PrintStream errHandler
Constructor Detail |
---|
public Wrapper()
Method Detail |
---|
public static void addOrbRef(org.omg.CORBA.ORB theOrb)
theOrb
- The Orbpublic static boolean collectingTrace()
public static int isSQLJPropSet()
public static void callUserClass(java.lang.String[] args) throws AbendException, AbendCancelException, java.lang.ThreadDeath
args
- the input parameters
AbendException
- An Abend occurred
AbendCancelException
- A Cancel occurred
java.lang.ThreadDeath
- The Thread diespublic static void set_jvmserver_disabling(java.lang.String[] args)
args
- the input parameterspublic static int WrapperEntry(java.lang.String[] args)
args
- the input parameters
public static void jvmServerWrapperEntry(java.lang.String[] args)
args
- the input parameterspublic static void jvmServerStats(java.lang.String[] args)
args
- not usedpublic static void jvmServerTerminate(java.lang.String[] args)
args
- the input parameterspublic static void main(java.lang.String[] args)
args
- the input parameterspublic static int WrapperGC()
public static long WrapperCCStats()
public static void jvmServerOSGiEntry(com.ibm.cics.osgi.ClassProxy classProxy)
classProxy
- the object that 'holds' the class or service
to be targetted by the invoke call.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |