public enum JobState extends Enum<JobState>
+----> canceled / +----> pending -------> processing ---------+------> completed | ^ ^ \ --->+ | | +----> aborted | v v / +----> pending-held processing-stopped ---+
| Enum Constant and Description |
|---|
ABORTED
The Job has been aborted by the system,
usually while the Job was in the 'processing' or
'processing-stopped' state, and the Printer has
completed aborting the Job; all Job Status attributes
have reached their final values for the Job.
|
CANCELED
The Job has been canceled by a Cancel-Job
operation, and the Printer has completed canceling the
Job.
|
COMPLETED
The Job has completed successfully or with
warnings or errors after processing, all of the Job
Media Sheets have been successfully stacked in the
appropriate output bin(s), and all Job Status attributes
have reached their final values for the Job.
|
PENDING
The Job is a candidate to start processing
but is not yet processing.
|
PENDING_HELD
The Job is not a candidate for
processing for any number of reasons but will return to
the 'pending' state as soon as the reasons are no longer
present.
|
PROCESSING
One or more of the following: (1) the Job
is using, or is attempting to use, one or more purely
software processes that are analyzing, creating, or
interpreting a PDL, etc.; (2) the Job is using, or is
attempting to use, one or more hardware devices that are
interpreting a PDL; making marks on a medium; and/or
performing finishing, such as stapling, etc.; (3) the
Printer has made the Job ready for printing, but the
Output Device is not yet printing it, either because the
Job hasn't reached the Output Device or because the Job
is queued in the Output Device or some other spooler,
waiting for the Output Device to print it.
|
PROCESSING_STOPPED
The Job has stopped while
processing for any number of reasons and will return to
the 'processing' state as soon as the reasons are no
longer present.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getState()
Gets the represenation of the state as 32 bit integer.
|
static JobState |
of(int value)
Allows you to map a int value to the corresponding state.
|
static JobState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobState PENDING
public static final JobState PENDING_HELD
public static final JobState PROCESSING
public static final JobState PROCESSING_STOPPED
public static final JobState CANCELED
public static final JobState ABORTED
public static final JobState COMPLETED
public static JobState[] values()
for (JobState c : JobState.values()) System.out.println(c);
public static JobState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getState()
public static JobState of(int value)
value - e.g. 5Copyright © 2018. All rights reserved.