Java Doc for JobStateReason.java in  » 6.0-JDK-Core » print » javax » print » attribute » standard » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » print » javax.print.attribute.standard 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.print.attribute.EnumSyntax
      javax.print.attribute.standard.JobStateReason

JobStateReason
public class JobStateReason extends EnumSyntax implements Attribute(Code)
Class JobStateReason is a printing attribute class, an enumeration, that provides additional information about the job's current state, i.e., information that augments the value of the job's JobState JobState attribute. Class JobStateReason defines standard job state reason values. A Print Service implementation only needs to report those job state reasons which are appropriate for the particular implementation; it does not have to report every defined job state reason.

Instances of JobStateReason do not appear in a Print Job's attribute set directly. Rather, a JobStateReasons JobStateReasons attribute appears in the Print Job's attribute set. The JobStateReasons JobStateReasons attribute contains zero, one, or more than one JobStateReason objects which pertain to the Print Job's status. The printer adds a JobStateReason object to the Print Job's JobStateReasons JobStateReasons attribute when the corresponding condition becomes true of the Print Job, and the printer removes the JobStateReason object again when the corresponding condition becomes false, regardless of whether the Print Job's overall JobState JobState also changed.

IPP Compatibility: The category name returned by getName() is the IPP attribute name. The enumeration's integer value is the IPP enum value. The toString() method returns the IPP string representation of the attribute value.


author:
   Alan Kaminsky



Field Summary
final public static  JobStateReasonABORTED_BY_SYSTEM
     The job was aborted by the system.
final public static  JobStateReasonCOMPRESSION_ERROR
     The job was aborted by the system because the printer encountered an error in the document data while decompressing it.
final public static  JobStateReasonDOCUMENT_ACCESS_ERROR
     The Printer could not access one or more documents passed by reference (i.e., the print data representation object is a URL).
final public static  JobStateReasonDOCUMENT_FORMAT_ERROR
     The job was aborted by the system because the printer encountered an error in the document data while processing it.
final public static  JobStateReasonJOB_CANCELED_AT_DEVICE
     The job was canceled by an unidentified local user, i.e., a user at a console at the device.
final public static  JobStateReasonJOB_CANCELED_BY_OPERATOR
     The job was canceled by the operator, i.e., by a user who has been authenticated as having operator privileges (whether local or remote).
final public static  JobStateReasonJOB_CANCELED_BY_USER
     The job was canceled by the owner of the job, i.e., by a user whose authenticated identity is the same as the value of the originating user that created the Print Job, or by some other authorized end-user, such as a member of the job owner's security group.
final public static  JobStateReasonJOB_COMPLETED_SUCCESSFULLY
     The job completed successfully.
final public static  JobStateReasonJOB_COMPLETED_WITH_ERRORS
     The job completed with errors (and possibly warnings too).
final public static  JobStateReasonJOB_COMPLETED_WITH_WARNINGS
     The job completed with warnings.
final public static  JobStateReasonJOB_DATA_INSUFFICIENT
     The printer has created the Print Job, but the printer is expecting additional print data before it can move the job into the PROCESSING state.
final public static  JobStateReasonJOB_HOLD_UNTIL_SPECIFIED
     The value of the job's JobHoldUntil JobHoldUntil attribute was specified with a date-time that is still in the future.
final public static  JobStateReasonJOB_INCOMING
     The printer has created the Print Job, but the printer has not finished accessing or accepting all the print data yet.
final public static  JobStateReasonJOB_INTERPRETING
     The job is in the PROCESSING state, but more specifically, the printer ia interpreting the document data.
final public static  JobStateReasonJOB_OUTGOING
     The printer is transmitting the job to the output device.
final public static  JobStateReasonJOB_PRINTING
     The output device is marking media.
final public static  JobStateReasonJOB_QUEUED
     The job is in the PROCESSING state, but more specifically, the printer has queued the document data.
final public static  JobStateReasonJOB_QUEUED_FOR_MARKER
     The job is in the PENDING_HELD, PENDING, or PROCESSING state, but more specifically, the printer has completed enough processing of the document to be able to start marking and the job is waiting for the marker.
final public static  JobStateReasonJOB_RESTARTABLE
     This job is retained and is currently able to be restarted.
final public static  JobStateReasonJOB_TRANSFORMING
     The job is in the PROCESSING state, but more specifically, the printer is interpreting document data and producing another electronic representation.
