public final class ComposHdrTcb extends tcb
Modifier and Type | Field and Description |
---|---|
private int |
appkey |
private int |
hintIndex |
private int |
opcode |
private static long |
serialVersionUID |
private static int |
sizeofTCMTMCOMPOS |
private java.lang.String |
subtype |
private static int |
TMCOMPOSMAGIC |
static int |
TPDEQUEUE |
static int |
TPENQUEUE |
static int |
TPQCAP_0 |
static int |
TPQCAP_1 |
private static int |
TPQOPMASK |
private java.lang.String |
type |
private int |
urcode |
Constructor and Description |
---|
ComposHdrTcb() |
ComposHdrTcb(int newopcode,
int myUrcode) |
Modifier and Type | Method and Description |
---|---|
int |
_tmpostrecv(java.io.DataInputStream decoder,
int recv_size,
int hint_index) |
boolean |
_tmpostrecv65(java.io.DataInputStream decoder)
This function presends and encodes the ComposHdrTcb in old-stlye format,
in other words 6.5 and previous
|
void |
_tmpresend(java.io.DataOutputStream encoder,
tch myheader)
This function presends and encodes the ComposHdrTcb
|
void |
_tmpresend65(java.io.DataOutputStream encoder)
This function presends and encodes the ComposHdrTcb in old-stlye format,
in other words 6.5 and previous
|
int |
getAppkey()
Gets the appkey of this TCB
|
java.lang.String |
getComposSubtype()
Gets the subtype of this header, if set (will only be set if received
from a release older than 7.1 (ie 6.5 or less)
|
java.lang.String |
getComposType()
Gets the type of this header, if set (will only be set if received
from a release older than 7.1 (ie 6.5 or less)
|
int |
getR65size()
Gets the size of a composite header field when encoded for r65
protocol
|
int |
getUrcode()
Gets the urcode of this TCB
|
boolean |
prepareForCache()
Sets this header TCB back to the null constructor state
|
void |
setTypeAndSubtype(java.lang.String aType,
java.lang.String aSubtype,
int aHintIndex)
Sets the type and subtype of this composite header for interoperation
with 6.5 and previous releases of Tuxedo
|
private int opcode
private int appkey
private int urcode
private java.lang.String type
private java.lang.String subtype
private int hintIndex
public static final int TPENQUEUE
public static final int TPDEQUEUE
public static final int TPQCAP_0
public static final int TPQCAP_1
private static final int TPQOPMASK
private static final int TMCOMPOSMAGIC
private static final long serialVersionUID
private static final int sizeofTCMTMCOMPOS
public ComposHdrTcb()
public ComposHdrTcb(int newopcode, int myUrcode)
public void setTypeAndSubtype(java.lang.String aType, java.lang.String aSubtype, int aHintIndex)
aType
- The type of composite buffer this should beaSubtype
- The subtype of composite buffer this should beaHintIndex
- The hint index for this type and subtypepublic java.lang.String getComposType()
public java.lang.String getComposSubtype()
public boolean prepareForCache()
prepareForCache
in class tcb
public void _tmpresend(java.io.DataOutputStream encoder, tch myheader) throws TPException, java.io.IOException
_tmpresend
in class tcb
fillin
- A data buffer to fill in with the present and encoded
TCBmyheader
- The TCH that will be used to send this data.
Needed in order to set the unpadded lengthTPException
- java.io.IOException
- if there was an error using the encoderpublic final int _tmpostrecv(java.io.DataInputStream decoder, int recv_size, int hint_index) throws java.io.IOException
_tmpostrecv
in class tcb
decoder
- The input stream pointing to the start of the TCBrecv_size
- The total size of this TCB, unpaddedjava.io.IOException
- if there was an error reading the input stream
public int getUrcode()
public int getAppkey()
public int getR65size()
public void _tmpresend65(java.io.DataOutputStream encoder) throws java.io.IOException
encoder
- The object to use to write the data out toextraLen
- The length of the user datajava.io.IOException
- if there was trouble writing to the encoderpublic boolean _tmpostrecv65(java.io.DataInputStream decoder) throws java.io.IOException
encoder
- The object to use to write the data out toextraLen
- The length of the user datatrue
- if decoded properly, false otherwisejava.io.IOException
- if there was trouble writing to the encoder