Class MQTMC2
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.headers.internal.Header
com.ibm.mq.headers.MQTMC2
- Direct Known Subclasses:
MQTM2
public class MQTMC2
extends com.ibm.mq.headers.internal.Header
MQTMC2 header class.
struct tagMQTMC2 {
MQCHAR4 StrucId; // Structure identifier
MQCHAR4 Version; // Structure version number
MQCHAR48 QName; // Name of triggered queue
MQCHAR48 ProcessName; // Name of process object
MQCHAR64 TriggerData; // Trigger data
MQCHAR4 ApplType; // Application type
MQCHAR256 ApplId; // Application identifier
MQCHAR128 EnvData; // Environment data
MQCHAR128 UserData; // User data
MQCHAR48 QMgrName; // Queue manager name
};
-
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 identifiergets the application typegets the environment datagets the Name of process objectgets the Queue manager namegetQName()Deprecated.Get the structure identifier; the value will be MQTM_STRUC_IDgets the trigger datagets the user dataGet the Structure version numbervoidsets the application identifiervoidsetApplType(int value) Deprecated.voidsetApplType(String value) sets the application typevoidsetEnvData(String value) sets the environment datavoidsetProcessName(String value) sets the Name of process objectvoidsetQMgrName(String value) sets the Queue manager namevoidsets 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 MQTMC2 structure in bytes- See Also:
-
-
Constructor Details
-
MQTMC2
public MQTMC2()Constructs an MQTMC2 instance with default field values. -
MQTMC2
Constructs an MQTMC2 instance populated from an MQMessage.- Parameters:
message- the message to read- Throws:
MQDataException- if the message content does not yield a valid MQTMC2 stuctureIOException- if there is a problem reading the message content
-
MQTMC2
public MQTMC2(DataInput message, int encoding, int characterSet) throws MQDataException, IOException Constructs an MQTMC2 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 MQTMC2 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
-
getQName
Deprecated.gets the Name of triggered queue- Returns:
- the Name of triggered queue
-
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
-
setApplType
public void setApplType(int value) Deprecated.sets the application type- Parameters:
value- the application type
-
setApplType
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
-
getQMgrName
-
setQMgrName
sets the Queue manager name- Parameters:
value- the Queue manager name
-