final public static  JobStateReasonPRINTER_STOPPED
     The value of the printer's PrinterState PrinterState attribute ia STOPPED.
final public static  JobStateReasonPRINTER_STOPPED_PARTLY
     The value of the printer's PrinterStateReasons PrinterStateReasons attribute contains a PrinterStateReason PrinterStateReason value of STOPPED_PARTLY.
final public static  JobStateReasonPROCESSING_TO_STOP_POINT
     The requester has canceled the job or the printer has aborted the job, but the printer is still performing some actions on the job until a specified stop point occurs or job termination/cleanup is completed.
final public static  JobStateReasonQUEUED_IN_DEVICE
     The job has been forwarded to a device or print system that is unable to send back status.
final public static  JobStateReasonRESOURCES_ARE_NOT_READY
     At least one of the resources needed by the job, such as media, fonts, resource objects, etc., is not ready on any of the physical printers for which the job is a candidate.
final public static  JobStateReasonSERVICE_OFF_LINE
     The printer is off-line and accepting no jobs.
final public static  JobStateReasonSUBMISSION_INTERRUPTED
     The job was not completely submitted for some unforeseen reason.
final public static  JobStateReasonUNSUPPORTED_COMPRESSION
     The job was aborted by the system because the printer determined while attempting to decompress the document's data that the compression is actually not among those supported by the printer.
final public static  JobStateReasonUNSUPPORTED_DOCUMENT_FORMAT
     The job was aborted by the system because the document data's document format (doc flavor) is not among those supported by the printer.

Constructor Summary
protected  JobStateReason(int value)
     Construct a new job state reason enumeration value with the given integer value.

Method Summary
final public  Class<? extends Attribute>getCategory()
     Get the printing attribute class which is to be used as the "category" for this printing attribute value.

For class JobStateReason and any vendor-defined subclasses, the category is class JobStateReason itself.

protected  EnumSyntax[]getEnumValueTable()
     Returns the enumeration value table for class JobStateReason.
final public  StringgetName()
     Get the name of the category of which this attribute value is an instance.
protected  String[]getStringTable()
     Returns the string table for class JobStateReason.

Field Detail
ABORTED_BY_SYSTEM
final public static JobStateReason ABORTED_BY_SYSTEM(Code)
The job was aborted by the system. Either the job (1) is in the process of being aborted, (2) has been aborted by the system and placed in the ABORTED state, or (3) has been aborted by the system and placed in the PENDING_HELD state, so that a user or operator can manually try the job again. This value should be supported.



COMPRESSION_ERROR
final public static JobStateReason COMPRESSION_ERROR(Code)
The job was aborted by the system because the printer encountered an error in the document data while decompressing it. If the printer posts this reason, the document data has already passed any tests that would have led to the UNSUPPORTED_COMPRESSION job state reason.



DOCUMENT_ACCESS_ERROR
final public static JobStateReason DOCUMENT_ACCESS_ERROR(Code)
The Printer could not access one or more documents passed by reference (i.e., the print data representation object is a URL). This reason is intended to cover any file access problem,including file does not exist and access denied because of an access control problem. Whether the printer aborts the job and moves the job to the ABORTED job state or prints all documents that are accessible and moves the job to the COMPLETED job state and adds the COMPLETED_WITH_ERRORS reason to the job's JobStateReasons JobStateReasons attribute depends on implementation and/or site policy. This value should be supported if the printer supports doc flavors with URL print data representation objects.



DOCUMENT_FORMAT_ERROR
final public static JobStateReason DOCUMENT_FORMAT_ERROR(Code)
The job was aborted by the system because the printer encountered an error in the document data while processing it. If the printer posts this reason, the document data has already passed any tests that would have led to the UNSUPPORTED_DOCUMENT_FORMAT job state reason.



JOB_CANCELED_AT_DEVICE
final public static JobStateReason JOB_CANCELED_AT_DEVICE(Code)
The job was canceled by an unidentified local user, i.e., a user at a console at the device. This value should be supported if the implementation supports canceling jobs at the console.



JOB_CANCELED_BY_OPERATOR
final public static JobStateReason JOB_CANCELED_BY_OPERATOR(Code)
The job was canceled by the operator, i.e., by a user who has been authenticated as having operator privileges (whether local or remote). If the security policy is to allow anyone to cancel anyone's job, then this value may be used when the job is canceled by someone other than the owner of the job. For such a security policy, in effect, everyone is an operator as far as canceling jobs is concerned. This value should be supported if the implementation permits canceling by someone other than the owner of the job.



