|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hama.bsp.QueueManager
public class QueueManager
A BSPJob Queue Manager.
Constructor Summary | |
---|---|
QueueManager(org.apache.hadoop.conf.Configuration conf)
|
Method Summary | |
---|---|
void |
addJob(String name,
org.apache.hama.bsp.JobInProgress job)
Add a job to the specified queue. |
void |
createFCFSQueue(String name)
Create a FCFS queue with the name provided. |
Queue<org.apache.hama.bsp.JobInProgress> |
findQueue(String name)
Find Queue according to the name specified. |
void |
initJob(org.apache.hama.bsp.JobInProgress job)
Initialize a job. |
void |
moveJob(String from,
String to,
org.apache.hama.bsp.JobInProgress job)
Move a job from a queue to another. |
void |
removeJob(String name,
org.apache.hama.bsp.JobInProgress job)
Remove a job from the head of a designated queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueueManager(org.apache.hadoop.conf.Configuration conf)
Method Detail |
---|
public void initJob(org.apache.hama.bsp.JobInProgress job)
job
- required initialzied.public void addJob(String name, org.apache.hama.bsp.JobInProgress job)
name
- of the queue.job
- to be added.public void removeJob(String name, org.apache.hama.bsp.JobInProgress job)
name
- from which a job is removed.job
- to be removed from the queue.public void moveJob(String from, String to, org.apache.hama.bsp.JobInProgress job)
from
- a queue a job is to be removed.to
- a queue a job is to be added.public void createFCFSQueue(String name)
name
- of the queue.public Queue<org.apache.hama.bsp.JobInProgress> findQueue(String name)
name
- of the queue.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |