Package org.simoes.lpd.common

Examples of org.simoes.lpd.common.PrintJob


   
    /** remove print job from queue.
     * @return PrintJob from the queue or null if it was not found
     */
    public PrintJob remove(long id) throws ObjectNotFoundException {
    PrintJob rval = null;
    try {
        rval = (PrintJob)queue.remove(id);
    } catch (ObjectNotFoundException objectNotFoundException) {
        log.info("print job for id[" + id + "] was not found in the queue[" + queue.getName() + "]");
        throw objectNotFoundException;
View Full Code Here


    final String METHOD_NAME = "getNextPrintJob(): ";
    QueuedPrintJob rval = null;
    try {
      QueuedObject queuedObject = (QueuedObject)queue.getNext();
      long queueId = queuedObject.getId();
      PrintJob printJob = (PrintJob)queuedObject.getObject();
      // create a clone of the PrintJob for our return value
      rval = new QueuedPrintJob(queueId, (PrintJob)printJob.clone());
    } catch (ObjectNotFoundException e) {
      log.info(METHOD_NAME + e.getMessage());
      throw e;
    }
    return rval;
View Full Code Here

   
  /** remove print job from queue.
   * @return print job from the queue or null if it was not found
   */
  public PrintJob remove(long id) {
    PrintJob rval = null;
    try {
      rval = (PrintJob)queue.remove(id);
    } catch (ObjectNotFoundException objectNotFoundException) {
      log.info("print job for id[" + id + "] was not found in the queue[" + queue.getName() + "]");
    }
View Full Code Here

TOP

Related Classes of org.simoes.lpd.common.PrintJob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.