Package org.apache.storm.generated
Class SupervisorWorkerHeartbeat
- java.lang.Object
-
- org.apache.storm.generated.SupervisorWorkerHeartbeat
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<SupervisorWorkerHeartbeat>,org.apache.storm.thrift.TBase<SupervisorWorkerHeartbeat,SupervisorWorkerHeartbeat._Fields>,org.apache.storm.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.19.0)") public class SupervisorWorkerHeartbeat extends Object implements org.apache.storm.thrift.TBase<SupervisorWorkerHeartbeat,SupervisorWorkerHeartbeat._Fields>, Serializable, Cloneable, Comparable<SupervisorWorkerHeartbeat>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupervisorWorkerHeartbeat._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description static Map<SupervisorWorkerHeartbeat._Fields,org.apache.storm.thrift.meta_data.FieldMetaData>metaDataMap
-
Constructor Summary
Constructors Constructor Description SupervisorWorkerHeartbeat()SupervisorWorkerHeartbeat(String storm_id, List<ExecutorInfo> executors, int time_secs)SupervisorWorkerHeartbeat(SupervisorWorkerHeartbeat other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd_to_executors(ExecutorInfo elem)voidclear()intcompareTo(SupervisorWorkerHeartbeat other)SupervisorWorkerHeartbeatdeepCopy()booleanequals(Object that)booleanequals(SupervisorWorkerHeartbeat that)SupervisorWorkerHeartbeat._FieldsfieldForId(int fieldId)List<ExecutorInfo>get_executors()Iterator<ExecutorInfo>get_executors_iterator()intget_executors_size()Stringget_storm_id()intget_time_secs()ObjectgetFieldValue(SupervisorWorkerHeartbeat._Fields field)inthashCode()booleanis_set_executors()Returns true if field executors is set (has been assigned a value) and false otherwisebooleanis_set_storm_id()Returns true if field storm_id is set (has been assigned a value) and false otherwisebooleanis_set_time_secs()Returns true if field time_secs is set (has been assigned a value) and false otherwisebooleanisSet(SupervisorWorkerHeartbeat._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisevoidread(org.apache.storm.thrift.protocol.TProtocol iprot)voidset_executors(List<ExecutorInfo> executors)voidset_executors_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)voidsetFieldValue(SupervisorWorkerHeartbeat._Fields field, Object value)StringtoString()voidunset_executors()voidunset_storm_id()voidunset_time_secs()voidvalidate()voidwrite(org.apache.storm.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
metaDataMap
public static final Map<SupervisorWorkerHeartbeat._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
SupervisorWorkerHeartbeat
public SupervisorWorkerHeartbeat()
-
SupervisorWorkerHeartbeat
public SupervisorWorkerHeartbeat(String storm_id, List<ExecutorInfo> executors, int time_secs)
-
SupervisorWorkerHeartbeat
public SupervisorWorkerHeartbeat(SupervisorWorkerHeartbeat other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public SupervisorWorkerHeartbeat deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.storm.thrift.TBase<SupervisorWorkerHeartbeat,SupervisorWorkerHeartbeat._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.storm.thrift.TBase<SupervisorWorkerHeartbeat,SupervisorWorkerHeartbeat._Fields>
-
get_storm_id
public String get_storm_id()
-
set_storm_id
public void set_storm_id(String 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_executors_size
public int get_executors_size()
-
get_executors_iterator
public Iterator<ExecutorInfo> get_executors_iterator()
-
add_to_executors
public void add_to_executors(ExecutorInfo elem)
-
get_executors
public List<ExecutorInfo> get_executors()
-
set_executors
public void set_executors(List<ExecutorInfo> executors)
-
unset_executors
public void unset_executors()
-
is_set_executors
public boolean is_set_executors()
Returns true if field executors is set (has been assigned a value) and false otherwise
-
set_executors_isSet
public void set_executors_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)
-
setFieldValue
public void setFieldValue(SupervisorWorkerHeartbeat._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.storm.thrift.TBase<SupervisorWorkerHeartbeat,SupervisorWorkerHeartbeat._Fields>
-
getFieldValue
public Object getFieldValue(SupervisorWorkerHeartbeat._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.storm.thrift.TBase<SupervisorWorkerHeartbeat,SupervisorWorkerHeartbeat._Fields>
-
isSet
public boolean isSet(SupervisorWorkerHeartbeat._Fields field)
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<SupervisorWorkerHeartbeat,SupervisorWorkerHeartbeat._Fields>
-
equals
public boolean equals(SupervisorWorkerHeartbeat that)
-
compareTo
public int compareTo(SupervisorWorkerHeartbeat other)
- Specified by:
compareToin interfaceComparable<SupervisorWorkerHeartbeat>
-
fieldForId
public SupervisorWorkerHeartbeat._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.storm.thrift.TBase<SupervisorWorkerHeartbeat,SupervisorWorkerHeartbeat._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
-
validate
public void validate() throws org.apache.storm.thrift.TException- Throws:
org.apache.storm.thrift.TException
-
-