edu.stolaf.cs.wmrserver.thrift
Class JobStatus

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

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

See Also:
Serialized Form

Nested Class Summary
static class JobStatus._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<JobStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
JobStatus()
           
JobStatus(JobInfo info, State state)
           
JobStatus(JobStatus other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
           
 int compareTo(JobStatus other)
           
 JobStatus deepCopy()
           
 boolean equals(JobStatus that)
           
 boolean equals(java.lang.Object that)
           
 JobStatus._Fields fieldForId(int fieldId)
           
 java.lang.Object getFieldValue(JobStatus._Fields field)
           
 JobInfo getInfo()
           
 PhaseStatus getMapStatus()
           
 PhaseStatus getReduceStatus()
           
 State getState()
           
 int hashCode()
           
 boolean isSet(JobStatus._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetInfo()
          Returns true if field info is set (has been assigned a value) and false otherwise
 boolean isSetMapStatus()
          Returns true if field mapStatus is set (has been assigned a value) and false otherwise
 boolean isSetReduceStatus()
          Returns true if field reduceStatus 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
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(JobStatus._Fields field, java.lang.Object value)
           
 void setInfo(JobInfo info)
           
 void setInfoIsSet(boolean value)
           
 void setMapStatus(PhaseStatus mapStatus)
           
 void setMapStatusIsSet(boolean value)
           
 void setReduceStatus(PhaseStatus reduceStatus)
           
 void setReduceStatusIsSet(boolean value)
           
 void setState(State state)
           
 void setStateIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetInfo()
           
 void unsetMapStatus()
           
 void unsetReduceStatus()
           
 void unsetState()
           
 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<JobStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

JobStatus

public JobStatus()

JobStatus

public JobStatus(JobInfo info,
                 State state)

JobStatus

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

Method Detail

deepCopy

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

clear

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

getInfo

public JobInfo getInfo()

setInfo

public void setInfo(JobInfo info)

unsetInfo

public void unsetInfo()

isSetInfo

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


setInfoIsSet

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

getMapStatus

public PhaseStatus getMapStatus()

setMapStatus

public void setMapStatus(PhaseStatus mapStatus)

unsetMapStatus

public void unsetMapStatus()

isSetMapStatus

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


setMapStatusIsSet

public void setMapStatusIsSet(boolean value)

getReduceStatus

public PhaseStatus getReduceStatus()

setReduceStatus

public void setReduceStatus(PhaseStatus reduceStatus)

unsetReduceStatus

public void unsetReduceStatus()

isSetReduceStatus

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


setReduceStatusIsSet

public void setReduceStatusIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(JobStatus that)

hashCode

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

compareTo

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

fieldForId

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