@InterfaceAudience.Public @InterfaceStability.Evolving public class QueueInfo extends Object implements Writable
Constructor and Description |
---|
QueueInfo()
Default constructor for QueueInfo.
|
QueueInfo(String queueName,
String schedulingInfo)
Construct a new QueueInfo object using the queue name and the
scheduling information passed.
|
QueueInfo(String queueName,
String schedulingInfo,
QueueState state,
JobStatus[] stats) |
Modifier and Type | Method and Description |
---|---|
JobStatus[] |
getJobStatuses()
Get the jobs submitted to queue
|
Properties |
getProperties()
Get properties.
|
List<QueueInfo> |
getQueueChildren()
Get immediate children.
|
String |
getQueueName()
Get the queue name from JobQueueInfo
|
String |
getSchedulingInfo()
Gets the scheduling information associated to particular job queue.
|
QueueState |
getState()
Return the queue state
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
protected void |
setJobStatuses(JobStatus[] stats) |
protected void |
setProperties(Properties props) |
protected void |
setQueueChildren(List<QueueInfo> children) |
protected void |
setQueueName(String queueName)
Set the queue name of the JobQueueInfo
|
protected void |
setSchedulingInfo(String schedulingInfo)
Set the scheduling information associated to particular job queue
|
protected void |
setState(QueueState state)
Set the state of the queue
|
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public QueueInfo()
public QueueInfo(String queueName, String schedulingInfo)
queueName
- Name of the job queueschedulingInfo
- Scheduling Information associated with the job
queuepublic QueueInfo(String queueName, String schedulingInfo, QueueState state, JobStatus[] stats)
queueName
- schedulingInfo
- state
- stats
- protected void setQueueName(String queueName)
queueName
- Name of the job queue.public String getQueueName()
protected void setSchedulingInfo(String schedulingInfo)
schedulingInfo
- public String getSchedulingInfo()
protected void setState(QueueState state)
state
- state of the queue.public QueueState getState()
protected void setJobStatuses(JobStatus[] stats)
public List<QueueInfo> getQueueChildren()
public Properties getProperties()
protected void setProperties(Properties props)
public JobStatus[] getJobStatuses()
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
Copyright © 2017 Apache Software Foundation. All rights reserved.