Package org.apache.storm.generated
Class WorkerMetrics
- java.lang.Object
-
- org.apache.storm.generated.WorkerMetrics
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<WorkerMetrics>,org.apache.storm.thrift.TBase<WorkerMetrics,WorkerMetrics._Fields>,org.apache.storm.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.19.0)") public class WorkerMetrics extends Object implements org.apache.storm.thrift.TBase<WorkerMetrics,WorkerMetrics._Fields>, Serializable, Cloneable, Comparable<WorkerMetrics>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkerMetrics._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<WorkerMetrics._Fields,org.apache.storm.thrift.meta_data.FieldMetaData>metaDataMap
-
Constructor Summary
Constructors Constructor Description WorkerMetrics()WorkerMetrics(String topologyId, int port, String hostname, WorkerMetricList metricList)WorkerMetrics(WorkerMetrics other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(WorkerMetrics other)WorkerMetricsdeepCopy()booleanequals(Object that)booleanequals(WorkerMetrics that)WorkerMetrics._FieldsfieldForId(int fieldId)Stringget_hostname()WorkerMetricListget_metricList()intget_port()Stringget_topologyId()ObjectgetFieldValue(WorkerMetrics._Fields field)inthashCode()booleanis_set_hostname()Returns true if field hostname is set (has been assigned a value) and false otherwisebooleanis_set_metricList()Returns true if field metricList is set (has been assigned a value) and false otherwisebooleanis_set_port()Returns true if field port is set (has been assigned a value) and false otherwisebooleanis_set_topologyId()Returns true if field topologyId is set (has been assigned a value) and false otherwisebooleanisSet(WorkerMetrics._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_hostname(String hostname)voidset_hostname_isSet(boolean value)voidset_metricList(WorkerMetricList metricList)voidset_metricList_isSet(boolean value)voidset_port(int port)voidset_port_isSet(boolean value)voidset_topologyId(String topologyId)voidset_topologyId_isSet(boolean value)voidsetFieldValue(WorkerMetrics._Fields field, Object value)StringtoString()voidunset_hostname()voidunset_metricList()voidunset_port()voidunset_topologyId()voidvalidate()voidwrite(org.apache.storm.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
metaDataMap
public static final Map<WorkerMetrics._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
WorkerMetrics
public WorkerMetrics()
-
WorkerMetrics
public WorkerMetrics(String topologyId, int port, String hostname, WorkerMetricList metricList)
-
WorkerMetrics
public WorkerMetrics(WorkerMetrics other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public WorkerMetrics deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.storm.thrift.TBase<WorkerMetrics,WorkerMetrics._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.storm.thrift.TBase<WorkerMetrics,WorkerMetrics._Fields>
-
get_topologyId
public String get_topologyId()
-
set_topologyId
public void set_topologyId(String topologyId)
-
unset_topologyId
public void unset_topologyId()
-
is_set_topologyId
public boolean is_set_topologyId()
Returns true if field topologyId is set (has been assigned a value) and false otherwise
-
set_topologyId_isSet
public void set_topologyId_isSet(boolean value)
-
get_port
public int get_port()
-
set_port
public void set_port(int port)
-
unset_port
public void unset_port()
-
is_set_port
public boolean is_set_port()
Returns true if field port is set (has been assigned a value) and false otherwise
-
set_port_isSet
public void set_port_isSet(boolean value)
-
get_hostname
public String get_hostname()
-
set_hostname
public void set_hostname(String hostname)
-
unset_hostname
public void unset_hostname()
-
is_set_hostname
public boolean is_set_hostname()
Returns true if field hostname is set (has been assigned a value) and false otherwise
-
set_hostname_isSet
public void set_hostname_isSet(boolean value)
-
get_metricList
public WorkerMetricList get_metricList()
-
set_metricList
public void set_metricList(WorkerMetricList metricList)
-
unset_metricList
public void unset_metricList()
-
is_set_metricList
public boolean is_set_metricList()
Returns true if field metricList is set (has been assigned a value) and false otherwise
-
set_metricList_isSet
public void set_metricList_isSet(boolean value)
-
setFieldValue
public void setFieldValue(WorkerMetrics._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.storm.thrift.TBase<WorkerMetrics,WorkerMetrics._Fields>
-
getFieldValue
public Object getFieldValue(WorkerMetrics._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.storm.thrift.TBase<WorkerMetrics,WorkerMetrics._Fields>
-
isSet
public boolean isSet(WorkerMetrics._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<WorkerMetrics,WorkerMetrics._Fields>
-
equals
public boolean equals(WorkerMetrics that)
-
compareTo
public int compareTo(WorkerMetrics other)
- Specified by:
compareToin interfaceComparable<WorkerMetrics>
-
fieldForId
public WorkerMetrics._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.storm.thrift.TBase<WorkerMetrics,WorkerMetrics._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
-
-