org.apache.accumulo.core.master.thrift
Class RecoveryStatus

java.lang.Object
  extended by org.apache.accumulo.core.master.thrift.RecoveryStatus
All Implemented Interfaces:
Serializable, Cloneable, Comparable<RecoveryStatus>, org.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>

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

See Also:
Serialized Form

Nested Class Summary
static class RecoveryStatus._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 double copyProgress
           
 String host
           
 double mapProgress
           
static Map<RecoveryStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 String name
           
 double reduceProgress
           
 int runtime
           
 
Constructor Summary
RecoveryStatus()
           
RecoveryStatus(RecoveryStatus other)
          Performs a deep copy on other.
RecoveryStatus(String host, String name, double mapProgress, double reduceProgress, int runtime, double copyProgress)
           
 
Method Summary
 void clear()
           
 int compareTo(RecoveryStatus other)
           
 RecoveryStatus deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(RecoveryStatus that)
           
 RecoveryStatus._Fields fieldForId(int fieldId)
           
 double getCopyProgress()
           
 Object getFieldValue(RecoveryStatus._Fields field)
           
 String getHost()
           
 double getMapProgress()
           
 String getName()
           
 double getReduceProgress()
           
 int getRuntime()
           
 int hashCode()
           
 boolean isSet(RecoveryStatus._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCopyProgress()
          Returns true if field copyProgress is set (has been assigned a value) and false otherwise
 boolean isSetHost()
          Returns true if field host is set (has been assigned a value) and false otherwise
 boolean isSetMapProgress()
          Returns true if field mapProgress is set (has been assigned a value) and false otherwise
 boolean isSetName()
          Returns true if field name is set (has been assigned a value) and false otherwise
 boolean isSetReduceProgress()
          Returns true if field reduceProgress is set (has been assigned a value) and false otherwise
 boolean isSetRuntime()
          Returns true if field runtime is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 RecoveryStatus setCopyProgress(double copyProgress)
           
 void setCopyProgressIsSet(boolean value)
           
 void setFieldValue(RecoveryStatus._Fields field, Object value)
           
 RecoveryStatus setHost(String host)
           
 void setHostIsSet(boolean value)
           
 RecoveryStatus setMapProgress(double mapProgress)
           
 void setMapProgressIsSet(boolean value)
           
 RecoveryStatus setName(String name)
           
 void setNameIsSet(boolean value)
           
 RecoveryStatus setReduceProgress(double reduceProgress)
           
 void setReduceProgressIsSet(boolean value)
           
 RecoveryStatus setRuntime(int runtime)
           
 void setRuntimeIsSet(boolean value)
           
 String toString()
           
 void unsetCopyProgress()
           
 void unsetHost()
           
 void unsetMapProgress()
           
 void unsetName()
           
 void unsetReduceProgress()
           
 void unsetRuntime()
           
 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

host

public String host

name

public String name

mapProgress

public double mapProgress

reduceProgress

public double reduceProgress

runtime

public int runtime

copyProgress

public double copyProgress

metaDataMap

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

RecoveryStatus

public RecoveryStatus()

RecoveryStatus

public RecoveryStatus(String host,
                      String name,
                      double mapProgress,
                      double reduceProgress,
                      int runtime,
                      double copyProgress)

RecoveryStatus

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

Method Detail

deepCopy

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

clear

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

getHost

public String getHost()

setHost

public RecoveryStatus setHost(String host)

unsetHost

public void unsetHost()

isSetHost

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


setHostIsSet

public void setHostIsSet(boolean value)

getName

public String getName()

setName

public RecoveryStatus setName(String name)

unsetName

public void unsetName()

isSetName

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


setNameIsSet

public void setNameIsSet(boolean value)

getMapProgress

public double getMapProgress()

setMapProgress

public RecoveryStatus setMapProgress(double mapProgress)

unsetMapProgress

public void unsetMapProgress()

isSetMapProgress

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


setMapProgressIsSet

public void setMapProgressIsSet(boolean value)

getReduceProgress

public double getReduceProgress()

setReduceProgress

public RecoveryStatus setReduceProgress(double reduceProgress)

unsetReduceProgress

public void unsetReduceProgress()

isSetReduceProgress

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


setReduceProgressIsSet

public void setReduceProgressIsSet(boolean value)

getRuntime

public int getRuntime()

setRuntime

public RecoveryStatus setRuntime(int runtime)

unsetRuntime

public void unsetRuntime()

isSetRuntime

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


setRuntimeIsSet

public void setRuntimeIsSet(boolean value)

getCopyProgress

public double getCopyProgress()

setCopyProgress

public RecoveryStatus setCopyProgress(double copyProgress)

unsetCopyProgress

public void unsetCopyProgress()

isSetCopyProgress

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


setCopyProgressIsSet

public void setCopyProgressIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(RecoveryStatus that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public RecoveryStatus._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._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<RecoveryStatus,RecoveryStatus._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<RecoveryStatus,RecoveryStatus._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 The Apache Software Foundation. All Rights Reserved.