org.simoes.lpd.handler
Class QueueMonitor

java.lang.Object
  extended byorg.simoes.lpd.handler.QueueMonitor
All Implemented Interfaces:
java.lang.Runnable

public class QueueMonitor
extends java.lang.Object
implements java.lang.Runnable

Watches the PrintQueue and removes jobs as they appear there. The jobs are passed on to the proper handler.

Author:
Chris Simoes

Constructor Summary
QueueMonitor(java.lang.String queueName)
          Create a QueueMonitor.
 
Method Summary
 java.lang.String getQueueName()
           
 void run()
          Watches the PrintQueue and process PrintJobs as they become available.
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueMonitor

public QueueMonitor(java.lang.String queueName)
             throws QueueException
Create a QueueMonitor.

Parameters:
queueName - the queue we will be monitoring.
Method Detail

stop

public void stop()

getQueueName

public java.lang.String getQueueName()

run

public void run()
Watches the PrintQueue and process PrintJobs as they become available. If there is an error processing a PrintJob then The PrintJob is left in the PrintQueue.

Specified by:
run in interface java.lang.Runnable