org.apache.hadoop.mapred
Class JobQueueInfo

java.lang.Object
  extended by org.apache.hadoop.mapred.JobQueueInfo
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class JobQueueInfo
extends java.lang.Object
implements org.apache.hadoop.io.Writable

Class that contains the information regarding the Job Queues which are maintained by the Hadoop Map/Reduce framework.


Constructor Summary
JobQueueInfo()
           
JobQueueInfo(java.lang.String queueName, java.lang.String schedulingInfo)
          Construct a new JobQueueInfo object using the queue name and the scheduling information passed.
 
Method Summary
 java.lang.String getQueueName()
          Get the queue name from JobQueueInfo
 java.lang.String getQueueState()
          Return the queue state
 java.lang.String getSchedulingInfo()
          Gets the scheduling information associated to particular job queue.
 void readFields(java.io.DataInput in)
           
 void setQueueName(java.lang.String queueName)
          Set the queue name of the JobQueueInfo
 void setQueueState(java.lang.String state)
          Set the state of the queue
 void setSchedulingInfo(java.lang.String schedulingInfo)
          Set the scheduling information associated to particular job queue
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobQueueInfo

public JobQueueInfo()

JobQueueInfo

public JobQueueInfo(java.lang.String queueName,
                    java.lang.String schedulingInfo)
Construct a new JobQueueInfo object using the queue name and the scheduling information passed.

Parameters:
queueName - Name of the job queue
schedulingInfo - Scheduling Information associated with the job queue
Method Detail

setQueueName

public void setQueueName(java.lang.String queueName)
Set the queue name of the JobQueueInfo

Parameters:
queueName - Name of the job queue.

getQueueName

public java.lang.String getQueueName()
Get the queue name from JobQueueInfo

Returns:
queue name

setSchedulingInfo

public void setSchedulingInfo(java.lang.String schedulingInfo)
Set the scheduling information associated to particular job queue

Parameters:
schedulingInfo -

getSchedulingInfo

public java.lang.String getSchedulingInfo()
Gets the scheduling information associated to particular job queue. If nothing is set would return "N/A"

Returns:
Scheduling information associated to particular Job Queue

setQueueState

public void setQueueState(java.lang.String state)
Set the state of the queue

Parameters:
state - state of the queue.

getQueueState

public java.lang.String getQueueState()
Return the queue state

Returns:
the queue state.

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException


Copyright © 2009 The Apache Software Foundation