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 public void write(org.apache.storm.thrift.protocol.TProtocol prot, SupervisorWorkerHeartbeat struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.storm_id); { oprot.writeI32(struct.executors.size()); for (ExecutorInfo _iter874 : struct.executors) { _iter874.write(oprot); } } oprot.writeI32(struct.time_secs); }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, ClusterWorkerHeartbeat struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.storm_id); { oprot.writeI32(struct.executor_stats.size()); for (java.util.Map.Entry<ExecutorInfo, ExecutorStats> _iter777 : struct.executor_stats.entrySet()) { _iter777.getKey().write(oprot); _iter777.getValue().write(oprot); } } oprot.writeI32(struct.time_secs); oprot.writeI32(struct.uptime_secs); }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, LSWorkerHeartbeat struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.time_secs); oprot.writeString(struct.topology_id); { oprot.writeI32(struct.executors.size()); for (ExecutorInfo _iter824 : struct.executors) { _iter824.write(oprot); } } oprot.writeI32(struct.port); }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, ExecutorSummary struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.executor_info.write(oprot); oprot.writeString(struct.component_id); oprot.writeString(struct.host); oprot.writeI32(struct.port); oprot.writeI32(struct.uptime_secs); java.util.BitSet optionals = new java.util.BitSet(); if (struct.is_set_stats()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.is_set_stats()) { struct.stats.write(oprot); } }
for (ExecutorInfo _iter796 : struct.executors) _iter796.write(oprot);
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, ClusterWorkerHeartbeat struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.storm_id != null) { oprot.writeFieldBegin(STORM_ID_FIELD_DESC); oprot.writeString(struct.storm_id); oprot.writeFieldEnd(); } if (struct.executor_stats != null) { oprot.writeFieldBegin(EXECUTOR_STATS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRUCT, org.apache.storm.thrift.protocol.TType.STRUCT, struct.executor_stats.size())); for (java.util.Map.Entry<ExecutorInfo, ExecutorStats> _iter776 : struct.executor_stats.entrySet()) { _iter776.getKey().write(oprot); _iter776.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIME_SECS_FIELD_DESC); oprot.writeI32(struct.time_secs); oprot.writeFieldEnd(); oprot.writeFieldBegin(UPTIME_SECS_FIELD_DESC); oprot.writeI32(struct.uptime_secs); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, SupervisorWorkerHeartbeat struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.storm_id != null) { oprot.writeFieldBegin(STORM_ID_FIELD_DESC); oprot.writeString(struct.storm_id); oprot.writeFieldEnd(); } if (struct.executors != null) { oprot.writeFieldBegin(EXECUTORS_FIELD_DESC); { oprot.writeListBegin(new org.apache.storm.thrift.protocol.TList(org.apache.storm.thrift.protocol.TType.STRUCT, struct.executors.size())); for (ExecutorInfo _iter873 : struct.executors) { _iter873.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIME_SECS_FIELD_DESC); oprot.writeI32(struct.time_secs); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, LSWorkerHeartbeat struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TIME_SECS_FIELD_DESC); oprot.writeI32(struct.time_secs); oprot.writeFieldEnd(); if (struct.topology_id != null) { oprot.writeFieldBegin(TOPOLOGY_ID_FIELD_DESC); oprot.writeString(struct.topology_id); oprot.writeFieldEnd(); } if (struct.executors != null) { oprot.writeFieldBegin(EXECUTORS_FIELD_DESC); { oprot.writeListBegin(new org.apache.storm.thrift.protocol.TList(org.apache.storm.thrift.protocol.TType.STRUCT, struct.executors.size())); for (ExecutorInfo _iter823 : struct.executors) { _iter823.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
for (ExecutorInfo _iter795 : struct.executors) _iter795.write(oprot);
if (struct.executor_info != null) { oprot.writeFieldBegin(EXECUTOR_INFO_FIELD_DESC); struct.executor_info.write(oprot); oprot.writeFieldEnd();
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); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ClusterWorkerHeartbeat struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.storm_id); { oprot.writeI32(struct.executor_stats.size()); for (Map.Entry<ExecutorInfo, ExecutorStats> _iter699 : struct.executor_stats.entrySet()) { _iter699.getKey().write(oprot); _iter699.getValue().write(oprot); } } oprot.writeI32(struct.time_secs); oprot.writeI32(struct.uptime_secs); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, LSWorkerHeartbeat struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.time_secs); oprot.writeString(struct.topology_id); { oprot.writeI32(struct.executors.size()); for (ExecutorInfo _iter746 : struct.executors) { _iter746.write(oprot); } } oprot.writeI32(struct.port); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ExecutorSummary struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.executor_info.write(oprot); oprot.writeString(struct.component_id); oprot.writeString(struct.host); oprot.writeI32(struct.port); oprot.writeI32(struct.uptime_secs); BitSet optionals = new BitSet(); if (struct.is_set_stats()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.is_set_stats()) { struct.stats.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, LocalAssignment struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.topology_id); { oprot.writeI32(struct.executors.size()); for (ExecutorInfo _iter718 : struct.executors) { _iter718.write(oprot); } } BitSet optionals = new BitSet(); if (struct.is_set_resources()) { optionals.set(0); } if (struct.is_set_owner()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.is_set_resources()) { struct.resources.write(oprot); } if (struct.is_set_owner()) { oprot.writeString(struct.owner); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, ClusterWorkerHeartbeat struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.storm_id != null) { oprot.writeFieldBegin(STORM_ID_FIELD_DESC); oprot.writeString(struct.storm_id); oprot.writeFieldEnd(); } if (struct.executor_stats != null) { oprot.writeFieldBegin(EXECUTOR_STATS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.STRUCT, struct.executor_stats.size())); for (Map.Entry<ExecutorInfo, ExecutorStats> _iter698 : struct.executor_stats.entrySet()) { _iter698.getKey().write(oprot); _iter698.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIME_SECS_FIELD_DESC); oprot.writeI32(struct.time_secs); oprot.writeFieldEnd(); oprot.writeFieldBegin(UPTIME_SECS_FIELD_DESC); oprot.writeI32(struct.uptime_secs); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, LSWorkerHeartbeat struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TIME_SECS_FIELD_DESC); oprot.writeI32(struct.time_secs); oprot.writeFieldEnd(); if (struct.topology_id != null) { oprot.writeFieldBegin(TOPOLOGY_ID_FIELD_DESC); oprot.writeString(struct.topology_id); oprot.writeFieldEnd(); } if (struct.executors != null) { oprot.writeFieldBegin(EXECUTORS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.executors.size())); for (ExecutorInfo _iter745 : struct.executors) { _iter745.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
for (ExecutorInfo _iter717 : struct.executors) _iter717.write(oprot);
if (struct.executor_info != null) { oprot.writeFieldBegin(EXECUTOR_INFO_FIELD_DESC); struct.executor_info.write(oprot); oprot.writeFieldEnd();