org.apache.storm.generated.Bolt.toString()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(76)

本文整理了Java中org.apache.storm.generated.Bolt.toString()方法的一些代码示例,展示了Bolt.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bolt.toString()方法的具体详情如下:
包路径:org.apache.storm.generated.Bolt
类名称:Bolt
方法名:toString

Bolt.toString介绍

暂无

代码示例

代码示例来源:origin: apache/storm

static Map<String, Map<String, Double>> getBoltsResources(StormTopology topology, Map<String, Object> topologyConf) {
  Map<String, Map<String, Double>> boltResources = new HashMap<>();
  if (topology.get_bolts() != null) {
    for (Map.Entry<String, Bolt> bolt : topology.get_bolts().entrySet()) {
      Map<String, Double> topologyResources = parseResources(bolt.getValue().get_common().get_json_conf());
      checkInitialization(topologyResources, bolt.getValue().toString(), topologyConf);
      boltResources.put(bolt.getKey(), topologyResources);
    }
  }
  return boltResources;
}

代码示例来源:origin: apache/storm

public void validate() throws org.apache.storm.thrift.TException {
 // check for required fields
 if (!is_set_bolt_object()) {
  throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'bolt_object' is unset! Struct:" + toString());
 }
 if (!is_set_common()) {
  throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'common' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
 if (common != null) {
  common.validate();
 }
}

代码示例来源:origin: org.apache.storm/storm-core

public static Map<String, Map<String, Double>> getBoltsResources(StormTopology topology, Map topologyConf) {
  Map<String, Map<String, Double>> boltResources = new HashMap<String, Map<String, Double>>();
  if (topology.get_bolts() != null) {
    for (Map.Entry<String, Bolt> bolt : topology.get_bolts().entrySet()) {
      Map<String, Double> topology_resources = parseResources(bolt.getValue().get_common().get_json_conf());
      checkIntialization(topology_resources, bolt.getValue().toString(), topologyConf);
      boltResources.put(bolt.getKey(), topology_resources);
    }
  }
  return boltResources;
}

代码示例来源:origin: org.apache.storm/storm-core

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_bolt_object()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'bolt_object' is unset! Struct:" + toString());
 }
 if (!is_set_common()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'common' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
 if (common != null) {
  common.validate();
 }
}

代码示例来源:origin: org.apache.storm/storm-core

ResourceUtils.checkIntialization(topology_resources, bolt.getValue().toString(), this.topologyConf);
for (Map.Entry<ExecutorDetails, String> anExecutorToComponent : this.executorToComponent.entrySet()) {
  if (bolt.getKey().equals(anExecutorToComponent.getValue())) {

相关文章