com.ibm.mq.headers
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 com.ibm.mq.headers.MQHeader
MQHeader.Field
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZE
Size of an MQTMC2 structure in bytes
-
Constructor Summary
Constructors Constructor and Description MQTMC2()
Constructs an MQTMC2 instance with default field values.MQTMC2(java.io.DataInput message)
Constructs an MQTMC2 instance populated from an MQMessage.MQTMC2(java.io.DataInput message, int encoding, int characterSet)
Constructs an MQTMC2 instance populated from a DataInput source.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description java.lang.String
getApplId()
gets the application identifierjava.lang.String
getApplType()
gets the application typejava.lang.String
getEnvData()
gets the environment datajava.lang.String
getProcessName()
gets the Name of process objectjava.lang.String
getQMgrName()
gets the Queue manager namejava.lang.String
getQName()
gets the Name of triggered queuejava.lang.String
getStrucId()
Get the structure identifier; the value will be MQTM_STRUC_IDjava.lang.String
getTriggerData()
gets the trigger datajava.lang.String
getUserData()
gets the user datajava.lang.String
getVersion()
Get the Structure version numbervoid
setApplId(java.lang.String value)
sets the application identifiervoid
setApplType(int value)
Deprecated.void
setApplType(java.lang.String value)
sets the application typevoid
setEnvData(java.lang.String value)
sets the environment datavoid
setProcessName(java.lang.String value)
sets the Name of process objectvoid
setQMgrName(java.lang.String value)
sets the Queue manager namevoid
setQName(java.lang.String value)
sets the Name of triggered queuevoid
setTriggerData(java.lang.String value)
sets the trigger datavoid
setUserData(java.lang.String value)
sets the user data-
Methods 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, write
-
-
-
-
Field Detail
-
SIZE
public static final int SIZE
Size of an MQTMC2 structure in bytes- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MQTMC2
public MQTMC2()
Constructs an MQTMC2 instance with default field values.
-
MQTMC2
public MQTMC2(java.io.DataInput message) throws MQDataException, java.io.IOException
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 stucturejava.io.IOException
- if there is a problem reading the message content
-
MQTMC2
public MQTMC2(java.io.DataInput message, int encoding, int characterSet) throws MQDataException, java.io.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 stucturejava.io.IOException
- if there is a problem reading the message content
-
-
Method Detail
-
getStrucId
public java.lang.String getStrucId()
Get the structure identifier; the value will be MQTM_STRUC_ID- Returns:
- the structure identifier
-
getVersion
public java.lang.String getVersion()
Get the Structure version number- Returns:
- the Structure version number
-
getQName
public java.lang.String getQName()
gets the Name of triggered queue- Returns:
- the Name of triggered queue
-
setQName
public void setQName(java.lang.String value)
sets the Name of triggered queue- Parameters:
value
- the Name of triggered queue
-
getProcessName
public java.lang.String getProcessName()
gets the Name of process object- Returns:
- the Name of process object
-
setProcessName
public void setProcessName(java.lang.String value)
sets the Name of process object- Parameters:
value
- the Name of process object
-
getTriggerData
public java.lang.String getTriggerData()
gets the trigger data- Returns:
- the trigger data
-
setTriggerData
public void setTriggerData(java.lang.String value)
sets the trigger data- Parameters:
value
- the trigger data
-
getApplType
public java.lang.String getApplType()
gets the application type- Returns:
- the application type
-
setApplType
public void setApplType(int value)
Deprecated.sets the application type- Parameters:
value
- the application type
-
setApplType
public void setApplType(java.lang.String value)
sets the application type- Parameters:
value
- the application type
-
getApplId
public java.lang.String getApplId()
gets the application identifier- Returns:
- the application identifier
-
setApplId
public void setApplId(java.lang.String value)
sets the application identifier- Parameters:
value
- the application identifier
-
getEnvData
public java.lang.String getEnvData()
gets the environment data- Returns:
- the environment data
-
setEnvData
public void setEnvData(java.lang.String value)
sets the environment data- Parameters:
value
- the environment data
-
getUserData
public java.lang.String getUserData()
gets the user data- Returns:
- the user data
-
setUserData
public void setUserData(java.lang.String value)
sets the user data- Parameters:
value
- the user data
-
getQMgrName
public java.lang.String getQMgrName()
gets the Queue manager name- Returns:
- the Queue manager name
-
setQMgrName
public void setQMgrName(java.lang.String value)
sets the Queue manager name- Parameters:
value
- the Queue manager name
-
-