org.apache.hadoop.hive.service
Class HiveClusterStatus

java.lang.Object
  extended by org.apache.hadoop.hive.service.HiveClusterStatus
All Implemented Interfaces:
Serializable, Cloneable, Comparable<HiveClusterStatus>, org.apache.thrift.TBase<HiveClusterStatus,HiveClusterStatus._Fields>

public class HiveClusterStatus
extends Object
implements org.apache.thrift.TBase<HiveClusterStatus,HiveClusterStatus._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class HiveClusterStatus._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<HiveClusterStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
HiveClusterStatus()
           
HiveClusterStatus(HiveClusterStatus other)
          Performs a deep copy on other.
HiveClusterStatus(int taskTrackers, int mapTasks, int reduceTasks, int maxMapTasks, int maxReduceTasks, JobTrackerState state)
           
 
Method Summary
 void clear()
           
 int compareTo(HiveClusterStatus other)
           
 HiveClusterStatus deepCopy()
           
 boolean equals(HiveClusterStatus that)
           
 boolean equals(Object that)
           
 HiveClusterStatus._Fields fieldForId(int fieldId)
           
 Object getFieldValue(HiveClusterStatus._Fields field)
           
 int getMapTasks()
           
 int getMaxMapTasks()
           
 int getMaxReduceTasks()
           
 int getReduceTasks()
           
 JobTrackerState getState()
           
 int getTaskTrackers()
           
 int hashCode()
           
 boolean isSet(HiveClusterStatus._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetMapTasks()
          Returns true if field mapTasks is set (has been assigned a value) and false otherwise
 boolean isSetMaxMapTasks()
          Returns true if field maxMapTasks is set (has been assigned a value) and false otherwise
 boolean isSetMaxReduceTasks()
          Returns true if field maxReduceTasks is set (has been assigned a value) and false otherwise
 boolean isSetReduceTasks()
          Returns true if field reduceTasks 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 isSetTaskTrackers()
          Returns true if field taskTrackers is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(HiveClusterStatus._Fields field, Object value)
           
 void setMapTasks(int mapTasks)
           
 void setMapTasksIsSet(boolean value)
           
 void setMaxMapTasks(int maxMapTasks)
           
 void setMaxMapTasksIsSet(boolean value)
           
 void setMaxReduceTasks(int maxReduceTasks)
           
 void setMaxReduceTasksIsSet(boolean value)
           
 void setReduceTasks(int reduceTasks)
           
 void setReduceTasksIsSet(boolean value)
           
 void setState(JobTrackerState state)
           
 void setStateIsSet(boolean value)
           
 void setTaskTrackers(int taskTrackers)
           
 void setTaskTrackersIsSet(boolean value)
           
 String toString()
           
 void unsetMapTasks()
           
 void unsetMaxMapTasks()
           
 void unsetMaxReduceTasks()
           
 void unsetReduceTasks()
           
 void unsetState()
           
 void unsetTaskTrackers()
           
 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 Map<HiveClusterStatus._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

HiveClusterStatus

public HiveClusterStatus()

HiveClusterStatus

public HiveClusterStatus(int taskTrackers,
                         int mapTasks,
                         int reduceTasks,
                         int maxMapTasks,
                         int maxReduceTasks,
                         JobTrackerState state)

HiveClusterStatus

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

Method Detail

deepCopy

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

clear

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

getTaskTrackers

public int getTaskTrackers()

setTaskTrackers

public void setTaskTrackers(int taskTrackers)

unsetTaskTrackers

public void unsetTaskTrackers()

isSetTaskTrackers

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


setTaskTrackersIsSet

public void setTaskTrackersIsSet(boolean value)

getMapTasks

public int getMapTasks()

setMapTasks

public void setMapTasks(int mapTasks)

unsetMapTasks

public void unsetMapTasks()

isSetMapTasks

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


setMapTasksIsSet

public void setMapTasksIsSet(boolean value)

getReduceTasks

public int getReduceTasks()

setReduceTasks

public void setReduceTasks(int reduceTasks)

unsetReduceTasks

public void unsetReduceTasks()

isSetReduceTasks

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


setReduceTasksIsSet

public void setReduceTasksIsSet(boolean value)

getMaxMapTasks

public int getMaxMapTasks()

setMaxMapTasks

public void setMaxMapTasks(int maxMapTasks)

unsetMaxMapTasks

public void unsetMaxMapTasks()

isSetMaxMapTasks

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


setMaxMapTasksIsSet

public void setMaxMapTasksIsSet(boolean value)

getMaxReduceTasks

public int getMaxReduceTasks()

setMaxReduceTasks

public void setMaxReduceTasks(int maxReduceTasks)

unsetMaxReduceTasks

public void unsetMaxReduceTasks()

isSetMaxReduceTasks

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


setMaxReduceTasksIsSet

public void setMaxReduceTasksIsSet(boolean value)

getState

public JobTrackerState getState()
See Also:
JobTrackerState

setState

public void setState(JobTrackerState state)
See Also:
JobTrackerState

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)

setFieldValue

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

getFieldValue

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

isSet

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

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(HiveClusterStatus that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(HiveClusterStatus other)
Specified by:
compareTo in interface Comparable<HiveClusterStatus>

fieldForId

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

toString

public String toString()
Overrides:
toString in class Object

validate

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


Copyright © 2013 The Apache Software Foundation