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.13.0)")
public class WorkerResources
extends Object
implements org.apache.storm.thrift.TBase<WorkerResources,WorkerResources._Fields>, Serializable, Cloneable, Comparable<WorkerResources>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Map<WorkerResources._Fields,
org.apache.storm.thrift.meta_data.FieldMetaData> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
int
compareTo
(WorkerResources other) deepCopy()
boolean
boolean
equals
(WorkerResources that) fieldForId
(int fieldId) double
get_cpu()
double
double
int
double
double
int
int
hashCode()
boolean
Returns true if field cpu is set (has been assigned a value) and false otherwiseboolean
Returns true if field mem_off_heap is set (has been assigned a value) and false otherwiseboolean
Returns true if field mem_on_heap is set (has been assigned a value) and false otherwiseboolean
Returns true if field resources is set (has been assigned a value) and false otherwiseboolean
Returns true if field shared_mem_off_heap is set (has been assigned a value) and false otherwiseboolean
Returns true if field shared_mem_on_heap is set (has been assigned a value) and false otherwiseboolean
Returns true if field shared_resources is set (has been assigned a value) and false otherwiseboolean
isSet
(WorkerResources._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisevoid
put_to_resources
(String key, double val) void
put_to_shared_resources
(String key, double val) void
read
(org.apache.storm.thrift.protocol.TProtocol iprot) void
set_cpu
(double cpu) void
set_cpu_isSet
(boolean value) void
set_mem_off_heap
(double mem_off_heap) void
set_mem_off_heap_isSet
(boolean value) void
set_mem_on_heap
(double mem_on_heap) void
set_mem_on_heap_isSet
(boolean value) void
set_resources
(Map<String, Double> resources) void
set_resources_isSet
(boolean value) void
set_shared_mem_off_heap
(double shared_mem_off_heap) void
set_shared_mem_off_heap_isSet
(boolean value) void
set_shared_mem_on_heap
(double shared_mem_on_heap) void
set_shared_mem_on_heap_isSet
(boolean value) void
set_shared_resources
(Map<String, Double> shared_resources) void
set_shared_resources_isSet
(boolean value) void
setFieldValue
(WorkerResources._Fields field, Object value) toString()
void
void
void
void
void
void
void
void
validate()
void
write
(org.apache.storm.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<WorkerResources._Fields,org.apache.storm.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
WorkerResources
public WorkerResources() -
WorkerResources
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopy
in interfaceorg.apache.storm.thrift.TBase<WorkerResources,
WorkerResources._Fields>
-
clear
public void clear()- Specified by:
clear
in 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_resources_size
public int get_resources_size() -
put_to_resources
-
get_resources
-
set_resources
-
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) -
setFieldValue
- Specified by:
setFieldValue
in interfaceorg.apache.storm.thrift.TBase<WorkerResources,
WorkerResources._Fields>
-
getFieldValue
- Specified by:
getFieldValue
in interfaceorg.apache.storm.thrift.TBase<WorkerResources,
WorkerResources._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.storm.thrift.TBase<WorkerResources,
WorkerResources._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<WorkerResources>
-
fieldForId
- Specified by:
fieldForId
in 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:
read
in 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:
write
in 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
-