Package org.apache.storm.generated
Class WorkerResources
- java.lang.Object
-
- org.apache.storm.generated.WorkerResources
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<WorkerResources>,org.apache.storm.thrift.TBase<WorkerResources,WorkerResources._Fields>,org.apache.storm.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.19.0)") public class WorkerResources extends Object implements org.apache.storm.thrift.TBase<WorkerResources,WorkerResources._Fields>, Serializable, Cloneable, Comparable<WorkerResources>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkerResources._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<WorkerResources._Fields,org.apache.storm.thrift.meta_data.FieldMetaData>metaDataMap
-
Constructor Summary
Constructors Constructor Description WorkerResources()WorkerResources(WorkerResources other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(WorkerResources other)WorkerResourcesdeepCopy()booleanequals(Object that)booleanequals(WorkerResources that)WorkerResources._FieldsfieldForId(int fieldId)doubleget_cpu()doubleget_mem_off_heap()doubleget_mem_on_heap()Map<String,Double>get_resources()intget_resources_size()doubleget_shared_mem_off_heap()doubleget_shared_mem_on_heap()Map<String,Double>get_shared_resources()intget_shared_resources_size()ObjectgetFieldValue(WorkerResources._Fields field)inthashCode()booleanis_set_cpu()Returns true if field cpu is set (has been assigned a value) and false otherwisebooleanis_set_mem_off_heap()Returns true if field mem_off_heap is set (has been assigned a value) and false otherwisebooleanis_set_mem_on_heap()Returns true if field mem_on_heap is set (has been assigned a value) and false otherwisebooleanis_set_resources()Returns true if field resources is set (has been assigned a value) and false otherwisebooleanis_set_shared_mem_off_heap()Returns true if field shared_mem_off_heap is set (has been assigned a value) and false otherwisebooleanis_set_shared_mem_on_heap()Returns true if field shared_mem_on_heap is set (has been assigned a value) and false otherwisebooleanis_set_shared_resources()Returns true if field shared_resources is set (has been assigned a value) and false otherwisebooleanisSet(WorkerResources._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisevoidput_to_resources(String key, double val)voidput_to_shared_resources(String key, double val)voidread(org.apache.storm.thrift.protocol.TProtocol iprot)voidset_cpu(double cpu)voidset_cpu_isSet(boolean value)voidset_mem_off_heap(double mem_off_heap)voidset_mem_off_heap_isSet(boolean value)voidset_mem_on_heap(double mem_on_heap)voidset_mem_on_heap_isSet(boolean value)voidset_resources(Map<String,Double> resources)voidset_resources_isSet(boolean value)voidset_shared_mem_off_heap(double shared_mem_off_heap)voidset_shared_mem_off_heap_isSet(boolean value)voidset_shared_mem_on_heap(double shared_mem_on_heap)voidset_shared_mem_on_heap_isSet(boolean value)voidset_shared_resources(Map<String,Double> shared_resources)voidset_shared_resources_isSet(boolean value)voidsetFieldValue(WorkerResources._Fields field, Object value)StringtoString()voidunset_cpu()voidunset_mem_off_heap()voidunset_mem_on_heap()voidunset_resources()voidunset_shared_mem_off_heap()voidunset_shared_mem_on_heap()voidunset_shared_resources()voidvalidate()voidwrite(org.apache.storm.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
metaDataMap
public static final Map<WorkerResources._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
WorkerResources
public WorkerResources()
-
WorkerResources
public WorkerResources(WorkerResources other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public WorkerResources deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.storm.thrift.TBase<WorkerResources,WorkerResources._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.storm.thrift.TBase<WorkerResources,WorkerResources._Fields>
-
get_mem_on_heap
public double get_mem_on_heap()
-
set_mem_on_heap
public void set_mem_on_heap(double mem_on_heap)
-
unset_mem_on_heap
public void unset_mem_on_heap()
-
is_set_mem_on_heap
public boolean is_set_mem_on_heap()
Returns true if field mem_on_heap is set (has been assigned a value) and false otherwise
-
set_mem_on_heap_isSet
public void set_mem_on_heap_isSet(boolean value)
-
get_mem_off_heap
public double get_mem_off_heap()
-
set_mem_off_heap
public void set_mem_off_heap(double mem_off_heap)
-
unset_mem_off_heap
public void unset_mem_off_heap()
-
is_set_mem_off_heap
public boolean is_set_mem_off_heap()
Returns true if field mem_off_heap is set (has been assigned a value) and false otherwise
-
set_mem_off_heap_isSet
public void set_mem_off_heap_isSet(boolean value)
-
get_cpu
public double get_cpu()
-
set_cpu
public void set_cpu(double cpu)
-
unset_cpu
public void unset_cpu()
-
is_set_cpu
public boolean is_set_cpu()
Returns true if field cpu is set (has been assigned a value) and false otherwise
-
set_cpu_isSet
public void set_cpu_isSet(boolean value)
-
get_shared_mem_on_heap
public double get_shared_mem_on_heap()
-
set_shared_mem_on_heap
public void set_shared_mem_on_heap(double shared_mem_on_heap)
-
unset_shared_mem_on_heap
public void unset_shared_mem_on_heap()
-
is_set_shared_mem_on_heap
public boolean is_set_shared_mem_on_heap()
Returns true if field shared_mem_on_heap is set (has been assigned a value) and false otherwise
-
set_shared_mem_on_heap_isSet
public void set_shared_mem_on_heap_isSet(boolean value)
-
get_shared_mem_off_heap
public double get_shared_mem_off_heap()
-
set_shared_mem_off_heap
public void set_shared_mem_off_heap(double shared_mem_off_heap)
-
unset_shared_mem_off_heap
public void unset_shared_mem_off_heap()
-
is_set_shared_mem_off_heap
public boolean is_set_shared_mem_off_heap()
Returns true if field shared_mem_off_heap is set (has been assigned a value) and false otherwise
-
set_shared_mem_off_heap_isSet
public void set_shared_mem_off_heap_isSet(boolean value)
-
get_resources_size
public int get_resources_size()
-
put_to_resources
public void put_to_resources(String key, double val)
-
unset_resources
public void unset_resources()
-
is_set_resources
public boolean is_set_resources()
Returns true if field resources is set (has been assigned a value) and false otherwise
-
set_resources_isSet
public void set_resources_isSet(boolean value)
-
get_shared_resources_size
public int get_shared_resources_size()
-
put_to_shared_resources
public void put_to_shared_resources(String key, double val)
-
unset_shared_resources
public void unset_shared_resources()
-
is_set_shared_resources
public boolean is_set_shared_resources()
Returns true if field shared_resources is set (has been assigned a value) and false otherwise
-
set_shared_resources_isSet
public void set_shared_resources_isSet(boolean value)
-
setFieldValue
public void setFieldValue(WorkerResources._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.storm.thrift.TBase<WorkerResources,WorkerResources._Fields>
-
getFieldValue
public Object getFieldValue(WorkerResources._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.storm.thrift.TBase<WorkerResources,WorkerResources._Fields>
-
isSet
public boolean isSet(WorkerResources._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<WorkerResources,WorkerResources._Fields>
-
equals
public boolean equals(WorkerResources that)
-
compareTo
public int compareTo(WorkerResources other)
- Specified by:
compareToin interfaceComparable<WorkerResources>
-
fieldForId
public WorkerResources._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.storm.thrift.TBase<WorkerResources,WorkerResources._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
-
-