Package backtype.storm.generated

Examples of backtype.storm.generated.ComponentObject


      String component_id) {
    Map<String, SpoutSpec> spouts = topology.get_spouts();
    Map<String, Bolt> bolts = topology.get_bolts();
    Map<String, StateSpoutSpec> state_spouts = topology.get_state_spouts();

    ComponentObject obj = null;
    if (spouts.containsKey(component_id)) {
      obj = spouts.get(component_id).get_spout_object();
    }else if (bolts.containsKey(component_id)) {
      obj = bolts.get(component_id).get_bolt_object();
    }else if (state_spouts.containsKey(component_id)) {
View Full Code Here


  public static Bolt mkAckerBolt(Map<GlobalStreamId, Grouping> inputs,
      IBolt bolt, HashMap<String, StreamInfo> output, Integer p) {
    ComponentCommon common = mkAckerComponentcommon(inputs, output, p);
    byte[] boltSer = Utils.serialize(bolt);
    ComponentObject component = ComponentObject.serialized_java(boltSer);
    return new Bolt(component, common);
  }
View Full Code Here

  public static Bolt mkAckerBolt(Map<GlobalStreamId, Grouping> inputs,
      IBolt bolt, HashMap<String, StreamInfo> output, Integer p) {
    ComponentCommon common = mkAckerComponentcommon(inputs, output, p);
    byte[] boltSer = Utils.serialize(bolt);
    ComponentObject component = ComponentObject.serialized_java(boltSer);
    return new Bolt(component, common);
  }
View Full Code Here

      String component_id, URLClassLoader loader) {
    Map<String, SpoutSpec> spouts = topology.get_spouts();
    Map<String, Bolt> bolts = topology.get_bolts();
    Map<String, StateSpoutSpec> state_spouts = topology.get_state_spouts();

    ComponentObject obj = null;
    if (spouts.containsKey(component_id)) {
      obj = spouts.get(component_id).get_spout_object();
    } else if (bolts.containsKey(component_id)) {
      obj = bolts.get(component_id).get_bolt_object();
    } else if (state_spouts.containsKey(component_id)) {
View Full Code Here

TOP

Related Classes of backtype.storm.generated.ComponentObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.