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

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

public class RecoveryStatus
extends java.lang.Object
implements org.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>, java.io.Serializable, java.lang.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
           
 java.lang.String host
           
 double mapProgress
           
static java.util.Map<RecoveryStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 java.lang.String name
           
 double reduceProgress
           
 int runtime
           
 
Constructor Summary
RecoveryStatus()
           
RecoveryStatus(RecoveryStatus other)
          Performs a deep copy on other.
RecoveryStatus(java.lang.String host, java.lang.String name, double mapProgress, double reduceProgress, int runtime, double copyProgress)
           
 
Method Summary
 RecoveryStatus clone()
          Deprecated. 
 int compareTo(RecoveryStatus other)
           
 RecoveryStatus deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(RecoveryStatus that)
           
 double getCopyProgress()
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(RecoveryStatus._Fields field)
           
 java.lang.String getHost()
           
 double getMapProgress()
           
 java.lang.String getName()
           
 double getReduceProgress()
           
 int getRuntime()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(RecoveryStatus._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetCopyProgress()
          Returns true if field copyProgress is set (has been asigned a value) and false otherwise
 boolean isSetHost()
          Returns true if field host is set (has been asigned a value) and false otherwise
 boolean isSetMapProgress()
          Returns true if field mapProgress is set (has been asigned a value) and false otherwise
 boolean isSetName()
          Returns true if field name is set (has been asigned a value) and false otherwise
 boolean isSetReduceProgress()
          Returns true if field reduceProgress is set (has been asigned a value) and false otherwise
 boolean isSetRuntime()
          Returns true if field runtime is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 RecoveryStatus setCopyProgress(double copyProgress)
           
 void setCopyProgressIsSet(boolean value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(RecoveryStatus._Fields field, java.lang.Object value)
           
 RecoveryStatus setHost(java.lang.String host)
           
 void setHostIsSet(boolean value)
           
 RecoveryStatus setMapProgress(double mapProgress)
           
 void setMapProgressIsSet(boolean value)
           
 RecoveryStatus setName(java.lang.String name)
           
 void setNameIsSet(boolean value)
           
 RecoveryStatus setReduceProgress(double reduceProgress)
           
 void setReduceProgressIsSet(boolean value)
           
 RecoveryStatus setRuntime(int runtime)
           
 void setRuntimeIsSet(boolean value)
           
 java.lang.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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

host

public java.lang.String host

name

public java.lang.String name

mapProgress

public double mapProgress

reduceProgress

public double reduceProgress

runtime

public int runtime

copyProgress

public double copyProgress

metaDataMap

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

RecoveryStatus

public RecoveryStatus()

RecoveryStatus

public RecoveryStatus(java.lang.String host,
                      java.lang.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>

clone

@Deprecated
public RecoveryStatus clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getHost

public java.lang.String getHost()

setHost

public RecoveryStatus setHost(java.lang.String host)

unsetHost

public void unsetHost()

isSetHost

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


setHostIsSet

public void setHostIsSet(boolean value)

getName

public java.lang.String getName()

setName

public RecoveryStatus setName(java.lang.String name)

unsetName

public void unsetName()

isSetName

public boolean isSetName()
Returns true if field name is set (has been asigned 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 asigned 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 asigned 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 asigned 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 asigned a value) and false otherwise


setCopyProgressIsSet

public void setCopyProgressIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
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 asigned a value) and false otherwise

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

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(RecoveryStatus that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

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

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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

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


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.