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


Java PCFMessage.getIntParameterValue方法代码示例

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


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

import com.ibm.mq.pcf.PCFMessage; //导入方法依赖的package包/类
private String displayQueue_Manager_Not_Active(PCFMessage pcfMsg)
	throws PCFException {
	
	int reasonQualifier = pcfMsg.getIntParameterValue(CMQCFC.MQIACF_REASON_QUALIFIER);

	xw.println("     ReasonCode: " + pcfMsg.getReason());
	xw.println("      EventName: Queue Manager Not Active - MQRC_Q_MGR_NOT_ACTIVE (2223, X'8AF')");
	xw.println("      EventType: Start and Stop");
	xw.println("    Description: This condition is detected when a queue manager is requested");
	xw.println("                 to stop or quiesce.");
	xw.println("       QMgrName: " + pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME));
	xw.print("ReasonQualifier: " + reasonQualifier + " (");
	
	switch (reasonQualifier) {
		case CMQCFC.MQRQ_Q_MGR_STOPPING: 
			xw.println("MQRQ_Q_MGR_STOPPING)");
			break;
		case CMQCFC.MQRQ_Q_MGR_QUIESCING:
			xw.println("MQRQ_Q_MGR_QUIESCING)");
			break;
		default:
			xw.println("Unknown!)");
	} // end switch
	
	return rtrim(pcfMsg.getStringParameterValue(CMQC.MQCA_Q_MGR_NAME)) + " - " + pcfMsg.getReason() + " - " + pcfReasonToString(pcfMsg.getReason());
}
 
开发者ID:ibm-messaging,项目名称:mq-event-display,代码行数:27,代码来源:Xmqdspev.java

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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.getIntParameterValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。