@Override protected void standardSchemeWriteValue(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException { switch (setField_) { case KILL_OPTIONS: KillOptions kill_options = (KillOptions)value_; kill_options.write(oprot); return; case REBALANCE_OPTIONS: RebalanceOptions rebalance_options = (RebalanceOptions)value_; rebalance_options.write(oprot); return; default: throw new java.lang.IllegalStateException("Cannot write union with unknown field " + setField_); } }
@Override protected void tupleSchemeWriteValue(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException { switch (setField_) { case KILL_OPTIONS: KillOptions kill_options = (KillOptions)value_; kill_options.write(oprot); return; case REBALANCE_OPTIONS: RebalanceOptions rebalance_options = (RebalanceOptions)value_; rebalance_options.write(oprot); return; default: throw new java.lang.IllegalStateException("Cannot write union with unknown field " + setField_); } }
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.storm.thrift.protocol.TCompactProtocol(new org.apache.storm.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.storm.thrift.TException te) { throw new java.io.IOException(te); } }
@Override protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case KILL_OPTIONS: KillOptions kill_options = (KillOptions)value_; kill_options.write(oprot); return; case REBALANCE_OPTIONS: RebalanceOptions rebalance_options = (RebalanceOptions)value_; rebalance_options.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }
@Override protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case KILL_OPTIONS: KillOptions kill_options = (KillOptions)value_; kill_options.write(oprot); return; case REBALANCE_OPTIONS: RebalanceOptions rebalance_options = (RebalanceOptions)value_; rebalance_options.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }
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); } }