tachyon.thrift
Class ClientWorkerInfo

java.lang.Object
  extended by tachyon.thrift.ClientWorkerInfo
All Implemented Interfaces:
Serializable, Cloneable, Comparable<ClientWorkerInfo>, org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>

public class ClientWorkerInfo
extends Object
implements org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class ClientWorkerInfo._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 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 Summary
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)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public long id

address

public NetAddress address

lastContactSec

public int lastContactSec

state

public String state

capacityBytes

public long capacityBytes

usedBytes

public long usedBytes

starttimeMs

public long starttimeMs

metaDataMap

public static final Map<ClientWorkerInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

ClientWorkerInfo

public ClientWorkerInfo()

ClientWorkerInfo

public ClientWorkerInfo(long id,
                        NetAddress address,
                        int lastContactSec,
                        String state,
                        long capacityBytes,
                        long usedBytes,
                        long starttimeMs)

ClientWorkerInfo

public ClientWorkerInfo(ClientWorkerInfo other)
Performs a deep copy on other.

Method Detail

deepCopy

public ClientWorkerInfo deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>

getId

public long getId()

setId

public ClientWorkerInfo setId(long id)

unsetId

public void unsetId()

isSetId

public boolean isSetId()
Returns true if field id is set (has been assigned a value) and false otherwise


setIdIsSet

public void setIdIsSet(boolean value)

getAddress

public NetAddress getAddress()

setAddress

public ClientWorkerInfo setAddress(NetAddress address)

unsetAddress

public void unsetAddress()

isSetAddress

public boolean isSetAddress()
Returns true if field address is set (has been assigned a value) and false otherwise


setAddressIsSet

public void setAddressIsSet(boolean value)

getLastContactSec

public int getLastContactSec()

setLastContactSec

public ClientWorkerInfo setLastContactSec(int lastContactSec)

unsetLastContactSec

public void unsetLastContactSec()

isSetLastContactSec

public boolean isSetLastContactSec()
Returns true if field lastContactSec is set (has been assigned a value) and false otherwise


setLastContactSecIsSet

public void setLastContactSecIsSet(boolean value)

getState

public String getState()

setState

public ClientWorkerInfo setState(String state)

unsetState

public void unsetState()

isSetState

public boolean isSetState()
Returns true if field state is set (has been assigned a value) and false otherwise


setStateIsSet

public void setStateIsSet(boolean value)

getCapacityBytes

public long getCapacityBytes()

setCapacityBytes

public ClientWorkerInfo setCapacityBytes(long capacityBytes)

unsetCapacityBytes

public void unsetCapacityBytes()

isSetCapacityBytes

public boolean isSetCapacityBytes()
Returns true if field capacityBytes is set (has been assigned a value) and false otherwise


setCapacityBytesIsSet

public void setCapacityBytesIsSet(boolean value)

getUsedBytes

public long getUsedBytes()

setUsedBytes

public ClientWorkerInfo setUsedBytes(long usedBytes)

unsetUsedBytes

public void unsetUsedBytes()

isSetUsedBytes

public boolean isSetUsedBytes()
Returns true if field usedBytes is set (has been assigned a value) and false otherwise


setUsedBytesIsSet

public void setUsedBytesIsSet(boolean value)

getStarttimeMs

public long getStarttimeMs()

setStarttimeMs

public ClientWorkerInfo setStarttimeMs(long starttimeMs)

unsetStarttimeMs

public void unsetStarttimeMs()

isSetStarttimeMs

public boolean isSetStarttimeMs()
Returns true if field starttimeMs is set (has been assigned a value) and false otherwise


setStarttimeMsIsSet

public void setStarttimeMsIsSet(boolean value)

setFieldValue

public void setFieldValue(ClientWorkerInfo._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>

getFieldValue

public Object getFieldValue(ClientWorkerInfo._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>

isSet

public boolean isSet(ClientWorkerInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(ClientWorkerInfo that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(ClientWorkerInfo other)
Specified by:
compareTo in interface Comparable<ClientWorkerInfo>

fieldForId

public ClientWorkerInfo._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<ClientWorkerInfo,ClientWorkerInfo._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2013. All Rights Reserved.