|
CICS® Transaction Gateway Programming Reference V3.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.ctg.client.LocalJavaGateway
This class allows you to process request locally on a machine. Rather than flowing the request across the network, this class executes them locally using the server-side objects which would have been used to execute the request if it had been received by the Gateway for Java.
Field Summary | |
long |
closeTimeout
Time given for in-progress work to end when Gateway is closed |
Method Summary | |
(package private) static void |
|
(package private) void |
close()
Closes the logical connection to the local Gateway. |
static void |
destroy()
When the Gateway for Java is cleanly shutdown, it will run termination routines for all the different type of requests it has seen. |
(package private) int |
flow(GatewayRequest gatRequest)
Executes a request locally rather than flowing it across the network to the Gateway for Java. |
(package private) void |
newExtendedRequest(GatewayRequest gatExtendedRequest)
Adds a new extended request entry to our hashtable |
(package private) void |
open()
Opens a LocalJavaGateway. |
(package private) void |
removeExtendedRequest(GatewayRequest gatExtendedRequest)
Removes an existing extended request entry from our hashtable |
(package private) void |
updateExtendedRequest(GatewayRequest gatExtendedRequest)
Updates an existing extended request entry in our hashtable |
(package private) void |
workEnded()
Decreases our work in progress count |
(package private) void |
workStarted()
Increases our work in progress count |
Field Detail |
public long closeTimeout
Method Detail |
static void()
void open() throws java.io.IOException
int flow(GatewayRequest gatRequest) throws java.io.IOException
gatRequest
- GatewayRequest object containing the requestvoid newExtendedRequest(GatewayRequest gatExtendedRequest)
gatExtendedRequest
- Extended GatewayRequest to add to the tablevoid updateExtendedRequest(GatewayRequest gatExtendedRequest)
gatExtendedRequest
- Extended GatewayRequest to update in tablevoid removeExtendedRequest(GatewayRequest gatExtendedRequest)
gatExtendedRequest
- Extended GatewayRequest to remove from tablevoid workStarted()
void workEnded()
void close() throws java.io.IOException
public static void destroy() throws java.io.IOException
When running using the local Gateway object, it is not possible for the local Gateway code to programatically decide when to run these request termination routines, since it cannot tell when the program using the local Gateway is about to end.
The destroy method is provided to allow a programmer to explictly say that it has finished using the local Gateway support, and WILL NOT use it again in the program. When called the termination routines of all the used request types will be run. Once called it will not be possible to create another local Gateway for the rest of the life-time of the program.
|
© Copyright IBM Corp. 1994, 1999 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |