|
Sun Adapter for CICS API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.eways.cics.AsyncCicsCallList
public class AsyncCicsCallList
The AsyncCicsCallList class represents a
list of AsyncCicsCall instances registered by the
collaboration;
it is exposed in ETD as AsyncCalls;
the collaboration code can iterate through the list
by calling hasNext() and next();
or remove an instance by calling remove();
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
AsyncCicsCallList()
|
|
| Method Summary | |
|---|---|
byte[] |
getCommArea()
Getter for the CommArea - the CommArea used for passing data and get result from a program invoked; |
int |
getCommAreaLength()
Getter for the CommAreaLength - the CommAreaLength which specify the length of the CommArea used when the CICS program is called, note that the actual length of the byte array represented as CommArea is not
necessarily the length specified in
CommAreaLength; |
java.lang.String |
getProgram()
Getter for the name of the program invoked; |
int |
getReturnCode()
Getter for the return code for the program call; |
java.lang.String |
getReturnMessage()
Getter for the return message for the program call; |
long |
getReturnTime()
Getter for the return time of the program call; |
int |
getSecondaryReturnCode()
Getter for the secondary return code for the program call; |
long |
getStartTime()
Getter for the start time of the program call; |
java.lang.String |
getTopic()
Getter for Topic - the topic that the completion event of the program will be published to; |
boolean |
hasNext()
Async Call Pool navigation method, check if there is a next async call object in the pool; |
boolean |
isDone()
Return if the current async call is done (completed) or not; |
void |
next()
Async Call Pool navigation method, move to the next async call object in the pool; |
void |
register(AsyncCicsCall call)
Add one call instance into the list and re-init the _Iterator; this is used internally, collaboration will not explicitly register a asynchronous call into the pool, instead, when an async call is to be made, if the collaboration give the gesture - generate a async call handler and set it to EciCallbackable node,
then implicitly, the async call will be registered in
the pool; |
void |
remove()
Remove the call instance in the list and if the call is still pending - |
void |
resetList()
Reset the list of the calls so that hasNext() and next() will start at the very first call object in the list; |
boolean |
returnCodeIs(int returncode)
Check the return code (primary return code) against the parameter specified; |
boolean |
secondaryReturnCodeIs(int secondaryreturncode)
Check the secondary return code against the parameter specified; |
void |
setCommArea(byte[] byteArray)
Setter for the CommArea - the CommArea used for passing data and get result from a program invoked; |
void |
setCommAreaLength(int length)
Setter for the CommAreaLength; |
void |
setProgram(java.lang.String program)
Setter for the name of the program invoked; |
protected void |
setReturnCode(int code)
Setter for the return code - the primary return code |
protected void |
setReturnMessage(java.lang.String msg)
Setter for the return message; |
void |
setReturnTime(long time)
Setter for the return time - the time when the program returned; |
protected void |
setSecondaryReturnCode(int code)
Setter for the secondary return code - the secondary return code |
void |
setStartTime(long time)
Setter for the start time - the time when the program call is issued; |
void |
setTopic(java.lang.String topic)
Setter for Topic - the name of the topic that the completion event of the program will be published to; |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncCicsCallList()
| Method Detail |
|---|
public boolean hasNext()
throws CicsClientException
true - there is a next in the list;
false - there is no next in the list;
For both CTG and SBYND CICS Listener;
Making an asynchronous call will set the pointer
to the top of the list - i.e. you can call next()
to move to the first asynchronous call object in the
list;
CicsClientExceptionnext(),
remove(),
resetList()
public void next()
throws CicsClientException
CicsClientExceptionisDone(), returnCodeIs(), secondaryReturnCodeIs(), etc.
public void remove()
throws CicsClientException
CollabDataException - - exception when attempting to
remove the async call object from the pool;
For both CTG and SBYND CICS Listener;
Note: warning will be logged when attempting to remove a call
that is still outstanding, and the deletion will not be
carried out;
CicsClientException
public void resetList()
throws CicsClientException
CicsClientException
public void register(AsyncCicsCall call)
throws CicsClientException
EciCallbackable node,
then implicitly, the async call will be registered in
the pool;
CicsClientException
public boolean isDone()
throws CicsClientException
true - the call is completed
false otherwise;
CicsClientException
public boolean returnCodeIs(int returncode)
throws CicsClientException
true - the return code for the
call equals the parameter specified;
false;
Note, this method should be called when the call
has been completed, it does not make sense to call
this method against a call that is not completed
yet;
CicsClientException
public boolean secondaryReturnCodeIs(int secondaryreturncode)
throws CicsClientException
true - the return code for the
call equals the parameter specified;
false;
Note, this method should be called when the call
has been completed, it does not make sense to call
this method against a call that is not completed
yet;
CicsClientException
public java.lang.String getTopic()
throws CicsClientException
CicsClientException
public void setTopic(java.lang.String topic)
throws CicsClientException
program - - the name of the program;
CicsClientException
public java.lang.String getProgram()
throws CicsClientException
CicsClientException
public void setProgram(java.lang.String program)
throws CicsClientException
program - - the name of the program;
CicsClientException
public long getStartTime()
throws CicsClientException
CicsClientException
public void setStartTime(long time)
throws CicsClientException
time - - the time when the program call is issued;
CicsClientException
public long getReturnTime()
throws CicsClientException
CicsClientException
public void setReturnTime(long time)
throws CicsClientException
time - - the time when the program call returns;
CicsClientException
public byte[] getCommArea()
throws CicsClientException
CicsClientException
public void setCommArea(byte[] byteArray)
throws CicsClientException
byteArray - - the CommArea;
CicsClientException
public int getCommAreaLength()
throws CicsClientException
CommArea is not
necessarily the length specified in
CommAreaLength;
CicsClientException
public void setCommAreaLength(int length)
throws CicsClientException
length - - the length;
CicsClientException
public int getReturnCode()
throws CicsClientException
CicsClientException
protected void setReturnCode(int code)
throws CicsClientException
code - - the code;
CicsClientException
public int getSecondaryReturnCode()
throws CicsClientException
CicsClientException
protected void setSecondaryReturnCode(int code)
throws CicsClientException
code - - the code;
CicsClientException
public java.lang.String getReturnMessage()
throws CicsClientException
CicsClientException
protected void setReturnMessage(java.lang.String msg)
throws CicsClientException
msg - - the message text;
CicsClientException
|
Sun Adapter for CICS API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||