public class MQTM
extends com.ibm.mq.headers.internal.Header
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
};
MQHeader.Field| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
Size of an MQTM structure in bytes
|
| Constructor and Description |
|---|
MQTM()
Constructs an MQTM instance with default field values.
|
MQTM(java.io.DataInput message)
Constructs an MQTM instance populated from an MQMessage.
|
MQTM(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQTM instance populated from a DataInput source.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplId()
gets the application identifier
|
int |
getApplType()
gets the application type
|
java.lang.String |
getEnvData()
gets the environment data
|
java.lang.String |
getProcessName()
gets the Name of process object
|
java.lang.String |
getQName()
gets the Name of triggered queue
|
java.lang.String |
getStrucId()
Get the structure identifier; the value will be MQTM_STRUC_ID
|
java.lang.String |
getTriggerData()
gets the trigger data
|
java.lang.String |
getUserData()
gets the user data
|
int |
getVersion()
Get the Structure version number
|
void |
setApplId(java.lang.String value)
sets the application identifier
|
void |
setApplType(int value)
sets the application type
|
void |
setEnvData(java.lang.String value)
sets the environment data
|
void |
setProcessName(java.lang.String value)
sets the Name of process object
|
void |
setQName(java.lang.String value)
sets the Name of triggered queue
|
void |
setTriggerData(java.lang.String value)
sets the trigger data
|
void |
setUserData(java.lang.String value)
sets the user data
|
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, writepublic static final int SIZE
public MQTM()
public MQTM(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQTM stucturejava.io.IOException - if there is a problem reading the message contentpublic MQTM(java.io.DataInput message,
int encoding,
int characterSet)
throws MQDataException,
java.io.IOException
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 messageMQDataException - if the message content does not yield a valid MQTM stucturejava.io.IOException - if there is a problem reading the message contentpublic java.lang.String getStrucId()
public int getVersion()
public java.lang.String getQName()
public void setQName(java.lang.String value)
value - the Name of triggered queuepublic java.lang.String getProcessName()
public void setProcessName(java.lang.String value)
value - the Name of process objectpublic java.lang.String getTriggerData()
public void setTriggerData(java.lang.String value)
value - the trigger datapublic int getApplType()
public void setApplType(int value)
value - the application typepublic java.lang.String getApplId()
public void setApplId(java.lang.String value)
value - the application identifierpublic java.lang.String getEnvData()
public void setEnvData(java.lang.String value)
value - the environment datapublic java.lang.String getUserData()
public void setUserData(java.lang.String value)
value - the user data