@Override public void read(org.apache.thrift.protocol.TProtocol prot, StateSpoutSpec struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (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.thrift.protocol.TProtocol prot, SpoutSpec struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (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 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); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Bolt struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (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); } }
/** * 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); } }
/** * 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); } }
public void send_result(String id, String result) throws org.apache.thrift.TException { result_args args = new result_args(); args.set_id(id); args.set_result(result); sendBase("result", args); }
public void send_execute(String functionName, String funcArgs) throws org.apache.thrift.TException { execute_args args = new execute_args(); args.set_functionName(functionName); args.set_funcArgs(funcArgs); sendBase("execute", args); }
public void send_failRequest(String id) throws org.apache.thrift.TException { failRequest_args args = new failRequest_args(); args.set_id(id); sendBase("failRequest", args); }
public fetchRequest_result getResult(I iface, fetchRequest_args args) throws org.apache.thrift.TException { fetchRequest_result result = new fetchRequest_result(); try { result.success = iface.fetchRequest(args.functionName); } catch (AuthorizationException aze) { result.aze = aze; } return result; } }
public void recv_result() throws AuthorizationException, org.apache.thrift.TException { result_result result = new result_result(); receiveBase(result, "result"); if (result.aze != null) { throw result.aze; } return; }
public void recv_failRequest() throws AuthorizationException, org.apache.thrift.TException { failRequest_result result = new failRequest_result(); receiveBase(result, "failRequest"); if (result.aze != null) { throw result.aze; } return; }
public execute_result getResult(I iface, execute_args args) throws org.apache.thrift.TException { execute_result result = new execute_result(); try { result.success = iface.execute(args.functionName, args.funcArgs); } catch (DRPCExecutionException e) { result.e = e; } catch (AuthorizationException aze) { result.aze = aze; } return result; } }
public result_result getResult(I iface, result_args args) throws org.apache.thrift.TException { result_result result = new result_result(); try { iface.result(args.id, args.result); } catch (AuthorizationException aze) { result.aze = aze; } return result; } }
/** * Performs a deep copy on <i>other</i>. */ public SubmitOptions(SubmitOptions other) { if (other.is_set_initial_status()) { this.initial_status = other.initial_status; } if (other.is_set_creds()) { this.creds = new Credentials(other.creds); } }
/** * Performs a deep copy on <i>other</i>. */ public result_result(result_result other) { if (other.is_set_aze()) { this.aze = new AuthorizationException(other.aze); } }
/** * Performs a deep copy on <i>other</i>. */ public ReadableBlobMeta(ReadableBlobMeta other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_settable()) { this.settable = new SettableBlobMeta(other.settable); } this.version = other.version; }