public class ClientWorkerInfo extends Object implements org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>, Serializable, Cloneable, Comparable<ClientWorkerInfo>
Modifier and Type | Class and Description |
---|---|
static class |
ClientWorkerInfo._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<ClientWorkerInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
long |
starttimeMs |
String |
state |
long |
usedBytes |
Constructor and Description |
---|
ClientWorkerInfo() |
ClientWorkerInfo(ClientWorkerInfo other)
Performs a deep copy on other.
|
ClientWorkerInfo(long id,
NetAddress address,
int lastContactSec,
String state,
long capacityBytes,
long usedBytes,
long starttimeMs) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(ClientWorkerInfo other) |
ClientWorkerInfo |
deepCopy() |
boolean |
equals(ClientWorkerInfo that) |
boolean |
equals(Object that) |
ClientWorkerInfo._Fields |
fieldForId(int fieldId) |
NetAddress |
getAddress() |
long |
getCapacityBytes() |
Object |
getFieldValue(ClientWorkerInfo._Fields field) |
long |
getId() |
int |
getLastContactSec() |
long |
getStarttimeMs() |
String |
getState() |
long |
getUsedBytes() |
int |
hashCode() |
boolean |
isSet(ClientWorkerInfo._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) |
ClientWorkerInfo |
setAddress(NetAddress address) |
void |
setAddressIsSet(boolean value) |
ClientWorkerInfo |
setCapacityBytes(long capacityBytes) |
void |
setCapacityBytesIsSet(boolean value) |
void |
setFieldValue(ClientWorkerInfo._Fields field,
Object value) |
ClientWorkerInfo |
setId(long id) |
void |
setIdIsSet(boolean value) |
ClientWorkerInfo |
setLastContactSec(int lastContactSec) |
void |
setLastContactSecIsSet(boolean value) |
ClientWorkerInfo |
setStarttimeMs(long starttimeMs) |
void |
setStarttimeMsIsSet(boolean value) |
ClientWorkerInfo |
setState(String state) |
void |
setStateIsSet(boolean value) |
ClientWorkerInfo |
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<ClientWorkerInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public ClientWorkerInfo()
public ClientWorkerInfo(long id, NetAddress address, int lastContactSec, String state, long capacityBytes, long usedBytes, long starttimeMs)
public ClientWorkerInfo(ClientWorkerInfo other)
public ClientWorkerInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>
public long getId()
public ClientWorkerInfo setId(long id)
public void unsetId()
public boolean isSetId()
public void setIdIsSet(boolean value)
public NetAddress getAddress()
public ClientWorkerInfo setAddress(NetAddress address)
public void unsetAddress()
public boolean isSetAddress()
public void setAddressIsSet(boolean value)
public int getLastContactSec()
public ClientWorkerInfo setLastContactSec(int lastContactSec)
public void unsetLastContactSec()
public boolean isSetLastContactSec()
public void setLastContactSecIsSet(boolean value)
public String getState()
public ClientWorkerInfo setState(String state)
public void unsetState()
public boolean isSetState()
public void setStateIsSet(boolean value)
public long getCapacityBytes()
public ClientWorkerInfo setCapacityBytes(long capacityBytes)
public void unsetCapacityBytes()
public boolean isSetCapacityBytes()
public void setCapacityBytesIsSet(boolean value)
public long getUsedBytes()
public ClientWorkerInfo setUsedBytes(long usedBytes)
public void unsetUsedBytes()
public boolean isSetUsedBytes()
public void setUsedBytesIsSet(boolean value)
public long getStarttimeMs()
public ClientWorkerInfo setStarttimeMs(long starttimeMs)
public void unsetStarttimeMs()
public boolean isSetStarttimeMs()
public void setStarttimeMsIsSet(boolean value)
public void setFieldValue(ClientWorkerInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>
public Object getFieldValue(ClientWorkerInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>
public boolean isSet(ClientWorkerInfo._Fields field)
isSet
in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>
public boolean equals(ClientWorkerInfo that)
public int compareTo(ClientWorkerInfo other)
compareTo
in interface Comparable<ClientWorkerInfo>
public ClientWorkerInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._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<ClientWorkerInfo,ClientWorkerInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2013. All rights reserved.