@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, StreamInfo struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; { oprot.writeI32(struct.output_fields.size()); for (java.lang.String _iter20 : struct.output_fields) { oprot.writeString(_iter20); } } oprot.writeBool(struct.direct); }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, DebugOptions struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.is_set_enable()) { optionals.set(0); } if (struct.is_set_samplingpct()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.is_set_enable()) { oprot.writeBool(struct.enable); } if (struct.is_set_samplingpct()) { oprot.writeDouble(struct.samplingpct); } }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, NimbusSummary struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.host); oprot.writeI32(struct.port); oprot.writeI32(struct.uptime_secs); oprot.writeBool(struct.isLeader); oprot.writeString(struct.version); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, StreamInfo struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.output_fields.size()); for (String _iter20 : struct.output_fields) { oprot.writeString(_iter20); } } oprot.writeBool(struct.direct); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DebugOptions struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.is_set_enable()) { optionals.set(0); } if (struct.is_set_samplingpct()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.is_set_enable()) { oprot.writeBool(struct.enable); } if (struct.is_set_samplingpct()) { oprot.writeDouble(struct.samplingpct); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, NimbusSummary struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.host); oprot.writeI32(struct.port); oprot.writeI32(struct.uptime_secs); oprot.writeBool(struct.isLeader); oprot.writeString(struct.version); }