Class RecoveryStatus
- java.lang.Object
-
- org.apache.accumulo.core.master.thrift.RecoveryStatus
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<RecoveryStatus>,org.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>,org.apache.thrift.TSerializable
public class RecoveryStatus extends Object implements org.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>, Serializable, Cloneable, Comparable<RecoveryStatus>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecoveryStatus._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description static Map<RecoveryStatus._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringnamedoubleprogressintruntime
-
Constructor Summary
Constructors Constructor Description RecoveryStatus()RecoveryStatus(String name, int runtime, double progress)RecoveryStatus(RecoveryStatus other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(RecoveryStatus other)RecoveryStatusdeepCopy()booleanequals(Object that)booleanequals(RecoveryStatus that)RecoveryStatus._FieldsfieldForId(int fieldId)ObjectgetFieldValue(RecoveryStatus._Fields field)StringgetName()doublegetProgress()intgetRuntime()inthashCode()booleanisSet(RecoveryStatus._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetName()Returns true if field name is set (has been assigned a value) and false otherwisebooleanisSetProgress()Returns true if field progress is set (has been assigned a value) and false otherwisebooleanisSetRuntime()Returns true if field runtime is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(RecoveryStatus._Fields field, Object value)RecoveryStatussetName(String name)voidsetNameIsSet(boolean value)RecoveryStatussetProgress(double progress)voidsetProgressIsSet(boolean value)RecoveryStatussetRuntime(int runtime)voidsetRuntimeIsSet(boolean value)StringtoString()voidunsetName()voidunsetProgress()voidunsetRuntime()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
name
public String name
-
runtime
public int runtime
-
progress
public double progress
-
metaDataMap
public static final Map<RecoveryStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
RecoveryStatus
public RecoveryStatus()
-
RecoveryStatus
public RecoveryStatus(String name, int runtime, double progress)
-
RecoveryStatus
public RecoveryStatus(RecoveryStatus other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public RecoveryStatus deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>
-
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)
-
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)
-
getProgress
public double getProgress()
-
setProgress
public RecoveryStatus setProgress(double progress)
-
unsetProgress
public void unsetProgress()
-
isSetProgress
public boolean isSetProgress()
Returns true if field progress is set (has been assigned a value) and false otherwise
-
setProgressIsSet
public void setProgressIsSet(boolean value)
-
setFieldValue
public void setFieldValue(RecoveryStatus._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>
-
getFieldValue
public Object getFieldValue(RecoveryStatus._Fields field)
- Specified by:
getFieldValuein interfaceorg.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:
isSetin interfaceorg.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>
-
equals
public boolean equals(RecoveryStatus that)
-
compareTo
public int compareTo(RecoveryStatus other)
- Specified by:
compareToin interfaceComparable<RecoveryStatus>
-
fieldForId
public RecoveryStatus._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<RecoveryStatus,RecoveryStatus._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-