1 /*
2 * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
59 /**
60 * The job is a candidate to start processing, but is not yet processing.
61 */
62 public static final JobState PENDING = new JobState(3);
63
64 /**
65 * The job is not a candidate for processing for any number of reasons but
66 * will return to the PENDING state as soon as the reasons are no longer
67 * present. The job's {@link JobStateReasons JobStateReasons} attribute must
68 * indicate why the job is no longer a candidate for processing.
69 */
70 public static final JobState PENDING_HELD = new JobState(4);
71
72 /**
73 * The job is processing. One or more of the following activities is
74 * occurring:
75 * <OL TYPE=1>
76 * <LI>
77 * The job is using, or is attempting to use, one or more purely software
78 * processes that are analyzing, creating, or interpreting a PDL, etc.
79 * <P>
80 * <LI>
81 * The job is using, or is attempting to use, one or more hardware
82 * devices that are interpreting a PDL, making marks on a medium, and/or
83 * performing finishing, such as stapling, etc.
84 * <P>
85 * <LI>
86 * The printer has made the job ready for printing, but the output
87 * device is not yet printing it, either because the job hasn't reached the
88 * output device or because the job is queued in the output device or some
89 * other spooler, awaiting the output device to print it.
90 * </OL>
91 * <P>
92 * When the job is in the PROCESSING state, the entire job state includes
93 * the detailed status represented in the printer's {@link PrinterState
94 * PrinterState} and {@link PrinterStateReasons PrinterStateReasons}
95 * attributes.
96 * <P>
97 * Implementations may, though they need not, include additional values in
98 * the job's {@link JobStateReasons JobStateReasons} attribute to indicate
99 * the progress of the job, such as adding the JOB_PRINTING value to
100 * indicate when the output device is actually making marks on paper and/or
101 * the PROCESSING_TO_STOP_POINT value to indicate that the printer is in the
102 * process of canceling or aborting the job.
103 */
104 public static final JobState PROCESSING = new JobState (5);
|
1 /*
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
59 /**
60 * The job is a candidate to start processing, but is not yet processing.
61 */
62 public static final JobState PENDING = new JobState(3);
63
64 /**
65 * The job is not a candidate for processing for any number of reasons but
66 * will return to the PENDING state as soon as the reasons are no longer
67 * present. The job's {@link JobStateReasons JobStateReasons} attribute must
68 * indicate why the job is no longer a candidate for processing.
69 */
70 public static final JobState PENDING_HELD = new JobState(4);
71
72 /**
73 * The job is processing. One or more of the following activities is
74 * occurring:
75 * <OL TYPE=1>
76 * <LI>
77 * The job is using, or is attempting to use, one or more purely software
78 * processes that are analyzing, creating, or interpreting a PDL, etc.
79 *
80 * <LI>
81 * The job is using, or is attempting to use, one or more hardware
82 * devices that are interpreting a PDL, making marks on a medium, and/or
83 * performing finishing, such as stapling, etc.
84 *
85 * <LI>
86 * The printer has made the job ready for printing, but the output
87 * device is not yet printing it, either because the job hasn't reached the
88 * output device or because the job is queued in the output device or some
89 * other spooler, awaiting the output device to print it.
90 * </OL>
91 * <P>
92 * When the job is in the PROCESSING state, the entire job state includes
93 * the detailed status represented in the printer's {@link PrinterState
94 * PrinterState} and {@link PrinterStateReasons PrinterStateReasons}
95 * attributes.
96 * <P>
97 * Implementations may, though they need not, include additional values in
98 * the job's {@link JobStateReasons JobStateReasons} attribute to indicate
99 * the progress of the job, such as adding the JOB_PRINTING value to
100 * indicate when the output device is actually making marks on paper and/or
101 * the PROCESSING_TO_STOP_POINT value to indicate that the printer is in the
102 * process of canceling or aborting the job.
103 */
104 public static final JobState PROCESSING = new JobState (5);
|