• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java OutputTerminal类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中com.ibm.broker.config.appdev.OutputTerminal的典型用法代码示例。如果您正苦于以下问题:Java OutputTerminal类的具体用法?Java OutputTerminal怎么用?Java OutputTerminal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

OutputTerminal类属于com.ibm.broker.config.appdev包,在下文中一共展示了OutputTerminal类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createRouteNode

点赞 3

import com.ibm.broker.config.appdev.OutputTerminal; //导入依赖的package包/类
/**
 * Creates the Route subflow node
 * 
 * @param input
 * @return
 */
private Node createRouteNode(OutputTerminal input) {
	MessageFlow mainFlow = this.getMainFlow();
	MessageFlow routeFlow = this.getRouteFlow();

	// Create Route Node
	SubFlowNode routeSubflowNode = new SubFlowNode();
	routeSubflowNode.setNodeName(ROUTE_NODE);
	routeSubflowNode.setSubFlow(routeFlow);

	// Position
	Point recordProcessorNodePoint = mainFlow.getNodeByName(
			RECORD_PROCESSOR_NODE).getLocation();
	Point point = new Point(recordProcessorNodePoint.x + 150,
			recordProcessorNodePoint.y);
	routeSubflowNode.setLocation(point);

	mainFlow.addNode(routeSubflowNode);

	// Connect Node
	mainFlow.connect(input,
			routeSubflowNode.getInputTerminal(ROUTE_FLOW_INPUT_NODE));

	return routeSubflowNode;
}
 

开发者ID:ot4i,
项目名称:file-http-pattern,
代码行数:31,
代码来源:PatternGenerator.java

示例2: getOutputTerminals

点赞 2

import com.ibm.broker.config.appdev.OutputTerminal; //导入依赖的package包/类
@Override
public OutputTerminal[] getOutputTerminals() {
	return new OutputTerminal[] {
		OUTPUT_TERMINAL_CATCH,
		OUTPUT_TERMINAL_OUT,
		OUTPUT_TERMINAL_FAILURE
	};
}
 

开发者ID:ot4i,
项目名称:amazon-sqs-connector,
代码行数:9,
代码来源:AmazonSQSInputNodeUDN.java

示例3: getOutputTerminals

点赞 2

import com.ibm.broker.config.appdev.OutputTerminal; //导入依赖的package包/类
@Override
public OutputTerminal[] getOutputTerminals() {
	return new OutputTerminal[] {
		OUTPUT_TERMINAL_FAILURE,
		OUTPUT_TERMINAL_OUT
	};
}
 

开发者ID:ot4i,
项目名称:mqtt-client-connector,
代码行数:8,
代码来源:MQTTPublishNodeUDN.java

示例4: getOutputTerminals

点赞 2

import com.ibm.broker.config.appdev.OutputTerminal; //导入依赖的package包/类
@Override
public OutputTerminal[] getOutputTerminals() {
	return new OutputTerminal[] {
		OUTPUT_TERMINAL_FAILURE,
		OUTPUT_TERMINAL_CATCH,
		OUTPUT_TERMINAL_OUT
	};
}
 

开发者ID:ot4i,
项目名称:mqtt-client-connector,
代码行数:9,
代码来源:MQTTSubscribeNodeUDN.java

示例5: getOutputTerminals

点赞 2

import com.ibm.broker.config.appdev.OutputTerminal; //导入依赖的package包/类
@Override
public OutputTerminal[] getOutputTerminals() {
	return new OutputTerminal[] {
		OUTPUT_TERMINAL_OUT
	};
}
 

开发者ID:ot4i,
项目名称:splunk-log-connector,
代码行数:7,
代码来源:SplunkLogOutputNodeUDN.java

示例6: getOutputTerminals

点赞 2

import com.ibm.broker.config.appdev.OutputTerminal; //导入依赖的package包/类
@Override
public OutputTerminal[] getOutputTerminals() {
	return null;
}
 

开发者ID:ot4i,
项目名称:amazon-sqs-connector,
代码行数:5,
代码来源:AmazonSQSOutputNodeUDN.java

示例7: connectHttpRequest

点赞 1

import com.ibm.broker.config.appdev.OutputTerminal; //导入依赖的package包/类
/**
 * 
 * Creates and connects a HTTP request node
 * 
 * @param outputTerminal
 * @param uri
 * @param nodeName
 * @param index
 */
private void connectHttpRequest(OutputTerminal outputTerminal, String uri,
		String nodeName, int index) {

	MessageFlow mainFlow = this.getMainFlow();

	// Create HTTPRequest Node
	HTTPRequestNode httpRequestNode = new HTTPRequestNode();
	httpRequestNode.setURLSpecifier(uri);
	
	//SJP : 13 July 2015: Fix implementation: Msg domain should be BLOB not JSON
	// httpRequestNode.setMessageDomainProperty(MESSAGE_DOMAIN);
	httpRequestNode.setMessageDomainProperty("BLOB");
	
	httpRequestNode.setNodeName(nodeName);
	


	// Position
	Node routeNode = mainFlow.getNodeByName(ROUTE_NODE);
	Point routeNodePoint = routeNode.getLocation();

	Point point = new Point(routeNodePoint.x + 200, routeNodePoint.y
			+ (150 * index));
	httpRequestNode.setLocation(point);

	mainFlow.addNode(httpRequestNode);

	mainFlow.connect(outputTerminal, httpRequestNode.INPUT_TERMINAL_IN);
}
 

开发者ID:ot4i,
项目名称:file-http-pattern,
代码行数:39,
代码来源:PatternGenerator.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)