當前位置: 首頁>>代碼示例>>Java>>正文


Java OutputFieldsDeclarer.declareStream方法代碼示例

本文整理匯總了Java中org.apache.storm.topology.OutputFieldsDeclarer.declareStream方法的典型用法代碼示例。如果您正苦於以下問題:Java OutputFieldsDeclarer.declareStream方法的具體用法?Java OutputFieldsDeclarer.declareStream怎麽用?Java OutputFieldsDeclarer.declareStream使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.storm.topology.OutputFieldsDeclarer的用法示例。


在下文中一共展示了OutputFieldsDeclarer.declareStream方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
    public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
//        outputFieldsDeclarer.declareStream(SimulatorTopology.SIMULATOR_COMMAND_STREAM,
//                new Fields("dpid", "data"));
        outputFieldsDeclarer.declareStream(SimulatorTopology.SIMULATOR_COMMAND_STREAM,
                new Fields("dpid", "data", "command"));
    }
 
開發者ID:telstra,項目名稱:open-kilda,代碼行數:8,代碼來源:SimulatorCommandBolt.java

示例2: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 */
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
    outputFieldsDeclarer.declareStream(StreamType.CREATE.toString(), FlowTopology.fieldsMessageSwitchIdFlowIdTransactionId);
    outputFieldsDeclarer.declareStream(StreamType.DELETE.toString(), FlowTopology.fieldsMessageSwitchIdFlowIdTransactionId);
    outputFieldsDeclarer.declareStream(StreamType.RESPONSE.toString(), FlowTopology.fieldMessage);
    outputFieldsDeclarer.declareStream(StreamType.STATUS.toString(), FlowTopology.fieldsMessageFlowId);
}
 
開發者ID:telstra,項目名稱:open-kilda,代碼行數:11,代碼來源:TopologyEngineBolt.java

示例3: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 */
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
    outputFieldsDeclarer.declareStream(StreamType.CREATE.toString(), FlowTopology.fieldsMessageFlowId);
    outputFieldsDeclarer.declareStream(StreamType.READ.toString(), FlowTopology.fieldsMessageFlowId);
    outputFieldsDeclarer.declareStream(StreamType.UPDATE.toString(), FlowTopology.fieldsMessageFlowId);
    outputFieldsDeclarer.declareStream(StreamType.DELETE.toString(), FlowTopology.fieldsMessageFlowId);
    outputFieldsDeclarer.declareStream(StreamType.PATH.toString(), FlowTopology.fieldsMessageFlowId);
    outputFieldsDeclarer.declareStream(StreamType.STATUS.toString(), FlowTopology.fieldsMessageFlowId);
    outputFieldsDeclarer.declareStream(StreamType.RESTORE.toString(), FlowTopology.fieldsMessageFlowId);
    outputFieldsDeclarer.declareStream(StreamType.REROUTE.toString(), FlowTopology.fieldsMessageFlowId);
    outputFieldsDeclarer.declareStream(StreamType.ERROR.toString(), FlowTopology.fieldsMessageErrorType);
}
 
開發者ID:telstra,項目名稱:open-kilda,代碼行數:16,代碼來源:SplitterBolt.java

示例4: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 */
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
    outputFieldsDeclarer.declareStream(StreamType.CREATE.toString(), FlowTopology.fieldsMessageSwitchIdFlowIdTransactionId);
    outputFieldsDeclarer.declareStream(StreamType.DELETE.toString(), FlowTopology.fieldsMessageSwitchIdFlowIdTransactionId);
    outputFieldsDeclarer.declareStream(StreamType.STATUS.toString(), FlowTopology.fieldsFlowIdStatus);
}
 
開發者ID:telstra,項目名稱:open-kilda,代碼行數:10,代碼來源:SpeakerBolt.java

示例5: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    RecordTranslator<K, V> translator = kafkaSpoutConfig.getTranslator();
    for (String stream : translator.streams()) {
        declarer.declareStream(stream, translator.getFieldsFor(stream));
    }
}
 
開發者ID:Paleozoic,項目名稱:storm_spring_boot_demo,代碼行數:8,代碼來源:KafkaSpout.java

示例6: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 */
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
    outputFieldsDeclarer.declareStream(PORT_STATS_STREAM, fieldMessage);
    outputFieldsDeclarer.declareStream(METER_CFG_STATS_STREAM, fieldMessage);
    outputFieldsDeclarer.declareStream(FLOW_STATS_STREAM, fieldMessage);
}
 
開發者ID:telstra,項目名稱:open-kilda,代碼行數:10,代碼來源:SpeakerBolt.java

示例7: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    Map<String, Fields> streamsOutputFields = rabbitMqMessageScheme.getStreamsOutputFields();
    for (Entry<String, Fields> entry : streamsOutputFields.entrySet()) {
        declarer.declareStream(entry.getKey(), entry.getValue());
    }
}
 
開發者ID:anderelate,項目名稱:storm-rabbitmq,代碼行數:8,代碼來源:RabbitMqSpout.java

示例8: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declareStream(islDiscoveryTopic, new Fields("key", "message"));
    declarer.declareStream(topoEngTopic, new Fields("key", "message"));
    // FIXME(dbogun): use proper tuple format
    declarer.declareStream(STREAM_ID_CTRL, AbstractTopology.fieldMessage);
}
 
開發者ID:telstra,項目名稱:open-kilda,代碼行數:8,代碼來源:OFELinkBolt.java

示例9: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	// Declare Stream with streamId as parsedstream with fields parsedstream
	declarer.declareStream("parsedstream", new Fields("parsedstream"));
}
 
開發者ID:PacktPublishing,項目名稱:Practical-Real-time-Processing-and-Analytics,代碼行數:6,代碼來源:ParseBolt.java

示例10: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	declarer.declareStream("alertInfo", new Fields("alertInfo"));
}
 
開發者ID:PacktPublishing,項目名稱:Practical-Real-time-Processing-and-Analytics,代碼行數:5,代碼來源:CheckDistanceAndAlertBolt.java

示例11: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	declarer.declareStream("usagestream", new Fields("usagestream"));
	declarer.declareStream("tdrstream", new Fields("tdrstream"));
}
 
開發者ID:PacktPublishing,項目名稱:Practical-Real-time-Processing-and-Analytics,代碼行數:6,代碼來源:ParseAndUsageBolt.java

示例12: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("url", "content", "metadata", "text"));
    declarer.declareStream("tika", new Fields("url", "content", "metadata",
            "text"));
}
 
開發者ID:eorliac,項目名稱:patent-crawler,代碼行數:7,代碼來源:RedirectionBolt.java

示例13: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("url", "content", "metadata", "text"));
    declarer.declareStream(StatusStreamName, new Fields("url", "metadata",
            "status"));
}
 
開發者ID:eorliac,項目名稱:patent-crawler,代碼行數:7,代碼來源:ParserBolt.java

示例14: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declareStream(Constraints.coinFileds, new Fields(Constraints.wordFileds));
    declarer.declareStream(Constraints.hotFileds, new Fields(Constraints.wordFileds));
    declarer.declareStream(Constraints.nohotFileds, new Fields(Constraints.wordFileds));
}
 
開發者ID:DStream-Storm,項目名稱:DStream,代碼行數:6,代碼來源:SplitterBolt.java

示例15: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("url", "metadata"));
    declarer.declareStream(StatusStreamName, new Fields("url", "metadata", "status"));
}
 
開發者ID:tokenmill,項目名稱:crawling-framework,代碼行數:6,代碼來源:ArticleIndexerBolt.java


注:本文中的org.apache.storm.topology.OutputFieldsDeclarer.declareStream方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。