2828public class LSWorkerHeartbeat implements org .apache .storm .thrift .TBase <LSWorkerHeartbeat , LSWorkerHeartbeat ._Fields >, java .io .Serializable , Cloneable , Comparable <LSWorkerHeartbeat > {
2929 private static final org .apache .storm .thrift .protocol .TStruct STRUCT_DESC = new org .apache .storm .thrift .protocol .TStruct ("LSWorkerHeartbeat" );
3030
31- private static final org .apache .storm .thrift .protocol .TField TIME_SECS_FIELD_DESC = new org .apache .storm .thrift .protocol .TField ("time_secs" , org .apache .storm .thrift .protocol .TType .I32 , (short )1 );
31+ private static final org .apache .storm .thrift .protocol .TField TIME_SECS_FIELD_DESC = new org .apache .storm .thrift .protocol .TField ("time_secs" , org .apache .storm .thrift .protocol .TType .I64 , (short )1 );
3232 private static final org .apache .storm .thrift .protocol .TField TOPOLOGY_ID_FIELD_DESC = new org .apache .storm .thrift .protocol .TField ("topology_id" , org .apache .storm .thrift .protocol .TType .STRING , (short )2 );
3333 private static final org .apache .storm .thrift .protocol .TField EXECUTORS_FIELD_DESC = new org .apache .storm .thrift .protocol .TField ("executors" , org .apache .storm .thrift .protocol .TType .LIST , (short )3 );
3434 private static final org .apache .storm .thrift .protocol .TField PORT_FIELD_DESC = new org .apache .storm .thrift .protocol .TField ("port" , org .apache .storm .thrift .protocol .TType .I32 , (short )4 );
3535
3636 private static final org .apache .storm .thrift .scheme .SchemeFactory STANDARD_SCHEME_FACTORY = new LSWorkerHeartbeatStandardSchemeFactory ();
3737 private static final org .apache .storm .thrift .scheme .SchemeFactory TUPLE_SCHEME_FACTORY = new LSWorkerHeartbeatTupleSchemeFactory ();
3838
39- private int time_secs ; // required
39+ private long time_secs ; // required
4040 private @ org .apache .storm .thrift .annotation .Nullable java .lang .String topology_id ; // required
4141 private @ org .apache .storm .thrift .annotation .Nullable java .util .List <ExecutorInfo > executors ; // required
4242 private int port ; // required
@@ -120,7 +120,7 @@ public java.lang.String getFieldName() {
120120 static {
121121 java .util .Map <_Fields , org .apache .storm .thrift .meta_data .FieldMetaData > tmpMap = new java .util .EnumMap <_Fields , org .apache .storm .thrift .meta_data .FieldMetaData >(_Fields .class );
122122 tmpMap .put (_Fields .TIME_SECS , new org .apache .storm .thrift .meta_data .FieldMetaData ("time_secs" , org .apache .storm .thrift .TFieldRequirementType .REQUIRED ,
123- new org .apache .storm .thrift .meta_data .FieldValueMetaData (org .apache .storm .thrift .protocol .TType .I32 )));
123+ new org .apache .storm .thrift .meta_data .FieldValueMetaData (org .apache .storm .thrift .protocol .TType .I64 )));
124124 tmpMap .put (_Fields .TOPOLOGY_ID , new org .apache .storm .thrift .meta_data .FieldMetaData ("topology_id" , org .apache .storm .thrift .TFieldRequirementType .REQUIRED ,
125125 new org .apache .storm .thrift .meta_data .FieldValueMetaData (org .apache .storm .thrift .protocol .TType .STRING )));
126126 tmpMap .put (_Fields .EXECUTORS , new org .apache .storm .thrift .meta_data .FieldMetaData ("executors" , org .apache .storm .thrift .TFieldRequirementType .REQUIRED ,
@@ -136,7 +136,7 @@ public LSWorkerHeartbeat() {
136136 }
137137
138138 public LSWorkerHeartbeat (
139- int time_secs ,
139+ long time_secs ,
140140 java .lang .String topology_id ,
141141 java .util .List <ExecutorInfo > executors ,
142142 int port )
@@ -184,11 +184,11 @@ public void clear() {
184184 this .port = 0 ;
185185 }
186186
187- public int get_time_secs () {
187+ public long get_time_secs () {
188188 return this .time_secs ;
189189 }
190190
191- public void set_time_secs (int time_secs ) {
191+ public void set_time_secs (long time_secs ) {
192192 this .time_secs = time_secs ;
193193 set_time_secs_isSet (true );
194194 }
@@ -299,7 +299,7 @@ public void setFieldValue(_Fields field, @org.apache.storm.thrift.annotation.Nul
299299 if (value == null ) {
300300 unset_time_secs ();
301301 } else {
302- set_time_secs ((java .lang .Integer )value );
302+ set_time_secs ((java .lang .Long )value );
303303 }
304304 break ;
305305
@@ -426,7 +426,7 @@ public boolean equals(LSWorkerHeartbeat that) {
426426 public int hashCode () {
427427 int hashCode = 1 ;
428428
429- hashCode = hashCode * 8191 + time_secs ;
429+ hashCode = hashCode * 8191 + org . apache . storm . thrift . TBaseHelper . hashCode ( time_secs ) ;
430430
431431 hashCode = hashCode * 8191 + ((is_set_topology_id ()) ? 131071 : 524287 );
432432 if (is_set_topology_id ())
@@ -600,8 +600,8 @@ public void read(org.apache.storm.thrift.protocol.TProtocol iprot, LSWorkerHeart
600600 }
601601 switch (schemeField .id ) {
602602 case 1 : // TIME_SECS
603- if (schemeField .type == org .apache .storm .thrift .protocol .TType .I32 ) {
604- struct .time_secs = iprot .readI32 ();
603+ if (schemeField .type == org .apache .storm .thrift .protocol .TType .I64 ) {
604+ struct .time_secs = iprot .readI64 ();
605605 struct .set_time_secs_isSet (true );
606606 } else {
607607 org .apache .storm .thrift .protocol .TProtocolUtil .skip (iprot , schemeField .type );
@@ -657,7 +657,7 @@ public void write(org.apache.storm.thrift.protocol.TProtocol oprot, LSWorkerHear
657657
658658 oprot .writeStructBegin (STRUCT_DESC );
659659 oprot .writeFieldBegin (TIME_SECS_FIELD_DESC );
660- oprot .writeI32 (struct .time_secs );
660+ oprot .writeI64 (struct .time_secs );
661661 oprot .writeFieldEnd ();
662662 if (struct .topology_id != null ) {
663663 oprot .writeFieldBegin (TOPOLOGY_ID_FIELD_DESC );
@@ -697,7 +697,7 @@ private static class LSWorkerHeartbeatTupleScheme extends org.apache.storm.thrif
697697 @ Override
698698 public void write (org .apache .storm .thrift .protocol .TProtocol prot , LSWorkerHeartbeat struct ) throws org .apache .storm .thrift .TException {
699699 org .apache .storm .thrift .protocol .TTupleProtocol oprot = (org .apache .storm .thrift .protocol .TTupleProtocol ) prot ;
700- oprot .writeI32 (struct .time_secs );
700+ oprot .writeI64 (struct .time_secs );
701701 oprot .writeString (struct .topology_id );
702702 {
703703 oprot .writeI32 (struct .executors .size ());
@@ -712,7 +712,7 @@ public void write(org.apache.storm.thrift.protocol.TProtocol prot, LSWorkerHeart
712712 @ Override
713713 public void read (org .apache .storm .thrift .protocol .TProtocol prot , LSWorkerHeartbeat struct ) throws org .apache .storm .thrift .TException {
714714 org .apache .storm .thrift .protocol .TTupleProtocol iprot = (org .apache .storm .thrift .protocol .TTupleProtocol ) prot ;
715- struct .time_secs = iprot .readI32 ();
715+ struct .time_secs = iprot .readI64 ();
716716 struct .set_time_secs_isSet (true );
717717 struct .topology_id = iprot .readString ();
718718 struct .set_topology_id_isSet (true );
0 commit comments