@Generated(value="Autogenerated by Thrift Compiler (0.9.2)", date="2015-10-16") 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 |
|---|---|
NetAddress |
address |
long |
capacityBytes |
long |
id |
int |
lastContactSec |
static Map<WorkerInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
long |
startTimeMs |
String |
state |
long |
usedBytes |
| Constructor and Description |
|---|
WorkerInfo() |
WorkerInfo(long id,
NetAddress address,
int lastContactSec,
String state,
long capacityBytes,
long usedBytes,
long startTimeMs) |
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) |
NetAddress |
getAddress() |
long |
getCapacityBytes() |
Object |
getFieldValue(WorkerInfo._Fields field) |
long |
getId() |
int |
getLastContactSec() |
long |
getStartTimeMs() |
String |
getState() |
long |
getUsedBytes() |
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 |
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
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
WorkerInfo |
setAddress(NetAddress address) |
void |
setAddressIsSet(boolean value) |
WorkerInfo |
setCapacityBytes(long capacityBytes) |
void |
setCapacityBytesIsSet(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) |
String |
toString() |
void |
unsetAddress() |
void |
unsetCapacityBytes() |
void |
unsetId() |
void |
unsetLastContactSec() |
void |
unsetStartTimeMs() |
void |
unsetState() |
void |
unsetUsedBytes() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public long id
public NetAddress address
public int lastContactSec
public String state
public long capacityBytes
public long usedBytes
public long startTimeMs
public static final Map<WorkerInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public WorkerInfo()
public WorkerInfo(long id,
NetAddress address,
int lastContactSec,
String state,
long capacityBytes,
long usedBytes,
long startTimeMs)
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 NetAddress getAddress()
public WorkerInfo setAddress(NetAddress 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 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.TExceptionpublic 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.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2015. All Rights Reserved.