@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, LSApprovedWorkers struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; { org.apache.storm.thrift.protocol.TMap _map806 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.I32, iprot.readI32()); struct.approved_workers = new java.util.HashMap<java.lang.String,java.lang.Integer>(2*_map806.size); java.lang.String _key807; int _val808; for (int _i809 = 0; _i809 < _map806.size; ++_i809) { _key807 = iprot.readString(); _val808 = iprot.readI32(); struct.approved_workers.put(_key807, _val808); } } struct.set_approved_workers_isSet(true); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, LocalStateData struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; { org.apache.storm.thrift.protocol.TMap _map788 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.serialized_parts = new java.util.HashMap<java.lang.String,ThriftSerializedObject>(2*_map788.size); java.lang.String _key789; ThriftSerializedObject _val790; for (int _i791 = 0; _i791 < _map788.size; ++_i791) { _key789 = iprot.readString(); _val790 = new ThriftSerializedObject(); _val790.read(iprot); struct.serialized_parts.put(_key789, _val790); } } struct.set_serialized_parts_isSet(true); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, LSSupervisorAssignments struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; { org.apache.storm.thrift.protocol.TMap _map816 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.I32, org.apache.storm.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.assignments = new java.util.HashMap<java.lang.Integer,LocalAssignment>(2*_map816.size); int _key817; LocalAssignment _val818; for (int _i819 = 0; _i819 < _map816.size; ++_i819) { _key817 = iprot.readI32(); _val818 = new LocalAssignment(); _val818.read(iprot); struct.assignments.put(_key817, _val818); } } struct.set_assignments_isSet(true); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, LogConfig struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.storm.thrift.protocol.TMap _map858 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.named_logger_level = new java.util.HashMap<java.lang.String,LogLevel>(2*_map858.size); java.lang.String _key859; LogLevel _val860; for (int _i861 = 0; _i861 < _map858.size; ++_i861) { _key859 = iprot.readString(); _val860 = new LogLevel(); _val860.read(iprot); struct.named_logger_level.put(_key859, _val860); } } struct.set_named_logger_level_isSet(true); } } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, SupervisorAssignments struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.storm.thrift.protocol.TMap _map892 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.storm_assignment = new java.util.HashMap<java.lang.String,Assignment>(2*_map892.size); java.lang.String _key893; Assignment _val894; for (int _i895 = 0; _i895 < _map892.size; ++_i895) { _key893 = iprot.readString(); _val894 = new Assignment(); _val894.read(iprot); struct.storm_assignment.put(_key893, _val894); } } struct.set_storm_assignment_isSet(true); } } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, Credentials struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; { org.apache.storm.thrift.protocol.TMap _map602 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRING, iprot.readI32()); struct.creds = new java.util.HashMap<java.lang.String,java.lang.String>(2*_map602.size); java.lang.String _key603; java.lang.String _val604; for (int _i605 = 0; _i605 < _map602.size; ++_i605) { _key603 = iprot.readString(); _val604 = iprot.readString(); struct.creds.put(_key603, _val604); } } struct.set_creds_isSet(true); java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.topoOwner = iprot.readString(); struct.set_topoOwner_isSet(true); } } }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, LSSupervisorAssignments struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.assignments != null) { oprot.writeFieldBegin(ASSIGNMENTS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.I32, org.apache.storm.thrift.protocol.TType.STRUCT, struct.assignments.size())); for (java.util.Map.Entry<java.lang.Integer, LocalAssignment> _iter814 : struct.assignments.entrySet()) { oprot.writeI32(_iter814.getKey()); _iter814.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, LocalStateData struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.serialized_parts != null) { oprot.writeFieldBegin(SERIALIZED_PARTS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRUCT, struct.serialized_parts.size())); for (java.util.Map.Entry<java.lang.String, ThriftSerializedObject> _iter786 : struct.serialized_parts.entrySet()) { oprot.writeString(_iter786.getKey()); _iter786.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, LSApprovedWorkers struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.approved_workers != null) { oprot.writeFieldBegin(APPROVED_WORKERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.I32, struct.approved_workers.size())); for (java.util.Map.Entry<java.lang.String, java.lang.Integer> _iter804 : struct.approved_workers.entrySet()) { oprot.writeString(_iter804.getKey()); oprot.writeI32(_iter804.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, SupervisorAssignments struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.storm_assignment != null) { if (struct.is_set_storm_assignment()) { oprot.writeFieldBegin(STORM_ASSIGNMENT_FIELD_DESC); { oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRUCT, struct.storm_assignment.size())); for (java.util.Map.Entry<java.lang.String, Assignment> _iter890 : struct.storm_assignment.entrySet()) { oprot.writeString(_iter890.getKey()); _iter890.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, LogConfig struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.named_logger_level != null) { if (struct.is_set_named_logger_level()) { oprot.writeFieldBegin(NAMED_LOGGER_LEVEL_FIELD_DESC); { oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRUCT, struct.named_logger_level.size())); for (java.util.Map.Entry<java.lang.String, LogLevel> _iter856 : struct.named_logger_level.entrySet()) { oprot.writeString(_iter856.getKey()); _iter856.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; org.apache.storm.thrift.protocol.TMap _map36 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRUCT, org.apache.storm.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.inputs = new java.util.HashMap<GlobalStreamId,Grouping>(2*_map36.size); GlobalStreamId _key37; org.apache.storm.thrift.protocol.TMap _map40 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.streams = new java.util.HashMap<java.lang.String,StreamInfo>(2*_map40.size); java.lang.String _key41;
org.apache.storm.thrift.protocol.TMap _map402 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.DOUBLE, iprot.readI32()); struct.resources_map = new java.util.HashMap<java.lang.String,java.lang.Double>(2*_map402.size); java.lang.String _key403;
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, Credentials struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRING, struct.creds.size())); for (java.util.Map.Entry<java.lang.String, java.lang.String> _iter600 : struct.creds.entrySet()) { oprot.writeString(_iter600.getKey()); oprot.writeString(_iter600.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.topoOwner != null) { if (struct.is_set_topoOwner()) { oprot.writeFieldBegin(TOPO_OWNER_FIELD_DESC); oprot.writeString(struct.topoOwner); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
oprot.writeFieldBegin(INPUTS_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.inputs.size())); for (java.util.Map.Entry<GlobalStreamId, Grouping> _iter32 : struct.inputs.entrySet()) oprot.writeFieldBegin(STREAMS_FIELD_DESC); oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.STRUCT, struct.streams.size())); for (java.util.Map.Entry<java.lang.String, StreamInfo> _iter33 : struct.streams.entrySet())
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, ClusterWorkerHeartbeat struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.storm_id = iprot.readString(); struct.set_storm_id_isSet(true); { org.apache.storm.thrift.protocol.TMap _map778 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRUCT, org.apache.storm.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.executor_stats = new java.util.HashMap<ExecutorInfo,ExecutorStats>(2*_map778.size); ExecutorInfo _key779; ExecutorStats _val780; for (int _i781 = 0; _i781 < _map778.size; ++_i781) { _key779 = new ExecutorInfo(); _key779.read(iprot); _val780 = new ExecutorStats(); _val780.read(iprot); struct.executor_stats.put(_key779, _val780); } } struct.set_executor_stats_isSet(true); struct.time_secs = iprot.readI32(); struct.set_time_secs_isSet(true); struct.uptime_secs = iprot.readI32(); struct.set_uptime_secs_isSet(true); } }
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(); }
org.apache.storm.thrift.protocol.TMap _map132 = new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.DOUBLE, iprot.readI32()); struct.total_resources = new java.util.HashMap<java.lang.String,java.lang.Double>(2*_map132.size); java.lang.String _key133;
oprot.writeFieldBegin(RESOURCES_FIELD_DESC); oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.DOUBLE, struct.resources.size())); for (java.util.Map.Entry<java.lang.String, java.lang.Double> _iter674 : struct.resources.entrySet()) oprot.writeFieldBegin(SHARED_RESOURCES_FIELD_DESC); oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.DOUBLE, struct.shared_resources.size())); for (java.util.Map.Entry<java.lang.String, java.lang.Double> _iter675 : struct.shared_resources.entrySet())
oprot.writeFieldBegin(RESOURCES_MAP_FIELD_DESC); oprot.writeMapBegin(new org.apache.storm.thrift.protocol.TMap(org.apache.storm.thrift.protocol.TType.STRING, org.apache.storm.thrift.protocol.TType.DOUBLE, struct.resources_map.size())); for (java.util.Map.Entry<java.lang.String, java.lang.Double> _iter400 : struct.resources_map.entrySet())