public SubmitOptions deepCopy() { return new SubmitOptions(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof SubmitOptions) return this.equals((SubmitOptions)that); return false; }
public Object getFieldValue(_Fields field) { switch (field) { case INITIAL_STATUS: return get_initial_status(); case CREDS: return get_creds(); } throw new IllegalStateException(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case INITIAL_STATUS: if (value == null) { unset_initial_status(); } else { set_initial_status((TopologyInitialStatus)value); } break; case CREDS: if (value == null) { unset_creds(); } else { set_creds((Credentials)value); } break; } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case INITIAL_STATUS: return is_set_initial_status(); case CREDS: return is_set_creds(); } throw new IllegalStateException(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_initial_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'initial_status' is unset! Struct:" + toString()); } // check for sub-struct validity if (creds != null) { creds.validate(); } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.initial_status = backtype.storm.generated.TopologyInitialStatus.findByValue(iprot.readI32()); struct.set_initial_status_isSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
public void setFieldValue(_Fields field, Object value) { switch (field) { case INITIAL_STATUS: if (value == null) { unset_initial_status(); } else { set_initial_status((TopologyInitialStatus)value); } break; } }
case 5: // OPTIONS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.options = new SubmitOptions(); this.options.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
/** * Performs a deep copy on <i>other</i>. */ public SubmitOptions(SubmitOptions other) { if (other.is_set_initial_status()) { this.initial_status = other.initial_status; } }
public void write(org.apache.thrift.protocol.TProtocol oprot, SubmitOptions struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.initial_status != null) { oprot.writeFieldBegin(INITIAL_STATUS_FIELD_DESC); oprot.writeI32(struct.initial_status.getValue()); oprot.writeFieldEnd(); } if (struct.creds != null) { if (struct.is_set_creds()) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
makeAssignment(topologyName, topologyId, options.get_initial_status());
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.initial_status != null) { oprot.writeFieldBegin(INITIAL_STATUS_FIELD_DESC); oprot.writeI32(this.initial_status.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** * 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); } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case INITIAL_STATUS: if (value == null) { unset_initial_status(); } else { set_initial_status((TopologyInitialStatus)value); } break; case CREDS: if (value == null) { unset_creds(); } else { set_creds((Credentials)value); } break; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_initial_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'initial_status' is unset! Struct:" + toString()); } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.initial_status = backtype.storm.generated.TopologyInitialStatus.findByValue(iprot.readI32()); struct.set_initial_status_isSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case INITIAL_STATUS: return is_set_initial_status(); } throw new IllegalStateException(); }