当前位置: 首页>>代码示例>>Java>>正文


Java PCFMessage.getStringParameterValue方法代码示例

本文整理汇总了Java中com.ibm.mq.pcf.PCFMessage.getStringParameterValue方法的典型用法代码示例。如果您正苦于以下问题:Java PCFMessage.getStringParameterValue方法的具体用法?Java PCFMessage.getStringParameterValue怎么用?Java PCFMessage.getStringParameterValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.ibm.mq.pcf.PCFMessage的用法示例。


在下文中一共展示了PCFMessage.getStringParameterValue方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: displayBridge_Started

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayBridge_Started(PCFMessage pcfMsg)
	throws PCFException {

	int bridgeType = pcfMsg.getIntParameterValue(CMQCFC.MQIACF_BRIDGE_TYPE);

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Bridge Started - MQRC_BRIDGE_STARTED (2125, X'84D')");
	xw.println("      EventType: IMS Bridge");
	xw.println("    Description: The IMS bridge has been started.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.print("     BridgeType: " + bridgeType + " (");
	
	switch (bridgeType) {
		case CMQCFC.MQBT_OTMA: 
			xw.println("MQBT_OTMA)");
			break;
		default:
			xw.println("Unknown!)");
	} // end switch
	
	xw.println("     BridgeName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACF_BRIDGE_NAME));
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQCFC.MQCACF_BRIDGE_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:25,代码来源:Xmqdspev.java

示例2: displayChannel_Stopped_By_User

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayChannel_Stopped_By_User(PCFMessage pcfMsg)
	throws PCFException {

	int reasonQualifier = pcfMsg.getIntParameterValue(CMQCFC.MQIACF_REASON_QUALIFIER);

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Channel Stopped By User - MQRC_CHANNEL_STOPPED_BY_USER (2279, X'8E7')");
	xw.println("      EventType: Channel");
	xw.println("    Description: This is issued when a user issues a STOP CHL command.");
	xw.println("                 ReasonQualifier identifies the reasons for stopping.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.print("ReasonQualifier: " + reasonQualifier + " (");
	
	switch (reasonQualifier) {
		case CMQCFC.MQRQ_CHANNEL_STOPPED_DISABLED: 
			xw.println("MQRQ_CHANNEL_STOPPED_DISABLED)");
			break;
		default:
			xw.println("Unknown!)");
	} // end switch
	
	xw.println("    ChannelName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME));
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:26,代码来源:Xmqdspev.java

示例3: displayQueue_Depth_High

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayQueue_Depth_High(PCFMessage pcfMsg)
	throws PCFException {

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Queue Depth High - MQRC_Q_DEPTH_HIGH (2224, X'8B0')");
	xw.println("      EventType: Performance");
	xw.println("    Description: An MQPUT or MQPUT1 call has caused the queue depth to");
	xw.println("                 be incremented to or above the limit specified in the");
	xw.println("                 QDepthHighLimit attribute.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.println("          QName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME));
	xw.println(" TimeSinceReset: " + pcfMsg.getIntParameterValue(CMQC.MQIA_TIME_SINCE_RESET));
	xw.println("     HighQDepth: " + pcfMsg.getIntParameterValue(CMQC.MQIA_HIGH_Q_DEPTH));	
	xw.println("    MsgEnqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_ENQ_COUNT));
	xw.println("    MsgDeqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_DEQ_COUNT));
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:19,代码来源:Xmqdspev.java

示例4: displayQueue_Depth_Low

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayQueue_Depth_Low(PCFMessage pcfMsg)
	throws PCFException {

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Queue Depth Low - MQRC_Q_DEPTH_LOW (2225, X'8B1')");
	xw.println("      EventType: Performance");
	xw.println("    Description: A get operation has caused the queue depth to be");
	xw.println("                 decremented to or below the limit specified in the");
	xw.println("                 QDepthLowLimit attribute.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.println("          QName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME));
	xw.println(" TimeSinceReset: " + pcfMsg.getIntParameterValue(CMQC.MQIA_TIME_SINCE_RESET));
	xw.println("     HighQDepth: " + pcfMsg.getIntParameterValue(CMQC.MQIA_HIGH_Q_DEPTH));	
	xw.println("    MsgEnqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_ENQ_COUNT));
	xw.println("    MsgDeqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_DEQ_COUNT));
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:19,代码来源:Xmqdspev.java

示例5: displayQueue_Full

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayQueue_Full(PCFMessage pcfMsg)
	throws PCFException {

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Queue Full - MQRC_Q_FULL (2053, X'805')");
	xw.println("      EventType: Performance");
	xw.println("    Description: On an MQPUT or MQPUT1 call, the call failed because");
	xw.println("                 the queue is full. That is, it already contains the");
	xw.println("                 maximum number of messages possible (see the MaxQDepth");
	xw.println("                 local-queue attribute).");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.println("          QName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME));
	xw.println(" TimeSinceReset: " + pcfMsg.getIntParameterValue(CMQC.MQIA_TIME_SINCE_RESET));
	xw.println("     HighQDepth: " + pcfMsg.getIntParameterValue(CMQC.MQIA_HIGH_Q_DEPTH));	
	xw.println("    MsgEnqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_ENQ_COUNT));
	xw.println("    MsgDeqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_DEQ_COUNT));
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:20,代码来源:Xmqdspev.java

示例6: displayQueue_Service_Interval_High

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayQueue_Service_Interval_High(PCFMessage pcfMsg)
	throws PCFException {

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Queue Service Interval High - MQRC_Q_SERVICE_INTERVAL_HIGH (2226, X'8B2')");
	xw.println("      EventType: Performance");
	xw.println("    Description: No successful get operations or MQPUT calls have been detected");
	xw.println("                 within an interval greater than the limit specified in the");
	xw.println("                 QServiceInterval attribute.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.println("          QName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME));
	xw.println(" TimeSinceReset: " + pcfMsg.getIntParameterValue(CMQC.MQIA_TIME_SINCE_RESET));
	xw.println("     HighQDepth: " + pcfMsg.getIntParameterValue(CMQC.MQIA_HIGH_Q_DEPTH));	
	xw.println("    MsgEnqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_ENQ_COUNT));
	xw.println("    MsgDeqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_DEQ_COUNT));
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:19,代码来源:Xmqdspev.java

示例7: displayQueue_Service_Interval_OK

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayQueue_Service_Interval_OK(PCFMessage pcfMsg)
	throws PCFException {

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Queue Service Interval OK - MQRC_Q_SERVICE_INTERVAL_OK (2227, X'8B3')");
	xw.println("      EventType: Performance");
	xw.println("    Description: A successful get operation has been detected within an");
	xw.println("                 interval less than or equal to the limit specified in the");
	xw.println("                 QServiceInterval attribute.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.println("          QName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME));
	xw.println(" TimeSinceReset: " + pcfMsg.getIntParameterValue(CMQC.MQIA_TIME_SINCE_RESET));
	xw.println("     HighQDepth: " + pcfMsg.getIntParameterValue(CMQC.MQIA_HIGH_Q_DEPTH));	
	xw.println("    MsgEnqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_ENQ_COUNT));
	xw.println("    MsgDeqCount: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MSG_DEQ_COUNT));
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQC.MQCA_BASE_Q_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:19,代码来源:Xmqdspev.java

示例8: displayBridge_Stopped

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayBridge_Stopped(PCFMessage pcfMsg)
	throws PCFException {

	int reasonQualifier = pcfMsg.getIntParameterValue(CMQCFC.MQIACF_REASON_QUALIFIER);
	int bridgeType = pcfMsg.getIntParameterValue(CMQCFC.MQIACF_BRIDGE_TYPE);

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Bridge Stopped - MQRC_BRIDGE_STOPPED (2126, X'84E')");
	xw.println("      EventType: IMS Bridge");
	xw.println("    Description: The IMS bridge has been stopped.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.print("ReasonQualifier: " + reasonQualifier + " (");
	
	switch (reasonQualifier) {
		case CMQCFC.MQRQ_BRIDGE_STOPPED_OK: 
			xw.println("MQRQ_BRIDGE_STOPPED_OK)");
			break;
		case CMQCFC.MQRQ_BRIDGE_STOPPED_ERROR: 
			xw.println("MQRQ_BRIDGE_STOPPED_ERROR)");
			break;
		default:
			xw.println("Unknown!)");
	} // end switch
	
	xw.print("     BridgeType: " + bridgeType + " (");
	
	switch (bridgeType) {
		case CMQCFC.MQBT_OTMA: 
			xw.println("MQBT_OTMA)");
			break;
		default:
			xw.println("Unknown!)");
	} // end switch
	
	xw.println("     BridgeName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACF_BRIDGE_NAME));
	
	if (reasonQualifier == CMQCFC.MQRQ_BRIDGE_STOPPED_ERROR) xw.println("ErrorIdentifier: " + pcfMsg.getIntParameterValue(CMQCFC.MQIACF_ERROR_IDENTIFIER));
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQCFC.MQCACF_BRIDGE_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:41,代码来源:Xmqdspev.java

示例9: displayChannel_Auto_Definition_Error

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayChannel_Auto_Definition_Error(PCFMessage pcfMsg)
	throws PCFException {

	int channelType = pcfMsg.getIntParameterValue(CMQCFC.MQIACH_CHANNEL_TYPE);

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Channel Auto-Definition Error - MQRC_CHANNEL_AUTO_DEF_ERROR (2234, X'8BA')");
	xw.println("      EventType: Channel");
	xw.println("    Description: This condition is detected when the automatic definition of a channel");
	xw.println("                 fails; this may be because an error occurred during the definition");
	xw.println("                 process, or because the channel automatic-definition exit inhibited");
	xw.println("                 the definition. Additional information indicating the reason for the");
	xw.println("                 failure is returned in the event message.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.println("    ChannelName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME));
	xw.print("    ChannelType: " + channelType + " (");
	
	switch (channelType) {
		case CMQXC.MQCHT_RECEIVER: 
			xw.println("MQCHT_RECEIVER)");
			break;
		case CMQXC.MQCHT_SVRCONN: 
			xw.println("MQCHT_SVRCONN)");
			break;
		case CMQXC.MQCHT_CLUSSDR: 
			xw.println("MQCHT_CLUSSDR)");
			break;
		default:
			xw.println("Unknown!)");
	} // end switch

	xw.println("ErrorIdentifier: " + pcfMsg.getIntParameterValue(CMQCFC.MQIACF_ERROR_IDENTIFIER));
	xw.println(" ConnectionName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CONNECTION_NAME));
	
	try {
		xw.println(" AuxErrDataInt1: " + pcfMsg.getIntParameterValue(CMQCFC.MQIACF_AUX_ERROR_DATA_INT_1));
	} catch (MQException mqe) {;}
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:41,代码来源:Xmqdspev.java

示例10: displayChannel_Auto_Definition_OK

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayChannel_Auto_Definition_OK(PCFMessage pcfMsg)
	throws PCFException {

	int channelType = pcfMsg.getIntParameterValue(CMQCFC.MQIACH_CHANNEL_TYPE);

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Channel Auto-Definition OK - MQRC_CHANNEL_AUTO_DEF_OK (2233, X'8B9')");
	xw.println("      EventType: Channel");
	xw.println("    Description: This condition is detected when the automatic definition of");
	xw.println("                 a channel is successful. The channel is defined by the MCA.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.println("    ChannelName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME));
	xw.print("    ChannelType: " + channelType + " (");
	
	switch (channelType) {
		case CMQXC.MQCHT_RECEIVER: 
			xw.println("MQCHT_RECEIVER)");
			break;
		case CMQXC.MQCHT_SVRCONN: 
			xw.println("MQCHT_SVRCONN)");
			break;
		case CMQXC.MQCHT_CLUSSDR: 
			xw.println("MQCHT_CLUSSDR)");
			break;
		default:
			xw.println("Unknown!)");
	} // end switch

	xw.println(" ConnectionName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CONNECTION_NAME));	
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:33,代码来源:Xmqdspev.java

示例11: displayChannel_Conversion_Error

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayChannel_Conversion_Error(PCFMessage pcfMsg)
	throws PCFException {

	int convReasonCode = pcfMsg.getIntParameterValue(CMQCFC.MQIACF_CONV_REASON_CODE);

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Channel Conversion Error - MQRC_CHANNEL_CONV_ERROR (2284, X'8EC')");
	xw.println("      EventType: Channel");
	xw.println("    Description: This condition is detected when a channel is unable to carry");
	xw.println("                 out data conversion and the MQGET call to get a message from");
	xw.println("                 the transmission queue resulted in a data conversion error.");
	xw.println("                 The reason for the failure is identified by ConversionReasonCode.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.print(" ConvReasonCode: " + convReasonCode + " (");
	
	switch (convReasonCode) {
		case CMQC.MQRC_CONVERTED_MSG_TOO_BIG: 
			xw.println("MQRC_CONVERTED_MSG_TOO_BIG)");
			break;
		case CMQC.MQRC_FORMAT_ERROR: 
			xw.println("MQRC_FORMAT_ERROR)");
			break;
		case CMQC.MQRC_NOT_CONVERTED: 
			xw.println("MQRC_NOT_CONVERTED)");
			break;
		case CMQC.MQRC_SOURCE_CCSID_ERROR: 
			xw.println("MQRC_SOURCE_CCSID_ERROR)");
			break;
		case CMQC.MQRC_SOURCE_DECIMAL_ENC_ERROR: 
			xw.println("MQRC_SOURCE_DECIMAL_ENC_ERROR)");
			break;
		case CMQC.MQRC_SOURCE_FLOAT_ENC_ERROR: 
			xw.println("MQRC_SOURCE_FLOAT_ENC_ERROR)");
			break;
		case CMQC.MQRC_SOURCE_INTEGER_ENC_ERROR: 
			xw.println("MQRC_SOURCE_INTEGER_ENC_ERROR)");
			break;
		case CMQC.MQRC_TARGET_CCSID_ERROR: 
			xw.println("MQRC_TARGET_CCSID_ERROR)");
			break;
		case CMQC.MQRC_TARGET_DECIMAL_ENC_ERROR: 
			xw.println("MQRC_TARGET_DECIMAL_ENC_ERROR)");
			break;
		case CMQC.MQRC_TARGET_FLOAT_ENC_ERROR: 
			xw.println("MQRC_TARGET_FLOAT_ENC_ERROR)");
			break;
		case CMQC.MQRC_TARGET_INTEGER_ENC_ERROR: 
			xw.println("MQRC_TARGET_INTEGER_ENC_ERROR)");
			break;
		case CMQC.MQRC_TRUNCATED_MSG_ACCEPTED: 
			xw.println("MQRC_TRUNCATED_MSG_ACCEPTED)");
			break;
		case CMQC.MQRC_TRUNCATED_MSG_FAILED: 
			xw.println("MQRC_TRUNCATED_MSG_FAILED)");
			break;
		default:
			xw.println("Unknown!)");
	} // end switch
	
	xw.println("    ChannelName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME));
	xw.println("         Format: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_FORMAT_NAME));
	xw.println("      XmitQName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_XMIT_Q_NAME));
	xw.println(" ConnectionName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CONNECTION_NAME));
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:67,代码来源:Xmqdspev.java

示例12: displayChannel_Not_Available

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayChannel_Not_Available(PCFMessage pcfMsg)
throws PCFException {

int reasonQualifier = pcfMsg.getIntParameterValue(CMQCFC.MQIACF_REASON_QUALIFIER);
	
xw.println("     ReasonCode: " + pcfMsg.getReason());
xw.println("      EventName: Channel Not Available - MQRC_CHANNEL_NOT_AVAILABLE (2537, X'9E9')");
xw.println("      EventType: Channel");
xw.println("    Description: This is issued when an attempt to start an inbound channel");
xw.println("                 is rejected");
xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	
xw.print("ReasonQualifier: " + reasonQualifier + " (");
	
	switch (reasonQualifier) {
		case CMQCFC.MQRQ_MAX_ACTIVE_CHANNELS: 
			xw.println("MQRQ_MAX_ACTIVE_CHANNELS)");
			break;
		case CMQCFC.MQRQ_MAX_CHANNELS : 
			xw.println("MQRQ_MAX_CHANNELS )");
			break;
		case CMQCFC.MQRQ_SVRCONN_INST_LIMIT : 
			xw.println("MQRQ_SVRCONN_INST_LIMIT)");
			break;
		case CMQCFC.MQRQ_CLIENT_INST_LIMIT: 
			xw.println("MQRQ_CLIENT_INST_LIMIT)");
			break;
		case CMQCFC.MQRQ_CAF_NOT_INSTALLED: 
			xw.println("MQRQ_CAF_NOT_INSTALLED)");
			break;
		default:
			xw.println("Unknown!)");
	} // end switch
	
	xw.println("    ChannelName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME));
	
	try {
		xw.println(" ConnectionName: " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CONNECTION_NAME));
	} catch (MQException mqe) {;}
	
	if (reasonQualifier == CMQCFC.MQRQ_MAX_ACTIVE_CHANNELS) xw.println(" MaxActChannels: " + pcfMsg.getIntParameterValue(CMQC.MQIA_ACTIVE_CHANNELS));
	if (reasonQualifier == CMQCFC.MQRQ_MAX_CHANNELS) xw.println("    MaxChannels: " + pcfMsg.getIntParameterValue(CMQC.MQIA_MAX_CHANNELS));
	if (reasonQualifier == CMQCFC.MQRQ_SVRCONN_INST_LIMIT) xw.println("   MaxInstances: " + pcfMsg.getIntParameterValue(CMQCFC.MQIACH_MAX_INSTANCES));
	if (reasonQualifier == CMQCFC.MQRQ_CLIENT_INST_LIMIT) xw.println("MaxCltInstances: " + pcfMsg.getIntParameterValue(CMQCFC.MQIACH_MAX_INSTS_PER_CLIENT));

	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason()) + " ==> " + pcfMsg.getStringParameterValue(CMQCFC.MQCACH_CHANNEL_NAME);
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:48,代码来源:Xmqdspev.java


注:本文中的com.ibm.mq.pcf.PCFMessage.getStringParameterValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。