JOB_CANCELED_BY_USER
final public static JobStateReason JOB_CANCELED_BY_USER(Code)
The job was canceled by the owner of the job, i.e., by a user whose authenticated identity is the same as the value of the originating user that created the Print Job, or by some other authorized end-user, such as a member of the job owner's security group. This value should be supported.



JOB_COMPLETED_SUCCESSFULLY
final public static JobStateReason JOB_COMPLETED_SUCCESSFULLY(Code)
The job completed successfully. This value should be supported.



JOB_COMPLETED_WITH_ERRORS
final public static JobStateReason JOB_COMPLETED_WITH_ERRORS(Code)
The job completed with errors (and possibly warnings too). This value should be supported if the implementation detects errors.



JOB_COMPLETED_WITH_WARNINGS
final public static JobStateReason JOB_COMPLETED_WITH_WARNINGS(Code)
The job completed with warnings. This value should be supported if the implementation detects warnings.



JOB_DATA_INSUFFICIENT
final public static JobStateReason JOB_DATA_INSUFFICIENT(Code)
The printer has created the Print Job, but the printer is expecting additional print data before it can move the job into the PROCESSING state. If a printer starts processing before it has received all data, the printer removes the JOB_DATA_INSUFFICIENT reason, but the JOB_INCOMING reason remains. If a printer starts processing after it has received all data, the printer removes the JOB_DATA_INSUFFICIENT and JOB_INCOMING reasons at the same time.



JOB_HOLD_UNTIL_SPECIFIED
final public static JobStateReason JOB_HOLD_UNTIL_SPECIFIED(Code)
The value of the job's JobHoldUntil JobHoldUntil attribute was specified with a date-time that is still in the future. The job must not be a candidate for processing until this reason is removed and there are no other reasons to hold the job. This value should be supported if the JobHoldUntil JobHoldUntil job template attribute is supported.



JOB_INCOMING
final public static JobStateReason JOB_INCOMING(Code)
The printer has created the Print Job, but the printer has not finished accessing or accepting all the print data yet.



JOB_INTERPRETING
final public static JobStateReason JOB_INTERPRETING(Code)
The job is in the PROCESSING state, but more specifically, the printer ia interpreting the document data.



JOB_OUTGOING
final public static JobStateReason JOB_OUTGOING(Code)
The printer is transmitting the job to the output device.



JOB_PRINTING
final public static JobStateReason JOB_PRINTING(Code)
The output device is marking media. This value is useful for printers which spend a great deal of time processing (1) when no marking is happening and then want to show that marking is now happening or (2) when the job is in the process of being canceled or aborted while the job remains in the PROCESSING state, but the marking has not yet stopped so that impression or sheet counts are still increasing for the job.



JOB_QUEUED
final public static JobStateReason JOB_QUEUED(Code)
The job is in the PROCESSING state, but more specifically, the printer has queued the document data.



JOB_QUEUED_FOR_MARKER
final public static JobStateReason JOB_QUEUED_FOR_MARKER(Code)
The job is in the PENDING_HELD, PENDING, or PROCESSING state, but more specifically, the printer has completed enough processing of the document to be able to start marking and the job is waiting for the marker. Systems that require human intervention to release jobs put the job into the PENDING_HELD job state. Systems that automatically select a job to use the marker put the job into the PENDING job state or keep the job in the PROCESSING job state while waiting for the marker, depending on implementation. All implementations put the job into (or back into) the PROCESSING state when marking does begin.



JOB_RESTARTABLE
final public static JobStateReason JOB_RESTARTABLE(Code)
This job is retained and is currently able to be restarted. If JOB_RESTARTABLE is contained in the job's JobStateReasons JobStateReasons attribute, then the printer must accept a request to restart that job. This value should be supported if restarting jobs is supported. [The capability for restarting jobs is not in the Java Print Service API at present.]



JOB_TRANSFORMING
final public static JobStateReason JOB_TRANSFORMING(Code)
The job is in the PROCESSING state, but more specifically, the printer is interpreting document data and producing another electronic representation.



PRINTER_STOPPED
final public static JobStateReason PRINTER_STOPPED(Code)
The value of the printer's PrinterState PrinterState attribute ia STOPPED.



