public final class rdsession
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap |
conversationReplyObjects |
private java.util.ArrayList |
dispatchList |
private int |
dom_protocol |
private boolean |
is_term |
private java.lang.String |
local_domain_name |
private static int |
MAXCACHE |
private long |
myBlocktime |
private gwatmi |
myGwatmi |
private InvokeSvc |
myInvoker |
private dsession |
mySession |
private java.util.Timer |
myTimeService |
private java.util.ArrayList |
objectArrayList |
private java.io.DataOutputStream |
ostream |
private java.util.HashMap |
rplyObjMap |
private java.util.HashMap |
rplyXidObjMap |
private java.util.ArrayList |
tfmhList |
private int |
uid |
private TuxXidRply |
unknownXidRply |
private BetaFeatures |
useBetaFeatures |
Constructor and Description |
---|
rdsession(java.io.DataOutputStream dom_ostream,
gwatmi ss,
InvokeSvc invoke,
int protocol,
java.lang.String ldn,
java.util.Timer timeService,
TuxXidRply anXidRply,
BetaFeatures betaFeatures) |
private transient java.io.DataOutputStream ostream
private transient java.util.HashMap rplyObjMap
private transient java.util.HashMap rplyXidObjMap
private transient boolean is_term
private transient int dom_protocol
private transient java.lang.String local_domain_name
private transient gwatmi myGwatmi
private transient InvokeSvc myInvoker
private transient dsession mySession
private int uid
private BetaFeatures useBetaFeatures
private transient java.util.Timer myTimeService
private transient long myBlocktime
private transient TuxXidRply unknownXidRply
private transient java.util.ArrayList tfmhList
private transient java.util.ArrayList objectArrayList
private transient java.util.ArrayList dispatchList
private transient java.util.HashMap conversationReplyObjects
private static final int MAXCACHE
public rdsession(java.io.DataOutputStream dom_ostream, gwatmi ss, InvokeSvc invoke, int protocol, java.lang.String ldn, java.util.Timer timeService, TuxXidRply anXidRply, BetaFeatures betaFeatures)
dom_ostream
- The raw network output stream to the GWTDOMAINss
- The atmi objec from where I am being used, so that service
routines can know on which session to do their own atmi callsinvoke
- The invoker object to be used when invoking servicesprotocol
- The remote domain protocol to speakldn
- The local domain nametimeService
- The weblogic time serviceanXidRply
- The XID reply object used to handle requests from the
remote domain concerning unknown XIDsbetaFeatures
- true if we are allowed to use beta featurespublic void set_BlockTime(long blocktime)
blocktime
- The default blocktime (in milliseconds)public InvokeSvc get_invoker()
public boolean isTerm()
public void connectionHasTerminated()
public void restoreTfmhToCache(tfmh msg)
public tfmh allocTfmh()
public void restoreExecuteRequestToCache(MuxableExecute me)
me
- The muxable request to restor to the cacheprivate void restoreObjectArray(java.lang.Object[] oarr)
oarr
- An object array of at least size three to add to the cacheprivate java.lang.Object[] allocObjectArray()
public void add_rplyObj(SessionAcallDescriptor cd, ReplyQueue rplyObj, int blocktime, TpacallAsyncReply callBack) throws TPException
cd
- The request id for which this reply object refersrplyObj
- The reply object on which to enqueue the replyblocktime
- Has the following meanings:callBack
- This is the call-back to be invoked when a call-back should
be invoked (or null, otherwise)TPException
- TPEINVAL if blocktime has an invalid valuepublic void addTimeoutRequest(int giopReqId, int reqId, long blocktime) throws TPException
giopReqId
- The unique request id in GIOP messagereqId
- The unique request id in TDOM_TCMblocktime
- The timeout to use on this receiveTPException
- if schedule timer task failed.public boolean addRplyObjTimeout(SessionAcallDescriptor cd, int blocktime)
cd
- The call descriptor to which to add a timeoutblocktime
- The timeout to use on this receivepublic boolean remove_rplyObj(SessionAcallDescriptor cd)
cd
- The request id for which this request is to be cancelledpublic java.lang.Object[] removeReplyObj(SessionAcallDescriptor cd)
private void addlist(tfmh tmmsg, int opcode)
tmmsg
- The message to add to the list of recieved messagesopcode
- The opcode of the messagepublic void add_rplyXidObj(Txid txid, TuxXidRply rplyXidObj, int blocktime) throws TPException
txid
- The transaction id for which we are getting a replyrplyXidObj
- The reply object on which to enqueue the replyblocktime
- Has the following meanings:TPException
- TPEINVAL if blocktime has an invalid valuepublic boolean remove_rplyXidObj(Txid txid)
txid
- The request id for which this request is to be cancelledprivate void addXidlist(tfmh tmmsg)
tmmsg
- The message to add to the list of recieved messagesprivate ReplyQueue allocConversationReplyObject(int convid)
public ConversationReply getConversationReply(int convid)
public void dispatch(tfmh tmmsg)
public void setSessionReference(dsession session)
the
- current session it is running withprivate byte[] getTranXID(tfmh tmmsg)