@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class WorkerResources extends Object implements org.apache.thrift.TBase<WorkerResources,WorkerResources._Fields>, Serializable, Cloneable, Comparable<WorkerResources>
Modifier and Type | Class and Description |
---|---|
static class |
WorkerResources._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<WorkerResources._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
WorkerResources() |
WorkerResources(WorkerResources other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(WorkerResources other) |
WorkerResources |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(WorkerResources that) |
WorkerResources._Fields |
fieldForId(int fieldId) |
double |
get_cpu() |
double |
get_mem_off_heap() |
double |
get_mem_on_heap() |
Object |
getFieldValue(WorkerResources._Fields field) |
int |
hashCode() |
boolean |
is_set_cpu()
Returns true if field cpu is set (has been assigned a value) and false otherwise
|
boolean |
is_set_mem_off_heap()
Returns true if field mem_off_heap is set (has been assigned a value) and false otherwise
|
boolean |
is_set_mem_on_heap()
Returns true if field mem_on_heap is set (has been assigned a value) and false otherwise
|
boolean |
isSet(WorkerResources._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
set_cpu_isSet(boolean value) |
void |
set_cpu(double cpu) |
void |
set_mem_off_heap_isSet(boolean value) |
void |
set_mem_off_heap(double mem_off_heap) |
void |
set_mem_on_heap_isSet(boolean value) |
void |
set_mem_on_heap(double mem_on_heap) |
void |
setFieldValue(WorkerResources._Fields field,
Object value) |
String |
toString() |
void |
unset_cpu() |
void |
unset_mem_off_heap() |
void |
unset_mem_on_heap() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<WorkerResources._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public WorkerResources()
public WorkerResources(WorkerResources other)
Performs a deep copy on other.
public WorkerResources deepCopy()
deepCopy
in interface org.apache.thrift.TBase<WorkerResources,WorkerResources._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<WorkerResources,WorkerResources._Fields>
public double get_mem_on_heap()
public void set_mem_on_heap(double mem_on_heap)
public void unset_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
public void set_mem_on_heap_isSet(boolean value)
public double get_mem_off_heap()
public void set_mem_off_heap(double mem_off_heap)
public void unset_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
public void set_mem_off_heap_isSet(boolean value)
public double get_cpu()
public void set_cpu(double cpu)
public void unset_cpu()
public boolean is_set_cpu()
Returns true if field cpu is set (has been assigned a value) and false otherwise
public void set_cpu_isSet(boolean value)
public void setFieldValue(WorkerResources._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<WorkerResources,WorkerResources._Fields>
public Object getFieldValue(WorkerResources._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<WorkerResources,WorkerResources._Fields>
public boolean isSet(WorkerResources._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
isSet
in interface org.apache.thrift.TBase<WorkerResources,WorkerResources._Fields>
public boolean equals(WorkerResources that)
public int compareTo(WorkerResources other)
compareTo
in interface Comparable<WorkerResources>
public WorkerResources._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<WorkerResources,WorkerResources._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<WorkerResources,WorkerResources._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<WorkerResources,WorkerResources._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.