PRINTER_STOPPED_PARTLY
final public static JobStateReason PRINTER_STOPPED_PARTLY(Code)
The value of the printer's PrinterStateReasons PrinterStateReasons attribute contains a PrinterStateReason PrinterStateReason value of STOPPED_PARTLY.



PROCESSING_TO_STOP_POINT
final public static JobStateReason PROCESSING_TO_STOP_POINT(Code)
The requester has canceled the job or the printer has aborted the job, but the printer is still performing some actions on the job until a specified stop point occurs or job termination/cleanup is completed.

If the implementation requires some measurable time to cancel the job in the PROCESSING or PROCESSING_STOPPED job states, the printer must use this reason to indicate that the printer is still performing some actions on the job while the job remains in the PROCESSING or PROCESSING_STOPPED state. After all the job's job description attributes have stopped incrementing, the printer moves the job from the PROCESSING state to the CANCELED or ABORTED job states.




QUEUED_IN_DEVICE
final public static JobStateReason QUEUED_IN_DEVICE(Code)
The job has been forwarded to a device or print system that is unable to send back status. The printer sets the job's JobState JobState attribute to COMPLETED and adds the QUEUED_IN_DEVICE reason to the job's JobStateReasons JobStateReasons attribute to indicate that the printer has no additional information about the job and never will have any better information.



RESOURCES_ARE_NOT_READY
final public static JobStateReason RESOURCES_ARE_NOT_READY(Code)
At least one of the resources needed by the job, such as media, fonts, resource objects, etc., is not ready on any of the physical printers for which the job is a candidate. This condition may be detected when the job is accepted, or subsequently while the job is pending or processing, depending on implementation. The job may remain in its current state or be moved to the PENDING_HELD state, depending on implementation and/or job scheduling policy.



SERVICE_OFF_LINE
final public static JobStateReason SERVICE_OFF_LINE(Code)
The printer is off-line and accepting no jobs. All PENDING jobs are put into the PENDING_HELD state. This situation could be true if the service's or document transform's input is impaired or broken.



SUBMISSION_INTERRUPTED
final public static JobStateReason SUBMISSION_INTERRUPTED(Code)
The job was not completely submitted for some unforeseen reason. Possibilities include (1) the printer has crashed before the job was fully submitted by the client, (2) the printer or the document transfer method has crashed in some non-recoverable way before the document data was entirely transferred to the printer, (3) the client crashed before the job was fully submitted.



UNSUPPORTED_COMPRESSION
final public static JobStateReason UNSUPPORTED_COMPRESSION(Code)
The job was aborted by the system because the printer determined while attempting to decompress the document's data that the compression is actually not among those supported by the printer. This value must be supported, since Compression Compression is a required doc description attribute.



UNSUPPORTED_DOCUMENT_FORMAT
final public static JobStateReason UNSUPPORTED_DOCUMENT_FORMAT(Code)
The job was aborted by the system because the document data's document format (doc flavor) is not among those supported by the printer. If the client specifies a doc flavor with a MIME type of "application/octet-stream", the printer may abort the job if the printer cannot determine the document data's actual format through auto-sensing (even if the printer supports the document format if specified explicitly). This value must be supported, since a doc flavor is required to be specified for each doc.




Constructor Detail
JobStateReason
protected JobStateReason(int value)(Code)
Construct a new job state reason enumeration value with the given integer value.
Parameters:
  value - Integer value.




Method Detail
getCategory
final public Class<? extends Attribute> getCategory()(Code)
Get the printing attribute class which is to be used as the "category" for this printing attribute value.

For class JobStateReason and any vendor-defined subclasses, the category is class JobStateReason itself. Printing attribute class (category), an instance of classjava.lang.Class java.lang.Class.




getEnumValueTable
protected EnumSyntax[] getEnumValueTable()(Code)
Returns the enumeration value table for class JobStateReason.



getName
final public String getName()(Code)
Get the name of the category of which this attribute value is an instance.

For class JobStateReason and any vendor-defined subclasses, the category name is "job-state-reason". Attribute category name.




getStringTable
protected String[] getStringTable()(Code)
Returns the string table for class JobStateReason.



Methods inherited from javax.print.attribute.EnumSyntax
public Object clone()(Code)(Java Doc)
protected EnumSyntax[] getEnumValueTable()(Code)(Java Doc)
protected int getOffset()(Code)(Java Doc)
protected String[] getStringTable()(Code)(Java Doc)
public int getValue()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
protected Object readResolve() throws ObjectStreamException(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.