public static ComponentCommon getComponentCommon(Object component) { ComponentCommon common = null; if (component instanceof StateSpoutSpec) { common = ((StateSpoutSpec) component).get_common(); } else if (component instanceof SpoutSpec) { common = ((SpoutSpec) component).get_common(); } else if (component instanceof Bolt) { common = ((Bolt) component).get_common(); } return common; }
/** * Performs a deep copy on <i>other</i>. */ public fetchRequest_result(fetchRequest_result other) { if (other.is_set_success()) { this.success = new DRPCRequest(other.success); } if (other.is_set_aze()) { this.aze = new AuthorizationException(other.aze); } }
/** * Performs a deep copy on <i>other</i>. */ public SpoutSpec(SpoutSpec other) { if (other.is_set_spout_object()) { this.spout_object = new ComponentObject(other.spout_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, Bolt struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.bolt_object = new ComponentObject(); struct.bolt_object.read(iprot); struct.set_bolt_object_isSet(true); struct.common = new ComponentCommon(); struct.common.read(iprot); struct.set_common_isSet(true); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, StateSpoutSpec struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.state_spout_object = new ComponentObject(); struct.state_spout_object.read(iprot); struct.set_state_spout_object_isSet(true); struct.common = new ComponentCommon(); struct.common.read(iprot); struct.set_common_isSet(true); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, SpoutSpec struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.spout_object = new ComponentObject(); struct.spout_object.read(iprot); struct.set_spout_object_isSet(true); struct.common = new ComponentCommon(); struct.common.read(iprot); struct.set_common_isSet(true); } }
/** * Performs a deep copy on <i>other</i>. */ public ExecutorAggregateStats(ExecutorAggregateStats other) { if (other.is_set_exec_summary()) { this.exec_summary = new ExecutorSummary(other.exec_summary); } if (other.is_set_stats()) { this.stats = new ComponentAggregateStats(other.stats); } }
/** * Performs a deep copy on <i>other</i>. */ public Bolt(Bolt other) { if (other.is_set_bolt_object()) { this.bolt_object = new ComponentObject(other.bolt_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
/** * Performs a deep copy on <i>other</i>. */ public StateSpoutSpec(StateSpoutSpec other) { if (other.is_set_state_spout_object()) { this.state_spout_object = new ComponentObject(other.state_spout_object); } if (other.is_set_common()) { this.common = new ComponentCommon(other.common); } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_initial_status()) ? 131071 : 524287); if (is_set_initial_status()) hashCode = hashCode * 8191 + initial_status.getValue(); hashCode = hashCode * 8191 + ((is_set_creds()) ? 131071 : 524287); if (is_set_creds()) hashCode = hashCode * 8191 + creds.hashCode(); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_bolt_object()) ? 131071 : 524287); if (is_set_bolt_object()) hashCode = hashCode * 8191 + bolt_object.hashCode(); hashCode = hashCode * 8191 + ((is_set_common()) ? 131071 : 524287); if (is_set_common()) hashCode = hashCode * 8191 + common.hashCode(); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_success()) ? 131071 : 524287); if (is_set_success()) hashCode = hashCode * 8191 + success.hashCode(); hashCode = hashCode * 8191 + ((is_set_aze()) ? 131071 : 524287); if (is_set_aze()) hashCode = hashCode * 8191 + aze.hashCode(); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_state_spout_object()) ? 131071 : 524287); if (is_set_state_spout_object()) hashCode = hashCode * 8191 + state_spout_object.hashCode(); hashCode = hashCode * 8191 + ((is_set_common()) ? 131071 : 524287); if (is_set_common()) hashCode = hashCode * 8191 + common.hashCode(); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_spout_object()) ? 131071 : 524287); if (is_set_spout_object()) hashCode = hashCode * 8191 + spout_object.hashCode(); hashCode = hashCode * 8191 + ((is_set_common()) ? 131071 : 524287); if (is_set_common()) hashCode = hashCode * 8191 + common.hashCode(); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_exec_summary()) ? 131071 : 524287); if (is_set_exec_summary()) hashCode = hashCode * 8191 + exec_summary.hashCode(); hashCode = hashCode * 8191 + ((is_set_stats()) ? 131071 : 524287); if (is_set_stats()) hashCode = hashCode * 8191 + stats.hashCode(); return hashCode; }
public void send_failRequest(java.lang.String id) throws org.apache.storm.thrift.TException { failRequest_args args = new failRequest_args(); args.set_id(id); sendBase("failRequest", args); }
/** * Performs a deep copy on <i>other</i>. */ public sendSupervisorWorkerHeartbeat_result(sendSupervisorWorkerHeartbeat_result other) { if (other.is_set_aze()) { this.aze = new AuthorizationException(other.aze); } }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, Bolt struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.bolt_object.write(oprot); struct.common.write(oprot); }
public void recv_sendSupervisorAssignments() throws AuthorizationException, org.apache.storm.thrift.TException { sendSupervisorAssignments_result result = new sendSupervisorAssignments_result(); receiveBase(result, "sendSupervisorAssignments"); if (result.aze != null) { throw result.aze; } return; }
public sendSupervisorWorkerHeartbeat_result getResult(I iface, sendSupervisorWorkerHeartbeat_args args) throws org.apache.storm.thrift.TException { sendSupervisorWorkerHeartbeat_result result = new sendSupervisorWorkerHeartbeat_result(); try { iface.sendSupervisorWorkerHeartbeat(args.heartbeat); } catch (AuthorizationException aze) { result.aze = aze; } return result; } }