private static void add_component_system_streams(Object obj) { ComponentCommon common = null; if (obj instanceof StateSpoutSpec) { StateSpoutSpec spec = (StateSpoutSpec) obj; common = spec.get_common(); } if (obj instanceof SpoutSpec) { SpoutSpec spec = (SpoutSpec) obj; common = spec.get_common(); } if (obj instanceof Bolt) { Bolt spec = (Bolt) obj; common = spec.get_common(); } if (common != null) { StreamInfo sinfo = Thrift.outputFields(sysEventFields); common.put_to_streams(SYSTEM_STREAM_ID, sinfo); } }
common.put_to_streams(ACKER_ACK_STREAM_ID, Thrift.outputFields(ackList)); common.put_to_streams(ACKER_FAIL_STREAM_ID, Thrift.outputFields(failList)); ComponentCommon common = bolt.get_common(); List<String> initList = JStormUtils.mk_list("id", "init-val", "spout-task"); common.put_to_streams(ACKER_INIT_STREAM_ID, Thrift.outputFields(initList));
static void add_component_system_streams(Object obj) { ComponentCommon common=null; if (obj instanceof StateSpoutSpec) { StateSpoutSpec spec = (StateSpoutSpec) obj; common=spec.get_common(); } if (obj instanceof SpoutSpec) { SpoutSpec spec = (SpoutSpec) obj; common=spec.get_common(); } if (obj instanceof Bolt) { Bolt spec = (Bolt) obj; common=spec.get_common(); } if(common!=null) { StreamInfo sinfo=Thrift.outputFields(sysEventFields); common.put_to_streams(SYSTEM_STREAM_ID,sinfo); } }
ComponentCommon common = bolt.get_common(); List<String> fields = JStormUtils.mk_list(TopologyMaster.FIELD_METRIC_WORKER, TopologyMaster.FIELD_METRIC_METRICS); common.put_to_streams(TOPOLOGY_MASTER_METRICS_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_HEARBEAT_EVENT); common.put_to_streams(TOPOLOGY_MASTER_HB_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_CTRL_EVENT); common.put_to_streams(TOPOLOGY_MASTER_CONTROL_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FIELD_REGISTER_METRICS); common.put_to_streams(TOPOLOGY_MASTER_REGISTER_METRICS_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FIELD_REGISTER_METRICS_RESP); common.put_to_streams(TOPOLOGY_MASTER_REGISTER_METRICS_RESP_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_UDF_STREAM_EVENT); common.put_to_streams(TopologyMaster.USER_DEFINED_STREAM, Thrift.directOutputFields(fields)); ComponentCommon common = spout.get_common(); List<String> fields = JStormUtils.mk_list(TopologyMaster.FIELD_METRIC_WORKER, TopologyMaster.FIELD_METRIC_METRICS); common.put_to_streams(TOPOLOGY_MASTER_METRICS_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_HEARBEAT_EVENT); common.put_to_streams(TOPOLOGY_MASTER_HB_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_CTRL_EVENT); common.put_to_streams(TOPOLOGY_MASTER_CONTROL_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FIELD_REGISTER_METRICS); common.put_to_streams(TOPOLOGY_MASTER_REGISTER_METRICS_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FIELD_REGISTER_METRICS_RESP); common.put_to_streams(TOPOLOGY_MASTER_REGISTER_METRICS_RESP_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_UDF_STREAM_EVENT); common.put_to_streams(TopologyMaster.USER_DEFINED_STREAM, Thrift.directOutputFields(fields));
ComponentCommon common = bolt.get_common(); List<String> ackList = StormUtils.mk_list("id", "ack-val"); common.put_to_streams(ACKER_ACK_STREAM_ID,Thrift.outputFields(ackList)); common.put_to_streams(ACKER_FAIL_STREAM_ID,Thrift.outputFields(failList)); bolt.set_common(common); ComponentCommon common = bolt.get_common(); List<String> initList = StormUtils.mk_list("id", "init-val", "spout-task"); common.put_to_streams(ACKER_INIT_STREAM_ID,Thrift.outputFields(initList));
private static void add_component_system_streams(Object obj) { ComponentCommon common = null; if (obj instanceof StateSpoutSpec) { StateSpoutSpec spec = (StateSpoutSpec) obj; common = spec.get_common(); } if (obj instanceof SpoutSpec) { SpoutSpec spec = (SpoutSpec) obj; common = spec.get_common(); } if (obj instanceof Bolt) { Bolt spec = (Bolt) obj; common = spec.get_common(); } if (common != null) { StreamInfo sinfo = Thrift.outputFields(sysEventFields); common.put_to_streams(SYSTEM_STREAM_ID, sinfo); } }
common.put_to_streams(ACKER_ACK_STREAM_ID, Thrift.outputFields(ackList)); common.put_to_streams(ACKER_FAIL_STREAM_ID, Thrift.outputFields(failList)); ComponentCommon common = bolt.get_common(); List<String> initList = JStormUtils.mk_list("id", "init-val", "spout-task"); common.put_to_streams(ACKER_INIT_STREAM_ID, Thrift.outputFields(initList));
ComponentCommon common = bolt.get_common(); List<String> fields = JStormUtils.mk_list(TopologyMaster.FIELD_METRIC_WORKER, TopologyMaster.FIELD_METRIC_METRICS); common.put_to_streams(TOPOLOGY_MASTER_METRICS_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_HEARBEAT_EVENT); common.put_to_streams(TOPOLOGY_MASTER_HB_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_CTRL_EVENT); common.put_to_streams(TOPOLOGY_MASTER_CONTROL_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FIELD_REGISTER_METRICS); common.put_to_streams(TOPOLOGY_MASTER_REGISTER_METRICS_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FIELD_REGISTER_METRICS_RESP); common.put_to_streams(TOPOLOGY_MASTER_REGISTER_METRICS_RESP_STREAM_ID, Thrift.directOutputFields(fields)); ComponentCommon common = spout.get_common(); List<String> fields = JStormUtils.mk_list(TopologyMaster.FIELD_METRIC_WORKER, TopologyMaster.FIELD_METRIC_METRICS); common.put_to_streams(TOPOLOGY_MASTER_METRICS_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_HEARBEAT_EVENT); common.put_to_streams(TOPOLOGY_MASTER_HB_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FILED_CTRL_EVENT); common.put_to_streams(TOPOLOGY_MASTER_CONTROL_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FIELD_REGISTER_METRICS); common.put_to_streams(TOPOLOGY_MASTER_REGISTER_METRICS_STREAM_ID, Thrift.directOutputFields(fields)); fields = JStormUtils.mk_list(TopologyMaster.FIELD_REGISTER_METRICS_RESP); common.put_to_streams(TOPOLOGY_MASTER_REGISTER_METRICS_RESP_STREAM_ID, Thrift.directOutputFields(fields));