tachyon.thrift
Class MasterService.worker_register_args

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

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

See Also:
Serialized Form

Nested Class Summary
static class MasterService.worker_register_args._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 List<Integer> currentFiles
           
static Map<MasterService.worker_register_args._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 long totalBytes
           
 long usedBytes
           
 NetAddress workerNetAddress
           
 
Constructor Summary
MasterService.worker_register_args()
           
MasterService.worker_register_args(MasterService.worker_register_args other)
          Performs a deep copy on other.
MasterService.worker_register_args(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Integer> currentFiles)
           
 
Method Summary
 void addToCurrentFiles(int elem)
           
 void clear()
           
 int compareTo(MasterService.worker_register_args other)
           
 MasterService.worker_register_args deepCopy()
           
 boolean equals(MasterService.worker_register_args that)
           
 boolean equals(Object that)
           
 MasterService.worker_register_args._Fields fieldForId(int fieldId)
           
 List<Integer> getCurrentFiles()
           
 Iterator<Integer> getCurrentFilesIterator()
           
 int getCurrentFilesSize()
           
 Object getFieldValue(MasterService.worker_register_args._Fields field)
           
 long getTotalBytes()
           
 long getUsedBytes()
           
 NetAddress getWorkerNetAddress()
           
 int hashCode()
           
 boolean isSet(MasterService.worker_register_args._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCurrentFiles()
          Returns true if field currentFiles is set (has been assigned a value) and false otherwise
 boolean isSetTotalBytes()
          Returns true if field totalBytes 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 isSetWorkerNetAddress()
          Returns true if field workerNetAddress is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 MasterService.worker_register_args setCurrentFiles(List<Integer> currentFiles)
           
 void setCurrentFilesIsSet(boolean value)
           
 void setFieldValue(MasterService.worker_register_args._Fields field, Object value)
           
 MasterService.worker_register_args setTotalBytes(long totalBytes)
           
 void setTotalBytesIsSet(boolean value)
           
 MasterService.worker_register_args setUsedBytes(long usedBytes)
           
 void setUsedBytesIsSet(boolean value)
           
 MasterService.worker_register_args setWorkerNetAddress(NetAddress workerNetAddress)
           
 void setWorkerNetAddressIsSet(boolean value)
           
 String toString()
           
 void unsetCurrentFiles()
           
 void unsetTotalBytes()
           
 void unsetUsedBytes()
           
 void unsetWorkerNetAddress()
           
 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

workerNetAddress

public NetAddress workerNetAddress

totalBytes

public long totalBytes

usedBytes

public long usedBytes

currentFiles

public List<Integer> currentFiles

metaDataMap

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

MasterService.worker_register_args

public MasterService.worker_register_args()

MasterService.worker_register_args

public MasterService.worker_register_args(NetAddress workerNetAddress,
                                          long totalBytes,
                                          long usedBytes,
                                          List<Integer> currentFiles)

MasterService.worker_register_args

public MasterService.worker_register_args(MasterService.worker_register_args other)
Performs a deep copy on other.

Method Detail

deepCopy

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

clear

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

getWorkerNetAddress

public NetAddress getWorkerNetAddress()

setWorkerNetAddress

public MasterService.worker_register_args setWorkerNetAddress(NetAddress workerNetAddress)

unsetWorkerNetAddress

public void unsetWorkerNetAddress()

isSetWorkerNetAddress

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


setWorkerNetAddressIsSet

public void setWorkerNetAddressIsSet(boolean value)

getTotalBytes

public long getTotalBytes()

setTotalBytes

public MasterService.worker_register_args setTotalBytes(long totalBytes)

unsetTotalBytes

public void unsetTotalBytes()

isSetTotalBytes

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


setTotalBytesIsSet

public void setTotalBytesIsSet(boolean value)

getUsedBytes

public long getUsedBytes()

setUsedBytes

public MasterService.worker_register_args 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)

getCurrentFilesSize

public int getCurrentFilesSize()

getCurrentFilesIterator

public Iterator<Integer> getCurrentFilesIterator()

addToCurrentFiles

public void addToCurrentFiles(int elem)

getCurrentFiles

public List<Integer> getCurrentFiles()

setCurrentFiles

public MasterService.worker_register_args setCurrentFiles(List<Integer> currentFiles)

unsetCurrentFiles

public void unsetCurrentFiles()

isSetCurrentFiles

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


setCurrentFilesIsSet

public void setCurrentFilesIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

public boolean isSet(MasterService.worker_register_args._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<MasterService.worker_register_args,MasterService.worker_register_args._Fields>

equals

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

equals

public boolean equals(MasterService.worker_register_args that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(MasterService.worker_register_args other)
Specified by:
compareTo in interface Comparable<MasterService.worker_register_args>

fieldForId

public MasterService.worker_register_args._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<MasterService.worker_register_args,MasterService.worker_register_args._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<MasterService.worker_register_args,MasterService.worker_register_args._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<MasterService.worker_register_args,MasterService.worker_register_args._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.