|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simoes.lpd.util.Queues
This class maintains all of the Print queues and contains all of the logic for performing operations on them.
Method Summary | |
void |
addPrintJob(java.lang.String queueName,
PrintJob printJob)
Adds a printJob to the queue specified by queueName. |
void |
createQueue(java.lang.String queueName)
Creates a Print Queue with the name passed in |
PrintQueue |
createQueueWithTableModel(java.lang.String queueName,
PrintJobTableModel tableModel)
Creates a Print Queue with the name passed in and creates a TableModel for the GUI. |
static Queues |
getInstance()
This class is a singleton. |
QueuedPrintJob |
getNextPrintJob(java.lang.String queueName)
|
Lock |
getQueueLock(java.lang.String queueName)
|
int |
getQueueSize(java.lang.String queueName)
|
java.util.List |
listAllPrintJobs(java.lang.String queueName)
Returns a List of all print jobs in the Queue. |
void |
removeAllPrintJobs(java.lang.String queueName)
Deletes all printJobs for this queue. |
void |
removePrintJob(java.lang.String queueName,
java.lang.String user,
java.lang.String jobNumber)
Removes a printJob based on queueName and the jobNumber. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Queues getInstance()
public void createQueue(java.lang.String queueName) throws QueueException
queueName
- - the name of the print queue
QueueException
public PrintQueue createQueueWithTableModel(java.lang.String queueName, PrintJobTableModel tableModel) throws QueueException
queueName
- - the name of the print queuetableModel
- - the TableModel passed to the View
QueueException
public void addPrintJob(java.lang.String queueName, PrintJob printJob) throws QueueException
queueName
- - the name of the print queueprintJob
- - the printJob added to the print queue
QueueException
public void removePrintJob(java.lang.String queueName, java.lang.String user, java.lang.String jobNumber) throws QueueException
queueName
- - the name of the print queueuser
- - the user trying to delete the print jobjobNumber
- - the print job number assigned by the Queue
QueueException
public void removeAllPrintJobs(java.lang.String queueName) throws QueueException
queueName
- - the name of the print queue
QueueException
public java.util.List listAllPrintJobs(java.lang.String queueName) throws QueueException
List
of all print jobs in the Queue.
queueName
- the name of the queue we are wanting to list
QueueException
- thrown if we have problems getting the queue listpublic int getQueueSize(java.lang.String queueName) throws QueueException
QueueException
public Lock getQueueLock(java.lang.String queueName) throws QueueException
QueueException
public QueuedPrintJob getNextPrintJob(java.lang.String queueName) throws QueueException
QueueException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |