Class MQTM
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.headers.internal.Header
com.ibm.mq.headers.MQTM
public class MQTM
extends com.ibm.mq.headers.internal.Header
MQTM header class.
struct tagMQTM
{
MQCHAR4 StrucId; // Structure identifier
MQLONG Version; // Structure version number
MQCHAR48 QName; // Name of triggered queue
MQCHAR48 ProcessName; // Name of process object
MQCHAR64 TriggerData; // Trigger data
MQLONG ApplType; // Application type
MQCHAR256 ApplId; // Application identifier
MQCHAR128 EnvData; // Environment data
MQCHAR128 UserData; // User data
};
-
Nested Class Summary
Nested classes/interfaces inherited from interface MQHeader
MQHeader.Field -
Field Summary
FieldsFields inherited from class com.ibm.mq.headers.internal.Header
DEFAULT_CCSID, DEFAULT_ENCODING, delegateFields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongets the application identifierintgets the application typegets the environment datagets the Name of process objectgetQName()gets the Name of triggered queueGet the structure identifier; the value will be MQTM_STRUC_IDgets the trigger datagets the user dataintGet the Structure version numbervoidsets the application identifiervoidsetApplType(int value) sets the application typevoidsetEnvData(String value) sets the environment datavoidsetProcessName(String value) sets the Name of process objectvoidsets the Name of triggered queuevoidsetTriggerData(String value) sets the trigger datavoidsetUserData(String value) sets the user dataMethods inherited from class com.ibm.mq.headers.internal.Header
characterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, size, store, store, toString, type, validate, write, writeMethods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironment
-
Field Details
-
SIZE
public static final int SIZESize of an MQTM structure in bytes- See Also:
-
-
Constructor Details
-
MQTM
public MQTM()Constructs an MQTM instance with default field values. -
MQTM
Constructs an MQTM instance populated from an MQMessage.- Parameters:
message- the message to read- Throws:
MQDataException- if the message content does not yield a valid MQTM stuctureIOException- if there is a problem reading the message content
-
MQTM
Constructs an MQTM instance populated from a DataInput source.- Parameters:
message- the MQMessage or other DataInput source to readencoding- the initial numeric encoding of the data in the messagecharacterSet- the initial CCSID of the data in the message- Throws:
MQDataException- if the message content does not yield a valid MQTM stuctureIOException- if there is a problem reading the message content
-
-
Method Details
-
getStrucId
Get the structure identifier; the value will be MQTM_STRUC_ID- Returns:
- the structure identifier
-
getVersion
public int getVersion()Get the Structure version number- Returns:
- the Structure version number
-
getQName
-
setQName
sets the Name of triggered queue- Parameters:
value- the Name of triggered queue
-
getProcessName
-
setProcessName
sets the Name of process object- Parameters:
value- the Name of process object
-
getTriggerData
-
setTriggerData
-
getApplType
public int getApplType()gets the application type- Returns:
- the application type
-
setApplType
public void setApplType(int value) sets the application type- Parameters:
value- the application type
-
getApplId
-
setApplId
sets the application identifier- Parameters:
value- the application identifier
-
getEnvData
-
setEnvData
sets the environment data- Parameters:
value- the environment data
-
getUserData
-
setUserData
-