@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class WorkerInfo extends Object implements org.apache.thrift.TBase<WorkerInfo,WorkerInfo._Fields>, Serializable, Cloneable, Comparable<WorkerInfo>
Modifier and Type | Class and Description |
---|---|
static class |
WorkerInfo._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<WorkerInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
WorkerInfo() |
WorkerInfo(long id,
WorkerNetAddress address,
int lastContactSec,
String state,
long capacityBytes,
long usedBytes,
long startTimeMs,
Map<String,Long> capacityBytesOnTiers,
Map<String,Long> usedBytesOnTiers) |
WorkerInfo(WorkerInfo other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(WorkerInfo other) |
WorkerInfo |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(WorkerInfo that) |
WorkerInfo._Fields |
fieldForId(int fieldId) |
WorkerNetAddress |
getAddress() |
long |
getCapacityBytes() |
Map<String,Long> |
getCapacityBytesOnTiers() |
int |
getCapacityBytesOnTiersSize() |
Object |
getFieldValue(WorkerInfo._Fields field) |
long |
getId() |
int |
getLastContactSec() |
long |
getStartTimeMs() |
String |
getState() |
long |
getUsedBytes() |
Map<String,Long> |
getUsedBytesOnTiers() |
int |
getUsedBytesOnTiersSize() |
int |
hashCode() |
boolean |
isSet(WorkerInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetAddress()
Returns true if field address is set (has been assigned a value) and false otherwise
|
boolean |
isSetCapacityBytes()
Returns true if field capacityBytes is set (has been assigned a value) and false otherwise
|
boolean |
isSetCapacityBytesOnTiers()
Returns true if field capacityBytesOnTiers is set (has been assigned a value) and false otherwise
|
boolean |
isSetId()
Returns true if field id is set (has been assigned a value) and false otherwise
|
boolean |
isSetLastContactSec()
Returns true if field lastContactSec is set (has been assigned a value) and false otherwise
|
boolean |
isSetStartTimeMs()
Returns true if field startTimeMs is set (has been assigned a value) and false otherwise
|
boolean |
isSetState()
Returns true if field state is set (has been assigned a value) and false otherwise
|
boolean |
isSetUsedBytes()
Returns true if field usedBytes is set (has been assigned a value) and false otherwise
|
boolean |
isSetUsedBytesOnTiers()
Returns true if field usedBytesOnTiers is set (has been assigned a value) and false otherwise
|
void |
putToCapacityBytesOnTiers(String key,
long val) |
void |
putToUsedBytesOnTiers(String key,
long val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
WorkerInfo |
setAddress(WorkerNetAddress address) |
void |
setAddressIsSet(boolean value) |
WorkerInfo |
setCapacityBytes(long capacityBytes) |
void |
setCapacityBytesIsSet(boolean value) |
WorkerInfo |
setCapacityBytesOnTiers(Map<String,Long> capacityBytesOnTiers) |
void |
setCapacityBytesOnTiersIsSet(boolean value) |
void |
setFieldValue(WorkerInfo._Fields field,
Object value) |
WorkerInfo |
setId(long id) |
void |
setIdIsSet(boolean value) |
WorkerInfo |
setLastContactSec(int lastContactSec) |
void |
setLastContactSecIsSet(boolean value) |
WorkerInfo |
setStartTimeMs(long startTimeMs) |
void |
setStartTimeMsIsSet(boolean value) |
WorkerInfo |
setState(String state) |
void |
setStateIsSet(boolean value) |
WorkerInfo |
setUsedBytes(long usedBytes) |
void |
setUsedBytesIsSet(boolean value) |
WorkerInfo |
setUsedBytesOnTiers(Map<String,Long> usedBytesOnTiers) |
void |
setUsedBytesOnTiersIsSet(boolean value) |
String |
toString() |
void |
unsetAddress() |
void |
unsetCapacityBytes() |
void |
unsetCapacityBytesOnTiers() |
void |
unsetId() |
void |
unsetLastContactSec() |
void |
unsetStartTimeMs() |
void |
unsetState() |
void |
unsetUsedBytes() |
void |
unsetUsedBytesOnTiers() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<WorkerInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public WorkerInfo()
public WorkerInfo(long id, WorkerNetAddress address, int lastContactSec, String state, long capacityBytes, long usedBytes, long startTimeMs, Map<String,Long> capacityBytesOnTiers, Map<String,Long> usedBytesOnTiers)
public WorkerInfo(WorkerInfo other)
public WorkerInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<WorkerInfo,WorkerInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<WorkerInfo,WorkerInfo._Fields>
public long getId()
public WorkerInfo setId(long id)
public void unsetId()
public boolean isSetId()
public void setIdIsSet(boolean value)
public WorkerNetAddress getAddress()
public WorkerInfo setAddress(WorkerNetAddress address)
public void unsetAddress()
public boolean isSetAddress()
public void setAddressIsSet(boolean value)
public int getLastContactSec()
public WorkerInfo setLastContactSec(int lastContactSec)
public void unsetLastContactSec()
public boolean isSetLastContactSec()
public void setLastContactSecIsSet(boolean value)
public String getState()
public WorkerInfo setState(String state)
public void unsetState()
public boolean isSetState()
public void setStateIsSet(boolean value)
public long getCapacityBytes()
public WorkerInfo setCapacityBytes(long capacityBytes)
public void unsetCapacityBytes()
public boolean isSetCapacityBytes()
public void setCapacityBytesIsSet(boolean value)
public long getUsedBytes()
public WorkerInfo setUsedBytes(long usedBytes)
public void unsetUsedBytes()
public boolean isSetUsedBytes()
public void setUsedBytesIsSet(boolean value)
public long getStartTimeMs()
public WorkerInfo setStartTimeMs(long startTimeMs)
public void unsetStartTimeMs()
public boolean isSetStartTimeMs()
public void setStartTimeMsIsSet(boolean value)
public int getCapacityBytesOnTiersSize()
public void putToCapacityBytesOnTiers(String key, long val)
public WorkerInfo setCapacityBytesOnTiers(Map<String,Long> capacityBytesOnTiers)
public void unsetCapacityBytesOnTiers()
public boolean isSetCapacityBytesOnTiers()
public void setCapacityBytesOnTiersIsSet(boolean value)
public int getUsedBytesOnTiersSize()
public void putToUsedBytesOnTiers(String key, long val)
public WorkerInfo setUsedBytesOnTiers(Map<String,Long> usedBytesOnTiers)
public void unsetUsedBytesOnTiers()
public boolean isSetUsedBytesOnTiers()
public void setUsedBytesOnTiersIsSet(boolean value)
public void setFieldValue(WorkerInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<WorkerInfo,WorkerInfo._Fields>
public Object getFieldValue(WorkerInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<WorkerInfo,WorkerInfo._Fields>
public boolean isSet(WorkerInfo._Fields field)
isSet
in interface org.apache.thrift.TBase<WorkerInfo,WorkerInfo._Fields>
public boolean equals(WorkerInfo that)
public int compareTo(WorkerInfo other)
compareTo
in interface Comparable<WorkerInfo>
public WorkerInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<WorkerInfo,WorkerInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<WorkerInfo,WorkerInfo._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<WorkerInfo,WorkerInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.