edu.stolaf.cs.wmrserver.thrift
Class PhaseStatus

java.lang.Object
  extended by edu.stolaf.cs.wmrserver.thrift.PhaseStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<PhaseStatus>, org.apache.thrift.TBase<PhaseStatus,PhaseStatus._Fields>

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

If #output is not set and outputPages > 0, then call JobService#getOutput() to get the first page.

See Also:
Serialized Form

Nested Class Summary
static class PhaseStatus._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<PhaseStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
PhaseStatus()
           
PhaseStatus(double progress, State state)
           
PhaseStatus(PhaseStatus other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
           
 int compareTo(PhaseStatus other)
           
 PhaseStatus deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(PhaseStatus that)
           
 PhaseStatus._Fields fieldForId(int fieldId)
           
 int getCode()
           
 java.lang.String getErrors()
           
 java.lang.Object getFieldValue(PhaseStatus._Fields field)
           
 java.lang.String getOutput()
           
 java.lang.String getOutputPath()
           
 double getProgress()
           
 State getState()
           
 int getTotalTasks()
           
 int hashCode()
           
 boolean isSet(PhaseStatus._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCode()
          Returns true if field code is set (has been assigned a value) and false otherwise
 boolean isSetErrors()
          Returns true if field errors is set (has been assigned a value) and false otherwise
 boolean isSetOutput()
          Returns true if field output is set (has been assigned a value) and false otherwise
 boolean isSetOutputPath()
          Returns true if field outputPath is set (has been assigned a value) and false otherwise
 boolean isSetProgress()
          Returns true if field progress is set (has been assigned a value) and false otherwise
 boolean isSetState()
          Returns true if field state is set (has been assigned a value) and false otherwise
 boolean isSetTotalTasks()
          Returns true if field totalTasks is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setCode(int code)
           
 void setCodeIsSet(boolean value)
           
 void setErrors(java.lang.String errors)
           
 void setErrorsIsSet(boolean value)
           
 void setFieldValue(PhaseStatus._Fields field, java.lang.Object value)
           
 void setOutput(java.lang.String output)
           
 void setOutputIsSet(boolean value)
           
 void setOutputPath(java.lang.String outputPath)
           
 void setOutputPathIsSet(boolean value)
           
 void setProgress(double progress)
           
 void setProgressIsSet(boolean value)
           
 void setState(State state)
           
 void setStateIsSet(boolean value)
           
 void setTotalTasks(int totalTasks)
           
 void setTotalTasksIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetCode()
           
 void unsetErrors()
           
 void unsetOutput()
           
 void unsetOutputPath()
           
 void unsetProgress()
           
 void unsetState()
           
 void unsetTotalTasks()
           
 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

metaDataMap

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

PhaseStatus

public PhaseStatus()

PhaseStatus

public PhaseStatus(double progress,
                   State state)

PhaseStatus

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

Method Detail

deepCopy

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

clear

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

getProgress

public double getProgress()

setProgress

public void 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)

getState

public State getState()
See Also:
State

setState

public void setState(State state)
See Also:
State

unsetState

public void unsetState()

isSetState

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


setStateIsSet

public void setStateIsSet(boolean value)

getCode

public int getCode()

setCode

public void setCode(int code)

unsetCode

public void unsetCode()

isSetCode

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


setCodeIsSet

public void setCodeIsSet(boolean value)

getOutput

public java.lang.String getOutput()

setOutput

public void setOutput(java.lang.String output)

unsetOutput

public void unsetOutput()

isSetOutput

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


setOutputIsSet

public void setOutputIsSet(boolean value)

getOutputPath

public java.lang.String getOutputPath()

setOutputPath

public void setOutputPath(java.lang.String outputPath)

unsetOutputPath

public void unsetOutputPath()

isSetOutputPath

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


setOutputPathIsSet

public void setOutputPathIsSet(boolean value)

getErrors

public java.lang.String getErrors()

setErrors

public void setErrors(java.lang.String errors)

unsetErrors

public void unsetErrors()

isSetErrors

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


setErrorsIsSet

public void setErrorsIsSet(boolean value)

getTotalTasks

public int getTotalTasks()

setTotalTasks

public void setTotalTasks(int totalTasks)

unsetTotalTasks

public void unsetTotalTasks()

isSetTotalTasks

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


setTotalTasksIsSet

public void setTotalTasksIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(PhaseStatus that)

hashCode

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

compareTo

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

fieldForId

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