com.ibm.mq.pcf
類別 PCFMessage
- java.lang.Object
- com.ibm.mq.jmqi.JmqiObject
- com.ibm.mq.headers.internal.Header
- com.ibm.mq.pcf.PCFHeader
- com.ibm.mq.pcf.PCFMessage
- 所有實作的介面:
- com.ibm.mq.headers.internal.CachingHeader、 MQData、 MQHeader、 PCFContent
已淘汰。使用PCFMessage。public class PCFMessage 延伸 PCFHeader 實作 PCFContent
封裝 PCF 訊息的類別。 PCFMessage 通常代表 PCF 要求或回應或事件訊息,其中包含 MQCFH 標頭,後面接著一組 PCFParameter 結構 (MQCFIN、MQCFIL、MQCFST 等類型)。 可以建構及操作 PCFMessage 實例,而無需直接參照 PCF 標頭及參數結構本身。- 另請參閱:
PCFMessageAgent
-
巢狀類別摘要
-
繼承自介面 com.ibm.mq.headers 的巢狀類別/介面。MQHeader
MQHeader.Field
-
-
建構子摘要
建構子 建構子和說明 PCFMessage(int command)已淘汰。將 PCFMessage 起始設定為具有指定 MQCFH 指令 ID 的 PCF 要求。PCFMessage(int type, int command, int msgSeqNumber, boolean last)已淘汰。以指定的 MQCFH 類型、指令 ID、序號及控制指示器來起始設定 PCFMessage。PCFMessage(MQMessage message)已淘汰。從 MQMessage 的內容起始設定 PCFMessage。
-
方法摘要
所有方法 實例方法 具體方法 已淘汰的方法 修飾元和類型 方法和說明 voidaddFilterParameter(int parameter, int operator, byte[] value)已淘汰。將位元組字串過濾器參數新增至群組。voidaddFilterParameter(int parameter, int operator, int value)已淘汰。將整數過濾器參數新增至群組。voidaddFilterParameter(int parameter, int operator, java.lang.String value)已淘汰。將字串過濾器參數新增至群組。voidaddParameter(int parameter, byte[] value)已淘汰。將位元組陣列參數新增至群組。voidaddParameter(int parameter, int value)已淘汰。將整數參數新增至群組。voidaddParameter(int parameter, int[] values)已淘汰。將整數清單參數新增至群組。voidaddParameter(int parameter, long value)已淘汰。將 64 位元整數參數新增至群組。voidaddParameter(int parameter, long[] values)已淘汰。將 64 位元整數清單參數新增至群組。voidaddParameter(int parameter, java.lang.String value)已淘汰。將字串參數新增至群組。voidaddParameter(int parameter, java.lang.String[] values)已淘汰。將字串清單參數新增至群組。voidaddParameter(PCFParameter parameter)已淘汰。將 PCFParameter 新增至 PCFMessage。booleanequals(java.lang.Object obj)已淘汰。當使用另一個 PCFMessage 實例以相同順序呼叫時,會傳回 true ,該實例具有相符的標頭及相等參數。byte[]getBytesParameterValue(int parameter)已淘汰。傳回指定位元組陣列參數 (MQCFBS) 的值。intgetCommand()已淘汰。傳回 PCF 指令 IDintgetCompCode()已淘汰。傳回 MQCFH 中的完成碼。intgetControl()已淘汰。傳回 PCF 標頭控制指示器。longgetInt64ParameterValue(int parameter)已淘汰。以整數傳回指定整數參數 (MQCFIN64) 的值。long[]getIntList64ParameterValue(int parameter)已淘汰。以整數陣列形式傳回指定整數清單參數 (MQCFIL64) 的值。int[]getIntListParameterValue(int parameter)已淘汰。以整數陣列形式傳回指定整數清單參數 (MQCFIL) 的值。intgetIntParameterValue(int parameter)已淘汰。以整數傳回指定整數參數 (MQCFIN) 的值。intgetMsgSeqNumber()已淘汰。傳回 PCF 訊息序號PCFParametergetParameter(int parameter)已淘汰。傳回指定參數的 PCFParameter 結構,如果找不到參數,則傳回空值。intgetParameterCount()已淘汰。傳回 PCF 訊息中的參數結構數目。java.util.EnumerationgetParameters()已淘汰。傳回群組中參數的列舉。java.lang.ObjectgetParameterValue(int parameter)已淘汰。傳回指定參數的值,如果找不到參數,則傳回空值。intgetReason()已淘汰。傳回 MQCFH 中的原因碼。java.lang.String[]getStringListParameterValue(int parameter)已淘汰。以字串陣列形式傳回指定字串清單參數 (MQCFSL) 的值。java.lang.StringgetStringParameterValue(int parameter)已淘汰。以字串形式傳回指定字串參數 (MQCFST) 的值。intgetType()已淘汰。傳回 PCF 類型 IDvoidinitialize(int command)已淘汰。起始設定 PCFMessage ,以與指定的指令 ID (無參數) 一起重複使用。voidinitialize(int type, int command, int msgSeqNumber, boolean last)已淘汰。起始設定 PCFMessage ,以與指定的類型、指令 ID、序號、控制指示器及無參數一起重複使用。voidinitialize(MQMessage message)已淘汰。從 MQMessage 讀取 PCFMessage 的內容。intsize()已淘汰。傳回此 PCFMessage 的大小 (以位元組為單位)。java.lang.StringtoString()已淘汰。傳回類別實例成員的字串表示法intwrite(java.io.DataOutput message)已淘汰。將此 PCFMessage 的內容寫入 DataOutput。intwrite(MQMessage message)已淘汰。將此 PCFMessage 的內容寫入 MQMessage。-
繼承自類別 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, store, store, type, validate
-
-
-
建構子詳細資料
PCFMessage
public PCFMessage (int 指令)
已淘汰。將 PCFMessage 起始設定為具有指定 MQCFH 指令 ID 的 PCF 要求。 當新增參數時,參數計數會從零遞增。- 參數:
command-PCF 指令 ID
PCFMessage
public PCFMessage (int type , int 指令, int msgSeqNumber , 布林 last)已淘汰。以指定的 MQCFH 類型、指令 ID、序號及控制指示器來起始設定 PCFMessage。 當新增參數時,參數計數會從零遞增。 大部分應用程式都不需要使用此建構子。 改為 PCF 要求訊息 (一律具有類型 MQCFT_COMMAND、序號 1 及設為 MQCFC_LAST 的控制指示器) 更容易使用 PCFMessage (int 指令) 來建構 表單。- 參數:
type-PCF 訊息類型command-PCF 指令 IDmsgSeqNumber-訊息的序號last-如果已設定,則指出此訊息是序列中的最後一則
PCFMessage
public PCFMessage (MQMessage message) throws MQException, java.io.IOException
已淘汰。從 MQMessage 的內容起始設定 PCFMessage。- 參數:
message-要讀取的訊息- 擲出:
MQException-如果訊息內容未產生有效的 PCFMessagejava.io.IOException-如果在讀取訊息時發生問題
-
方法詳細資料
起始設定
public void initialize (int command)
已淘汰。起始設定 PCFMessage ,以與指定的指令 ID (無參數) 一起重複使用。- 參數:
command-PCF 指令 ID
起始設定
public void initialize (int type , int 指令, int msgSeqNumber , 布林 last)已淘汰。起始設定 PCFMessage ,以與指定的類型、指令 ID、序號、控制指示器及無參數一起重複使用。 大部分應用程式將不需要使用此方法。 改為 PCF 要求訊息 (一律具有類型 MQCFT_COMMAND、序號 1 及控制指示器設為 MQCFC_LAST) 可以更輕鬆地使用 initialize (int 指令) 來起始設定 表單。- 參數:
type-PCF 訊息類型command-PCF 指令 IDmsgSeqNumber-訊息的序號last-如果已設定,則指出此訊息是序列中的最後一則
addParameter
public void addParameter (PCFParameter parameter)
已淘汰。將 PCFParameter 新增至 PCFMessage。 必要的話,會自動更新 MQCFH 版本,以對應參數類型。 (例如,如果新增 PCF 過濾器參數,則版本必須設為 MQCFH_VERSION_3 。)- 指定者:
addParameter在介面中PCFContent- 參數:
parameter-要新增的參數結構 (MQCFIN、MQCFIL、MQCFST 等)- 另請參閱:
PCFContent.addParameter(PCFParameter)
addParameter
public void addParameter (int parameter , int value)已淘汰。從介面複製的說明:PCFContent將整數參數新增至群組。- 指定者:
addParameter在介面中PCFContent- 參數:
parameter-整數參數 IDvalue-整數值- 另請參閱:
PCFContent.addParameter(int, int)
addParameter
public void addParameter (int parameter , int [] values)已淘汰。從介面複製的說明:PCFContent將整數清單參數新增至群組。- 指定者:
addParameter在介面中PCFContent- 參數:
parameter-整數清單參數 IDvalues-整數值的陣列- 另請參閱:
PCFContent.addParameter(int, int[])
addParameter
public void addParameter (int parameter , long 值)已淘汰。從介面複製的說明:PCFContent將 64 位元整數參數新增至群組。- 指定者:
addParameter在介面中PCFContent- 參數:
parameter-整數參數 IDvalue-整數值- 另請參閱:
PCFContent.addParameter(int, long)
addParameter
public void addParameter (int parameter , long [] values)已淘汰。從介面複製的說明:PCFContent將 64 位元整數清單參數新增至群組。- 指定者:
addParameter在介面中PCFContent- 參數:
parameter-整數清單參數 IDvalues-整數值的陣列- 另請參閱:
PCFContent.addParameter(int, long[])
addParameter
public void addParameter (int parameter , java.lang.String 值)已淘汰。從介面複製的說明:PCFContent將字串參數新增至群組。- 指定者:
addParameter在介面中PCFContent- 參數:
parameter-字串參數 IDvalue-字串值- 另請參閱:
PCFContent.addParameter(int, String)
addParameter
public void addParameter (int parameter , java.lang.String [] values)已淘汰。從介面複製的說明:PCFContent將字串清單參數新增至群組。- 指定者:
addParameter在介面中PCFContent- 參數:
parameter-字串清單參數 IDvalues-字串值的陣列- 另請參閱:
PCFContent.addParameter(int, String[])
addParameter
public void addParameter (int parameter , byte [] value)已淘汰。從介面複製的說明:PCFContent將位元組陣列參數新增至群組。- 指定者:
addParameter在介面中PCFContent- 參數:
parameter-字串清單參數 IDvalue-字串值的陣列- 另請參閱:
PCFContent.addParameter(int, byte[])
addFilterParameter
public void addFilterParameter (int parameter , int operator , int value)已淘汰。從介面複製的說明:PCFContent將整數過濾器參數新增至群組。- 指定者:
addFilterParameter在介面中PCFContent- 參數:
parameter-過濾器參數 IDoperator-其中一個 MQCFOP_ * 過濾器運算子常數value-過濾器值- 另請參閱:
PCFContent.addFilterParameter(int, int, int)
addFilterParameter
public void addFilterParameter (int parameter , int operator , java.lang.String 值)已淘汰。從介面複製的說明:PCFContent將字串過濾器參數新增至群組。- 指定者:
addFilterParameter在介面中PCFContent- 參數:
parameter-過濾器參數 IDoperator-其中一個 MQCFOP_ * 過濾器運算子常數value-過濾器值- 另請參閱:
PCFContent.addFilterParameter(int, int, String)
addFilterParameter
public void addFilterParameter (int parameter , int operator , byte [] value)已淘汰。從介面複製的說明:PCFContent將位元組字串過濾器參數新增至群組。- 指定者:
addFilterParameter在介面中PCFContent- 參數:
parameter-過濾器參數 IDoperator-其中一個 MQCFOP_ * 過濾器運算子常數value-過濾器值- 另請參閱:
PCFContent.addFilterParameter(int, int, byte[])
getCommand
public int getCommand ()
已淘汰。傳回 PCF 指令 ID- 退貨:
- 來自 MQCFH 的 指令的值 欄位
getMsgSeqNumber
public int getMsgSeqNumber ()
已淘汰。傳回 PCF 訊息序號- 退貨:
- 來自 MQCFH 的 msgSeqNumber 的值 欄位
getControl
public int getControl ()
已淘汰。傳回 PCF 標頭控制指示器。- 退貨:
- 來自 MQCFH 的 控制項的值 欄位
getCompCode
public int getCompCode ()
已淘汰。傳回 MQCFH 中的完成碼。- 退貨:
- 來自 MQCFH 的 CompCode 的值 欄位
getReason
public int getReason ()
已淘汰。傳回 MQCFH 中的原因碼。- 退貨:
- 來自 MQCFH 的 原因的值 欄位
getParameterCount
public int getParameterCount ()
已淘汰。傳回 PCF 訊息中的參數結構數目。- 指定者:
getParameterCount在介面中PCFContent- 退貨:
- 來自 MQCFH 的 parameterCount 的值 欄位
- 另請參閱:
PCFContent.getParameterCount()
getParameters
public java.util.Enumeration getParameters ()
已淘汰。從介面複製的說明:PCFContent傳回群組中參數的列舉。 傳回的列舉元素是個別 PCFParameter 實例 (MQCFIN、MQCFIL、MQCFST 或 MQCFSL 等實例)。- 指定者:
getParameters在介面中PCFContent- 退貨:
- PCF 訊息參數結構
- 另請參閱:
PCFContent.getParameters()
getParameter
public PCFParameter getParameter (int parameter)
已淘汰。從介面複製的說明:PCFContent傳回指定參數的 PCFParameter 結構,如果找不到參數,則傳回空值。- 指定者:
getParameter在介面中PCFContent- 退貨:
- 指定的參數物件
- 另請參閱:
PCFContent.getParameter(int)
getParameterValue
public java.lang.Object getParameterValue (int parameter)
已淘汰。從介面複製的說明:PCFContent傳回指定參數的值,如果找不到參數,則傳回空值。 傳回的物件是單一整數、單一字串、整數陣列或字串陣列,視 PCFParameter 的類型而定。 呼叫者可以從提供的參數 ID 推斷預期的傳回類型。- 指定者:
getParameterValue在介面中PCFContent- 退貨:
- 指定的參數值
- 另請參閱:
PCFContent.getParameterValue(int)
getIntParameterValue
public int getIntParameterValue (int parameter) throws PCFException已淘汰。從介面複製的說明:PCFContent以整數傳回指定整數參數 (MQCFIN) 的值。- 指定者:
getIntParameterValue在介面中PCFContent- 參數:
parameter-整數參數 ID- 退貨:
- 整數參數值
- 擲出:
PCFException-如果訊息中沒有指定的參數 (給定的原因碼是 MQRCCF_CFIN_PARM_ID_ERROR)- 另請參閱:
PCFContent.getIntParameterValue(int)
getIntListParameterValue
public int [] getIntListParameterValue (int parameter) throws PCFException已淘汰。從介面複製的說明:PCFContent以整數陣列形式傳回指定整數清單參數 (MQCFIL) 的值。- 指定者:
getIntListParameterValue在介面中PCFContent- 參數:
parameter-整數清單參數 ID- 退貨:
- 整數清單參數值
- 擲出:
PCFException-如果指定的參數不存在於群組中 (給定的原因碼是 MQRCCF_CFIL_PARM_ID_ERROR)- 另請參閱:
PCFContent.getIntListParameterValue(int)
getInt64ParameterValue
public long getInt64ParameterValue(int parameter) throws PCFException已淘汰。從介面複製的說明:PCFContent以整數傳回指定整數參數 (MQCFIN64) 的值。- 指定者:
getInt64ParameterValue在介面中PCFContent- 參數:
parameter-整數參數 ID- 退貨:
- 整數參數值
- 擲出:
PCFException-如果訊息中沒有指定的參數 (給定的原因碼是 MQRCCF_CFIN_PARM_ID_ERROR)- 另請參閱:
PCFContent.getInt64ParameterValue(int)
getIntList64ParameterValue
public long [] getIntList64ParameterValue(int parameter) throws PCFException已淘汰。從介面複製的說明:PCFContent以整數陣列形式傳回指定整數清單參數 (MQCFIL64) 的值。- 指定者:
getIntList64ParameterValue在介面中PCFContent- 參數:
parameter-整數清單參數 ID- 退貨:
- 整數清單參數值
- 擲出:
PCFException-如果指定的參數不存在於群組中 (給定的原因碼是 MQRCCF_CFIL_PARM_ID_ERROR)- 另請參閱:
PCFContent.getIntList64ParameterValue(int)
getStringParameterValue
public java.lang.String getStringParameterValue (int parameter) throws PCFException已淘汰。從介面複製的說明:PCFContent以字串形式傳回指定字串參數 (MQCFST) 的值。- 指定者:
getStringParameterValue在介面中PCFContent- 參數:
parameter-字串參數 ID- 退貨:
- 字串參數值
- 擲出:
PCFException-如果指定的參數不存在於群組中 (給定的原因碼是 MQRCCF_CFST_PARM_ID_ERROR)- 另請參閱:
PCFContent.getStringParameterValue(int)
getStringListParameterValue
public java.lang.String [] getStringListParameterValue (int parameter) throws PCFException已淘汰。從介面複製的說明:PCFContent以字串陣列形式傳回指定字串清單參數 (MQCFSL) 的值。- 指定者:
getStringListParameterValue在介面中PCFContent- 參數:
parameter-字串清單參數 ID- 退貨:
- 字串清單參數值
- 擲出:
PCFException-如果指定的參數不存在於群組中 (給定的原因碼為 MQRCCF_CFSL_PARM_ID_ERROR; 未定義其他特定的錯誤碼)- 另請參閱:
PCFContent.getStringListParameterValue(int)
getBytesParameterValue
public byte [] getBytesParameterValue (int parameter) throws PCFException已淘汰。從介面複製的說明:PCFContent傳回指定位元組陣列參數 (MQCFBS) 的值。- 指定者:
getBytesParameterValue在介面中PCFContent- 參數:
parameter-位元組陣列參數 ID- 退貨:
- 位元組陣列參數值
- 擲出:
PCFException-如果指定的參數不存在於群組中 (給定的原因碼是 MQRCCF_CFBS_PARM_ID_ERROR)- 另請參閱:
PCFContent.getBytesParameterValue(int)
起始設定
public void initialize (MQMessage message) throws MQException, java.io.IOException
已淘汰。從 MQMessage 讀取 PCFMessage 的內容。- 置換:
initialize在類別中PCFHeader- 參數:
message-訊息- 擲出:
MQExceptionjava.io.IOException- 另請參閱:
PCFHeader.initialize(MQMessage)
寫入
public int write (MQMessage message) throws java.io.IOException
已淘汰。將此 PCFMessage 的內容寫入 MQMessage。- 參數:
message-要寫入的 MQMessage- 退貨:
- 寫入的位元組數
- 擲出:
java.io.IOException-如果有 IO 錯誤- 另請參閱:
PCFHeader.write(java.io.DataOutput,int,int)
寫入
public int write (java.io.DataOutput message) throws java.io.IOException已淘汰。將此 PCFMessage 的內容寫入 DataOutput。- 指定者:
write在介面中MQData- 置換:
write在類別中com.ibm.mq.headers.internal.Header- 參數:
message-要寫入的 MQMessage- 退貨:
- 寫入的位元組數
- 擲出:
java.io.IOException-如果有 IO 錯誤- 另請參閱:
PCFHeader.write(java.io.DataOutput,int,int)
大小
public int size ()
已淘汰。傳回此 PCFMessage 的大小 (以位元組為單位)。- 指定者:
size在介面中MQData- 置換:
size在類別中PCFHeader- 退貨:
- 此資料元素在訊息中所佔用的大小 (以位元組為單位)。
- 另請參閱:
PCFHeader.size()
等於
public boolean equals (java.lang.Object obj)
已淘汰。當使用另一個 PCFMessage 實例以相同順序呼叫時,會傳回 true ,該實例具有相符的標頭及相等參數。- 置換:
equals在類別中java.lang.Object- 參數:
obj-- 退貨:
- true of the object equals this one
-