Package org.apache.storm.generated
Class ClusterWorkerHeartbeat
java.lang.Object
org.apache.storm.generated.ClusterWorkerHeartbeat
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<ClusterWorkerHeartbeat>,org.apache.storm.thrift.TBase<ClusterWorkerHeartbeat,,ClusterWorkerHeartbeat._Fields> org.apache.storm.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.19.0)")
public class ClusterWorkerHeartbeat
extends Object
implements org.apache.storm.thrift.TBase<ClusterWorkerHeartbeat,ClusterWorkerHeartbeat._Fields>, Serializable, Cloneable, Comparable<ClusterWorkerHeartbeat>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<ClusterWorkerHeartbeat._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionClusterWorkerHeartbeat(String storm_id, Map<ExecutorInfo, ExecutorStats> executor_stats, int time_secs, int uptime_secs) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(ClusterWorkerHeartbeat other) deepCopy()booleanbooleanequals(ClusterWorkerHeartbeat that) fieldForId(int fieldId) intintintinthashCode()booleanReturns true if field executor_stats is set (has been assigned a value) and false otherwisebooleanReturns true if field storm_id is set (has been assigned a value) and false otherwisebooleanReturns true if field time_secs is set (has been assigned a value) and false otherwisebooleanReturns true if field uptime_secs is set (has been assigned a value) and false otherwisebooleanReturns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisevoidput_to_executor_stats(ExecutorInfo key, ExecutorStats val) voidread(org.apache.storm.thrift.protocol.TProtocol iprot) voidset_executor_stats(Map<ExecutorInfo, ExecutorStats> executor_stats) voidset_executor_stats_isSet(boolean value) voidset_storm_id(String storm_id) voidset_storm_id_isSet(boolean value) voidset_time_secs(int time_secs) voidset_time_secs_isSet(boolean value) voidset_uptime_secs(int uptime_secs) voidset_uptime_secs_isSet(boolean value) voidsetFieldValue(ClusterWorkerHeartbeat._Fields field, Object value) toString()voidvoidvoidvoidvoidvalidate()voidwrite(org.apache.storm.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<ClusterWorkerHeartbeat._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
ClusterWorkerHeartbeat
public ClusterWorkerHeartbeat() -
ClusterWorkerHeartbeat
public ClusterWorkerHeartbeat(String storm_id, Map<ExecutorInfo, ExecutorStats> executor_stats, int time_secs, int uptime_secs) -
ClusterWorkerHeartbeat
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.storm.thrift.TBase<ClusterWorkerHeartbeat,ClusterWorkerHeartbeat._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.storm.thrift.TBase<ClusterWorkerHeartbeat,ClusterWorkerHeartbeat._Fields>
-
get_storm_id
-
set_storm_id
-
unset_storm_id
public void unset_storm_id() -
is_set_storm_id
public boolean is_set_storm_id()Returns true if field storm_id is set (has been assigned a value) and false otherwise -
set_storm_id_isSet
public void set_storm_id_isSet(boolean value) -
get_executor_stats_size
public int get_executor_stats_size() -
put_to_executor_stats
-
get_executor_stats
-
set_executor_stats
-
unset_executor_stats
public void unset_executor_stats() -
is_set_executor_stats
public boolean is_set_executor_stats()Returns true if field executor_stats is set (has been assigned a value) and false otherwise -
set_executor_stats_isSet
public void set_executor_stats_isSet(boolean value) -
get_time_secs
public int get_time_secs() -
set_time_secs
public void set_time_secs(int time_secs) -
unset_time_secs
public void unset_time_secs() -
is_set_time_secs
public boolean is_set_time_secs()Returns true if field time_secs is set (has been assigned a value) and false otherwise -
set_time_secs_isSet
public void set_time_secs_isSet(boolean value) -
get_uptime_secs
public int get_uptime_secs() -
set_uptime_secs
public void set_uptime_secs(int uptime_secs) -
unset_uptime_secs
public void unset_uptime_secs() -
is_set_uptime_secs
public boolean is_set_uptime_secs()Returns true if field uptime_secs is set (has been assigned a value) and false otherwise -
set_uptime_secs_isSet
public void set_uptime_secs_isSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.storm.thrift.TBase<ClusterWorkerHeartbeat,ClusterWorkerHeartbeat._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.storm.thrift.TBase<ClusterWorkerHeartbeat,ClusterWorkerHeartbeat._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.storm.thrift.TBase<ClusterWorkerHeartbeat,ClusterWorkerHeartbeat._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ClusterWorkerHeartbeat>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.storm.thrift.TBase<ClusterWorkerHeartbeat,ClusterWorkerHeartbeat._Fields>
-
read
public void read(org.apache.storm.thrift.protocol.TProtocol iprot) throws org.apache.storm.thrift.TException - Specified by:
readin interfaceorg.apache.storm.thrift.TSerializable- Throws:
org.apache.storm.thrift.TException
-
write
public void write(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException - Specified by:
writein interfaceorg.apache.storm.thrift.TSerializable- Throws:
org.apache.storm.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.storm.thrift.TException- Throws:
org.apache.storm.thrift.TException
-