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:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Map<WorkerResources._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()intcompareTo(WorkerResources other) deepCopy()booleanbooleanequals(WorkerResources that) fieldForId(int fieldId) doubleget_cpu()doubledoubleintdoubledoubleintinthashCode()booleanReturns true if field cpu is set (has been assigned a value) and false otherwisebooleanReturns true if field mem_off_heap is set (has been assigned a value) and false otherwisebooleanReturns true if field mem_on_heap is set (has been assigned a value) and false otherwisebooleanReturns true if field resources is set (has been assigned a value) and false otherwisebooleanReturns true if field shared_mem_off_heap is set (has been assigned a value) and false otherwisebooleanReturns true if field shared_mem_on_heap is set (has been assigned a value) and false otherwisebooleanReturns 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) toString()voidvoidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.storm.thrift.protocol.TProtocol oprot) 
- 
Field Details- 
metaDataMappublic static final Map<WorkerResources._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
 
- 
- 
Constructor Details- 
WorkerResourcespublic WorkerResources()
- 
WorkerResourcesPerforms a deep copy on other.
 
- 
- 
Method Details- 
deepCopy- Specified by:
- deepCopyin interface- org.apache.storm.thrift.TBase<WorkerResources,- WorkerResources._Fields> 
 
- 
clearpublic void clear()- Specified by:
- clearin interface- org.apache.storm.thrift.TBase<WorkerResources,- WorkerResources._Fields> 
 
- 
get_mem_on_heappublic double get_mem_on_heap()
- 
set_mem_on_heappublic void set_mem_on_heap(double mem_on_heap) 
- 
unset_mem_on_heappublic void unset_mem_on_heap()
- 
is_set_mem_on_heappublic 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_isSetpublic void set_mem_on_heap_isSet(boolean value) 
- 
get_mem_off_heappublic double get_mem_off_heap()
- 
set_mem_off_heappublic void set_mem_off_heap(double mem_off_heap) 
- 
unset_mem_off_heappublic void unset_mem_off_heap()
- 
is_set_mem_off_heappublic 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_isSetpublic void set_mem_off_heap_isSet(boolean value) 
- 
get_cpupublic double get_cpu()
- 
set_cpupublic void set_cpu(double cpu) 
- 
unset_cpupublic void unset_cpu()
- 
is_set_cpupublic boolean is_set_cpu()Returns true if field cpu is set (has been assigned a value) and false otherwise
- 
set_cpu_isSetpublic void set_cpu_isSet(boolean value) 
- 
get_resources_sizepublic int get_resources_size()
- 
put_to_resources
- 
get_resources
- 
set_resources
- 
unset_resourcespublic void unset_resources()
- 
is_set_resourcespublic boolean is_set_resources()Returns true if field resources is set (has been assigned a value) and false otherwise
- 
set_resources_isSetpublic void set_resources_isSet(boolean value) 
- 
setFieldValue- Specified by:
- setFieldValuein interface- org.apache.storm.thrift.TBase<WorkerResources,- WorkerResources._Fields> 
 
- 
getFieldValue- Specified by:
- getFieldValuein interface- org.apache.storm.thrift.TBase<WorkerResources,- WorkerResources._Fields> 
 
- 
isSetReturns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
- isSetin interface- org.apache.storm.thrift.TBase<WorkerResources,- WorkerResources._Fields> 
 
- 
equals
- 
equals
- 
hashCodepublic int hashCode()
- 
compareTo- Specified by:
- compareToin interface- Comparable<WorkerResources>
 
- 
fieldForId- Specified by:
- fieldForIdin interface- org.apache.storm.thrift.TBase<WorkerResources,- WorkerResources._Fields> 
 
- 
readpublic void read(org.apache.storm.thrift.protocol.TProtocol iprot) throws org.apache.storm.thrift.TException - Specified by:
- readin interface- org.apache.storm.thrift.TSerializable
- Throws:
- org.apache.storm.thrift.TException
 
- 
writepublic void write(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException - Specified by:
- writein interface- org.apache.storm.thrift.TSerializable
- Throws:
- org.apache.storm.thrift.TException
 
- 
toString
- 
validatepublic void validate() throws org.apache.storm.thrift.TException- Throws:
- org.apache.storm.thrift.TException
 
 
-