org.apache.hadoop.yarn.api.records.impl.pb
Class QueueInfoPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.QueueInfoProto>
      extended by org.apache.hadoop.yarn.api.records.impl.pb.QueueInfoPBImpl
All Implemented Interfaces:
QueueInfo

public class QueueInfoPBImpl
extends ProtoBase<YarnProtos.QueueInfoProto>
implements QueueInfo


Constructor Summary
QueueInfoPBImpl()
           
QueueInfoPBImpl(YarnProtos.QueueInfoProto proto)
           
 
Method Summary
 List<ApplicationReport> getApplications()
          Get the running applications of the queue.
 float getCapacity()
          Get the configured capacity of the queue.
 List<QueueInfo> getChildQueues()
          Get the child queues of the queue.
 float getCurrentCapacity()
          Get the current capacity of the queue.
 float getMaximumCapacity()
          Get the maximum capacity of the queue.
 YarnProtos.QueueInfoProto getProto()
           
 String getQueueName()
          Get the name of the queue.
 QueueState getQueueState()
          Get the QueueState of the queue.
 void setApplications(List<ApplicationReport> applications)
           
 void setCapacity(float capacity)
           
 void setChildQueues(List<QueueInfo> childQueues)
           
 void setCurrentCapacity(float currentCapacity)
           
 void setMaximumCapacity(float maximumCapacity)
           
 void setQueueName(String queueName)
           
 void setQueueState(QueueState queueState)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueueInfoPBImpl

public QueueInfoPBImpl()

QueueInfoPBImpl

public QueueInfoPBImpl(YarnProtos.QueueInfoProto proto)
Method Detail

getApplications

public List<ApplicationReport> getApplications()
Description copied from interface: QueueInfo
Get the running applications of the queue.

Specified by:
getApplications in interface QueueInfo
Returns:
running applications of the queue

getCapacity

public float getCapacity()
Description copied from interface: QueueInfo
Get the configured capacity of the queue.

Specified by:
getCapacity in interface QueueInfo
Returns:
configured capacity of the queue

getChildQueues

public List<QueueInfo> getChildQueues()
Description copied from interface: QueueInfo
Get the child queues of the queue.

Specified by:
getChildQueues in interface QueueInfo
Returns:
child queues of the queue

getCurrentCapacity

public float getCurrentCapacity()
Description copied from interface: QueueInfo
Get the current capacity of the queue.

Specified by:
getCurrentCapacity in interface QueueInfo
Returns:
current capacity of the queue

getMaximumCapacity

public float getMaximumCapacity()
Description copied from interface: QueueInfo
Get the maximum capacity of the queue.

Specified by:
getMaximumCapacity in interface QueueInfo
Returns:
maximum capacity of the queue

getQueueName

public String getQueueName()
Description copied from interface: QueueInfo
Get the name of the queue.

Specified by:
getQueueName in interface QueueInfo
Returns:
name of the queue

getQueueState

public QueueState getQueueState()
Description copied from interface: QueueInfo
Get the QueueState of the queue.

Specified by:
getQueueState in interface QueueInfo
Returns:
QueueState of the queue

setApplications

public void setApplications(List<ApplicationReport> applications)
Specified by:
setApplications in interface QueueInfo

setCapacity

public void setCapacity(float capacity)
Specified by:
setCapacity in interface QueueInfo

setChildQueues

public void setChildQueues(List<QueueInfo> childQueues)
Specified by:
setChildQueues in interface QueueInfo

setCurrentCapacity

public void setCurrentCapacity(float currentCapacity)
Specified by:
setCurrentCapacity in interface QueueInfo

setMaximumCapacity

public void setMaximumCapacity(float maximumCapacity)
Specified by:
setMaximumCapacity in interface QueueInfo

setQueueName

public void setQueueName(String queueName)
Specified by:
setQueueName in interface QueueInfo

setQueueState

public void setQueueState(QueueState queueState)
Specified by:
setQueueState in interface QueueInfo

getProto

public YarnProtos.QueueInfoProto getProto()
Specified by:
getProto in class ProtoBase<YarnProtos.QueueInfoProto>


Copyright © 2012 Apache Software Foundation. All Rights Reserved.