|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a central storage and queueing mechanism that enables users to create jobs that are added to the queue. QMSQueue is responsible for managing jobs placed in the queue. The jobs can be serviced remotely by an application at another node on the network.
Attribute IDs of a Queue include only the State attribute. There are only three State flags defined: QS_CANT_ADD_JOBS, QS_CANT_SERVICE_JOBS, AND QS_SERVERS_CANT_ATTACH.
QMSJob
Field Summary | |
static int |
OT_ARCHIVE_QUEUE
Bindery object type associated with an archive queue. |
static int |
OT_JOB_QUEUE
Bindery object type associated with a job queue. |
static int |
OT_PRINT_QUEUE
Bindery object type associated with a print queue (used by NetWare print queue services). |
static int |
QS_CANT_ADD_JOBS
Queue state flag (if set) indicating that adding jobs is not allowed. |
static int |
QS_CANT_SERVICE_JOBS
Queue state flag (if set) indicating that servers are not allowed to service jobs in the queue. |
static int |
QS_SERVERS_CANT_ATTACH
Queue state flag (if set) indicating that servers are not allowed to attach to the queue. |
Method Summary | |
QMSJob |
createJob()
Creates a new job for this queue. |
QMSJob |
createJob(int ID)
Creates a QMSJob for an existing job specified by its job ID. |
int |
getID()
Returns the object ID for this queue. |
int |
getState()
Returns the state of the queue as a bit mask. |
java.util.Enumeration |
listJobs()
Returns an enumeration of jobs in this queue. |
void |
setState(int newState)
Sets the state of the queue given the new settings. |
Field Detail |
public static final int QS_CANT_ADD_JOBS
(QS_CANT_ADD_JOBS = 0x01)
getState()
public static final int QS_SERVERS_CANT_ATTACH
(QS_SERVERS_CANT_ATTACH = 0x02)
getState()
public static final int QS_CANT_SERVICE_JOBS
(QS_CANT_SERVICE_JOBS = 0x04)
getState()
public static final int OT_PRINT_QUEUE
(OT_PRINT_QUEUE = 0x03)
public static final int OT_ARCHIVE_QUEUE
(OT_ARCHIVE_QUEUE = 0x08)
public static final int OT_JOB_QUEUE
(OT_JOB_QUEUE = 0x0A)
Method Detail |
public int getState() throws com.novell.service.jncp.NSIException
QS_CANT_ADD_JOBS
,
QS_SERVERS_CANT_ATTACH
,
QS_CANT_SERVICE_JOBS
,
setState(int)
public void setState(int newState) throws com.novell.service.jncp.NSIException
newState
- The desired state.QS_CANT_ADD_JOBS
,
QS_SERVERS_CANT_ATTACH
,
QS_CANT_SERVICE_JOBS
,
getState()
public int getID()
public java.util.Enumeration listJobs()
QMSJob
public QMSJob createJob()
This job does not yet exist in the queue. In order for the queue to recognize the job, it must be submitted to the queue using the submit() method. The queue will wait until the output stream returned from the submit() method is closed before it begins processing the job.
public QMSJob createJob(int ID)
This job already exists and may be in the process of being serviced.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |