org.apache.accumulo.core.gc.thrift
Class GcCycleStats

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

public class GcCycleStats
extends java.lang.Object
implements org.apache.thrift.TBase<GcCycleStats,GcCycleStats._Fields>, java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Nested Class Summary
static class GcCycleStats._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 long candidates
           
 long deleted
           
 long errors
           
 long finished
           
 long inUse
           
static java.util.Map<GcCycleStats._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 long started
           
 
Constructor Summary
GcCycleStats()
           
GcCycleStats(GcCycleStats other)
          Performs a deep copy on other.
GcCycleStats(long started, long finished, long candidates, long inUse, long deleted, long errors)
           
 
Method Summary
 GcCycleStats clone()
          Deprecated. 
 int compareTo(GcCycleStats other)
           
 GcCycleStats deepCopy()
           
 boolean equals(GcCycleStats that)
           
 boolean equals(java.lang.Object that)
           
 long getCandidates()
           
 long getDeleted()
           
 long getErrors()
           
 java.lang.Object getFieldValue(GcCycleStats._Fields field)
           
 java.lang.Object getFieldValue(int fieldId)
           
 long getFinished()
           
 long getInUse()
           
 long getStarted()
           
 int hashCode()
           
 boolean isSet(GcCycleStats._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSet(int fieldID)
           
 boolean isSetCandidates()
          Returns true if field candidates is set (has been asigned a value) and false otherwise
 boolean isSetDeleted()
          Returns true if field deleted is set (has been asigned a value) and false otherwise
 boolean isSetErrors()
          Returns true if field errors is set (has been asigned a value) and false otherwise
 boolean isSetFinished()
          Returns true if field finished is set (has been asigned a value) and false otherwise
 boolean isSetInUse()
          Returns true if field inUse is set (has been asigned a value) and false otherwise
 boolean isSetStarted()
          Returns true if field started is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 GcCycleStats setCandidates(long candidates)
           
 void setCandidatesIsSet(boolean value)
           
 GcCycleStats setDeleted(long deleted)
           
 void setDeletedIsSet(boolean value)
           
 GcCycleStats setErrors(long errors)
           
 void setErrorsIsSet(boolean value)
           
 void setFieldValue(GcCycleStats._Fields field, java.lang.Object value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 GcCycleStats setFinished(long finished)
           
 void setFinishedIsSet(boolean value)
           
 GcCycleStats setInUse(long inUse)
           
 void setInUseIsSet(boolean value)
           
 GcCycleStats setStarted(long started)
           
 void setStartedIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetCandidates()
           
 void unsetDeleted()
           
 void unsetErrors()
           
 void unsetFinished()
           
 void unsetInUse()
           
 void unsetStarted()
           
 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

started

public long started

finished

public long finished

candidates

public long candidates

inUse

public long inUse

deleted

public long deleted

errors

public long errors

metaDataMap

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

GcCycleStats

public GcCycleStats()

GcCycleStats

public GcCycleStats(long started,
                    long finished,
                    long candidates,
                    long inUse,
                    long deleted,
                    long errors)

GcCycleStats

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

Method Detail

deepCopy

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

clone

@Deprecated
public GcCycleStats clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getStarted

public long getStarted()

setStarted

public GcCycleStats setStarted(long started)

unsetStarted

public void unsetStarted()

isSetStarted

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


setStartedIsSet

public void setStartedIsSet(boolean value)

getFinished

public long getFinished()

setFinished

public GcCycleStats setFinished(long finished)

unsetFinished

public void unsetFinished()

isSetFinished

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


setFinishedIsSet

public void setFinishedIsSet(boolean value)

getCandidates

public long getCandidates()

setCandidates

public GcCycleStats setCandidates(long candidates)

unsetCandidates

public void unsetCandidates()

isSetCandidates

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


setCandidatesIsSet

public void setCandidatesIsSet(boolean value)

getInUse

public long getInUse()

setInUse

public GcCycleStats setInUse(long inUse)

unsetInUse

public void unsetInUse()

isSetInUse

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


setInUseIsSet

public void setInUseIsSet(boolean value)

getDeleted

public long getDeleted()

setDeleted

public GcCycleStats setDeleted(long deleted)

unsetDeleted

public void unsetDeleted()

isSetDeleted

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


setDeletedIsSet

public void setDeletedIsSet(boolean value)

getErrors

public long getErrors()

setErrors

public GcCycleStats setErrors(long errors)

unsetErrors

public void unsetErrors()

isSetErrors

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


setErrorsIsSet

public void setErrorsIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

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

isSet

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

isSet

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

equals

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

equals

public boolean equals(GcCycleStats that)

hashCode

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

compareTo

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

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<GcCycleStats,GcCycleStats._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<GcCycleStats,GcCycleStats._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.