|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.resource.Resource | +--com.ibm.as400.resource.ChangeableResource | +--com.ibm.as400.resource.RJob
The RJob class represents an AS/400 job. In order to access a job,
the system and either the job name, user name, and job number or
internal job identifier need to be set. A valid combination of
these must be set by getting or setting any of the job's attributes.
If you do not specify any of the job name, user name, job number,
or internal job identifier properties, the default job is used.
The default job is the host server job for remote program calls.
The following attribute IDs are supported:
Use any of these attribute IDs with
getAttributeValue()
and setAttributeValue()
to access the attribute values for an RJob.
// Create an RJob object to refer to a specific job.
AS400 system = new AS400("MYSYSTEM", "MYUSERID", "MYPASSWORD");
RJob job = new RJob(system, "AJOBNAME", "AUSERID", "AJOBNUMBER");
// Get the job subtype.
String jobSubtype = (String)job.getAttributeValue(RJob.JOB_SUBTYPE);
// Set the date format for a job to Julian.
job.setAttributeValue(RJob.DATE_FORMAT, RJob.DATE_FORMAT_JULIAN);
// Commit the attribute change.
job.commitAttributeChanges();
RJobList
, Serialized Form
Field Summary | |
static java.lang.String |
ACCOUNTING_CODE
Attribute ID for accounting code. |
static java.lang.String |
ACTIVE_JOB_STATUS
Attribute ID for active job status. |
static java.lang.String |
AUXILIARY_IO_REQUESTS
Attribute ID for auxiliary I/O requests. |
static java.lang.String |
BREAK_MESSAGE_HANDLING
Attribute ID for break message handling. |
static java.lang.String |
BREAK_MESSAGE_HANDLING_HOLD
Attribute value indicating that the message queue holds break messages until a user or program requests them. |
static java.lang.String |
BREAK_MESSAGE_HANDLING_NORMAL
Attribute value indicating that the message queue status determines break message handling. |
static java.lang.String |
BREAK_MESSAGE_HANDLING_NOTIFY
Attribute value indicating that the system notifies the job's message queue when a message arrives. |
static java.lang.String |
CCSID
Attribute ID for coded character set identifier (CCSID). |
static int |
CCSID_INITIAL_USER
Attribute value indicating that the CCSID specified in the user profile under which this thread was initially running is used. |
static int |
CCSID_SYSTEM_VALUE
Attribute value indicating that the CCSID specified in the system value QCCSID is used. |
static java.lang.String |
COMPLETION_STATUS
Attribute ID for completion status. |
static java.lang.String |
COMPLETION_STATUS_COMPLETED_ABNORMALLY
Attribute value indicating that the job completed abnormally. |
static java.lang.String |
COMPLETION_STATUS_COMPLETED_NORMALLY
Attribute value indicating that the job completed normally. |
static java.lang.String |
COMPLETION_STATUS_NOT_COMPLETED
Attribute value indicating that the job has not completed. |
static java.lang.String |
CONTROLLED_END_REQUESTED
Attribute ID for controlled end requested. |
static java.lang.String |
CONTROLLED_END_REQUESTED_CANCELED
Attribute value indicating that the system, the subsystem in which the job is running, or the job itself is canceled. |
static java.lang.String |
CONTROLLED_END_REQUESTED_NOT_CANCELED
Attribute value indicating that the system, subsystem, or job is not canceled. |
static java.lang.String |
CONTROLLED_END_REQUESTED_NOT_RUNNING
Attribute value indicating that the job is not running. |
static java.lang.String |
COUNTRY_ID
Attribute ID for country ID. |
static java.lang.String |
CPU_TIME_USED
Attribute ID for CPU time used. |
static java.lang.String |
CURRENT_LIBRARY
Attribute ID for current library. |
static java.lang.String |
CURRENT_LIBRARY_EXISTENCE
Attribute ID for current library existence. |
static java.lang.String |
CURRENT_SYSTEM_POOL_ID
Attribute ID for current system pool ID. |
static java.lang.String |
CURRENT_USER
Attribute ID for current user. |
static java.lang.String |
DATE_ENTERED_SYSTEM
Attribute ID for date entered system. |
static java.lang.String |
DATE_FORMAT
Attribute ID for date format. |
static java.lang.String |
DATE_FORMAT_DMY
Attribute value indicating the day, month, and year date format. |
static java.lang.String |
DATE_FORMAT_JULIAN
Attribute value indicating the Julian date format. |
static java.lang.String |
DATE_FORMAT_MDY
Attribute value indicating the month, day, and year date format. |
static java.lang.String |
DATE_FORMAT_SYSTEM_VALUE
Attribute value indicating that the system value QDATFMT is used. |
static java.lang.String |
DATE_FORMAT_YMD
Attribute value indicating the year, month, and day date format. |
static java.lang.String |
DATE_SEPARATOR
Attribute ID for date separator. |
static java.lang.String |
DATE_SEPARATOR_SYSTEM_VALUE
Attribute value indicating that the system value QDATSEP is used. |
static java.lang.String |
DATE_STARTED
Attribute ID for date started. |
static java.lang.String |
DBCS_CAPABLE
Attribute ID for DBCS capable. |
static java.lang.String |
DECIMAL_FORMAT
Attribute ID for decimal format. |
static java.lang.String |
DECIMAL_FORMAT_COMMA_I
Attribute value indicating the date format that uses a comma for a decimal point and a period for a 3-digit grouping character. |
static java.lang.String |
DECIMAL_FORMAT_COMMA_J
Attribute value indicating the date format that uses a comma for a decimal point, a period for a 3-digit grouping character, and zero-suppresses to the left of the decimal point. |
static java.lang.String |
DECIMAL_FORMAT_PERIOD
Attribute value indicating the date format that uses a period for a decimal point, a comma for a 3-digit grouping character, and zero-suppresses to the left of the decimal point. |
static java.lang.String |
DEFAULT_CCSID
Attribute ID for default coded character set identifier (CCSID). |
static java.lang.String |
DEFAULT_WAIT_TIME
Attribute ID for default wait time. |
static java.lang.String |
DEVICE_RECOVERY_ACTION
Attribute ID for device recovery action. |
static java.lang.String |
DEVICE_RECOVERY_ACTION_DISCONNECT_END_REQUEST
Attribute value indicating the device recovery action that disconnects the job when an I/O error occurs. |
static java.lang.String |
DEVICE_RECOVERY_ACTION_DISCONNECT_MESSAGE
Attribute value indicating the device recovery action that disconnects the job when an I/O error occurs. |
static java.lang.String |
DEVICE_RECOVERY_ACTION_END_JOB
Attribute value indicating the device recovery action that ends the job when an I/O error occurs. |
static java.lang.String |
DEVICE_RECOVERY_ACTION_END_JOB_NO_LIST
Attribute value indicating the device recovery action that ends the job when an I/O error occurs. |
static java.lang.String |
DEVICE_RECOVERY_ACTION_MESSAGE
Attribute value indicating the device recovery action that signals the I/O error message to the application and lets the application program perform error recovery. |
static java.lang.String |
ELIGIBLE_FOR_PURGE
Attribute ID for eligible for purge. |
static java.lang.String |
END_SEVERITY
Attribute ID for end severity. |
static java.lang.String |
FUNCTION_NAME
Attribute ID for function name. |
static java.lang.String |
FUNCTION_TYPE
Attribute ID for function type. |
static java.lang.String |
FUNCTION_TYPE_BLANK
Attribute value indicating that the system is not performing a logged function. |
static java.lang.String |
FUNCTION_TYPE_COMMAND
Attribute value indicating that a command is running interactively, or it is in a batch input stream, or it was requested from a system menu. |
static java.lang.String |
FUNCTION_TYPE_DELAY
Attribute value indicating that the initial thread of the job is processing a Delay Job (DLYJOB) command. |
static java.lang.String |
FUNCTION_TYPE_GROUP
Attribute value indicating that the Transfer Group Job (TFRGRPJOB) command suspended the job. |
static java.lang.String |
FUNCTION_TYPE_INDEX
Attribute value indicating that the initial thread of the job is rebuilding an index (access path). |
static java.lang.String |
FUNCTION_TYPE_IO
Attribute value indicating that the job is a subsystem monitor that is performing input/output (I/O) operations to a work station. |
static java.lang.String |
FUNCTION_TYPE_LOG
Attribute value indicating that the system logs history information in a database file. |
static java.lang.String |
FUNCTION_TYPE_MENU
Attribute value indicating that the initial thread of the job is currently at a system menu. |
static java.lang.String |
FUNCTION_TYPE_MRT
Attribute value indicating that the job is a multiple requester terminal (MRT) job is the job type is JOB_TYPE_BATCH and the job subtype is JOB_SUBTYPE_MRT, or it is an interactive job attached to an MRT job if the job type is JOB_TYPE_INTERACTIVE. |
static java.lang.String |
FUNCTION_TYPE_PROCEDURE
Attribute value indicating that the initial thread of the job is running a procedure. |
static java.lang.String |
FUNCTION_TYPE_PROGRAM
Attribute value indicating that the initial thread of the job is running a program. |
static java.lang.String |
FUNCTION_TYPE_SPECIAL
Attribute value indicating that the function type is special. |
static java.lang.String |
INQUIRY_MESSAGE_REPLY
Attribute ID for inquiry message reply. |
static java.lang.String |
INQUIRY_MESSAGE_REPLY_DEFAULT
Attribute value indicating that the system uses the default message reply to answer any inquiry messages issued while this job is running. |
static java.lang.String |
INQUIRY_MESSAGE_REPLY_REQUIRED
Attribute value indicating that the job requires an answer for any inquiry messages that occur while this job is running. |
static java.lang.String |
INQUIRY_MESSAGE_REPLY_SYSTEM_REPLY_LIST
Attribute value indicating that the system reply list is checked to see if there is an entry for an inquiry message issued while this job is running. |
static java.lang.String |
INSTANCE
Attribute ID for instance. |
static java.lang.String |
INTERACTIVE_TRANSACTIONS
Attribute ID for interactive transactions. |
static java.lang.String |
INTERNAL_JOB_ID
Attribute ID for internal job identifier. |
static java.lang.String |
JOB_DATE
Attribute ID for job date. |
static java.lang.String |
JOB_DESCRIPTION
Attribute ID for job description. |
static java.lang.String |
JOB_NAME
Attribute ID for job name. |
static java.lang.String |
JOB_NUMBER
Attribute ID for job number. |
static java.lang.String |
JOB_QUEUE
Attribute ID for job queue. |
static java.lang.String |
JOB_QUEUE_DATE
Attribute ID for job queue date. |
static java.lang.String |
JOB_QUEUE_PRIORITY
Attribute ID for job queue priority. |
static java.lang.String |
JOB_QUEUE_STATUS
Attribute ID for job queue status. |
static java.lang.String |
JOB_QUEUE_STATUS_BLANK
Attribute value indicating that the job is not on a job queue. |
static java.lang.String |
JOB_QUEUE_STATUS_HELD
Attribute value indicating that the job is being held on the job queue. |
static java.lang.String |
JOB_QUEUE_STATUS_RELEASED
Attribute value indicating that the job is ready to be selected. |
static java.lang.String |
JOB_QUEUE_STATUS_SCHEDULED
Attribute value indicating that the job will run as scheduled. |
static java.lang.String |
JOB_STATUS
Attribute ID for job status. |
static java.lang.String |
JOB_STATUS_ACTIVE
Attribute value indicating that the job is active. |
static java.lang.String |
JOB_STATUS_JOBQ
Attribute value indicating that the job is currently on a job queue. |
static java.lang.String |
JOB_STATUS_OUTQ
Attribute value indicating that the job has completed running. |
static java.lang.String |
JOB_SUBTYPE
Attribute ID for job subtype. |
static java.lang.String |
JOB_SUBTYPE_ALTERNATE_SPOOL_USER
Attribute value indicating alternate spool user. |
static java.lang.String |
JOB_SUBTYPE_BLANK
Attribute value indicating that the job has no special subtype or is not a valid job. |
static java.lang.String |
JOB_SUBTYPE_IMMEDIATE
Attribute value indicating that the job is an immediate job. |
static java.lang.String |
JOB_SUBTYPE_MACHINE_SERVER_JOB
Attribute value indicating that the job is an AS/400 Advanced 36 machine server job. |
static java.lang.String |
JOB_SUBTYPE_MRT
Attribute value indicating that the job is a System/36 multiple requester terminal (MRT) job. |
static java.lang.String |
JOB_SUBTYPE_PRESTART
Attribute value indicating that the job is a prestart job. |
static java.lang.String |
JOB_SUBTYPE_PRINT_DRIVER
Attribute value indicating that the job is a print driver job. |
static java.lang.String |
JOB_SUBTYPE_PROCEDURE_START_REQUEST
Attribute value indicating that the job started with a procedure start request. |
static java.lang.String |
JOB_SWITCHES
Attribute ID for switch settings. |
static java.lang.String |
JOB_TYPE
Attribute ID for job type. |
static java.lang.String |
JOB_TYPE_AUTOSTART
Attribute value indicating that the job is an autostart job. |
static java.lang.String |
JOB_TYPE_BATCH
Attribute value indicating that the job is a batch job. |
static java.lang.String |
JOB_TYPE_INTERACTIVE
Attribute value indicating that the job is an interactive job. |
static java.lang.String |
JOB_TYPE_NOT_VALID
Attribute value indicating that the job is not a valid job. |
static java.lang.String |
JOB_TYPE_SCPF_SYSTEM
Attribute value indicating that the job is the SCPF system job. |
static java.lang.String |
JOB_TYPE_SPOOLED_READER
Attribute value indicating that the job is a spooled reader job. |
static java.lang.String |
JOB_TYPE_SPOOLED_WRITER
Attribute value indicating that the job is a spooled writer job. |
static java.lang.String |
JOB_TYPE_SUBSYSTEM_MONITOR
Attribute value indicating that the job is a subsystem monitor job. |
static java.lang.String |
JOB_TYPE_SYSTEM
Attribute value indicating that the job is a system job. |
static java.lang.String |
KEEP_DDM_CONNECTIONS_ACTIVE
Attribute ID for keep DDM connections active. |
static java.lang.String |
KEEP_DDM_CONNECTIONS_ACTIVE_DROP
Attribute value indicating that the system ends a DDM connection when there are no users. |
static java.lang.String |
KEEP_DDM_CONNECTIONS_ACTIVE_KEEP
Attribute value indicating that the system keeps DDM connections active when there are no users. |
static java.lang.String |
LANGUAGE_ID
Attribute ID for language ID. |
static java.lang.String |
LOCATION_NAME
Attribute ID for location name. |
static java.lang.String |
LOG_CL_PROGRAMS
Attribute ID for logging CL programs. |
static java.lang.String |
LOGGING_LEVEL
Attribute ID for logging level. |
static java.lang.String |
LOGGING_LEVEL_ALL_REQUESTS_AND_ASSOCIATED_MESSAGES
Attribute value indicating that all requests or commands from CL programs and all messages associated with those requests or commands that have a severity code greater than or equal to the logging severity are logged. |
static java.lang.String |
LOGGING_LEVEL_ALL_REQUESTS_AND_MESSAGES
Attribute value indicating that all requests or commands from CL programs and all messages with a severity code greater than or equal to the logging severity are logged. |
static java.lang.String |
LOGGING_LEVEL_MESSAGES_BY_SEVERITY
Attribute value indicating that all messages sent to the job's external message queue with a severity greater than or equal to the message logging severity are logged. |
static java.lang.String |
LOGGING_LEVEL_NONE
Attribute value indicating that no messages are logged. |
static java.lang.String |
LOGGING_LEVEL_REQUESTS_BY_SEVERITY_AND_ASSOCIATED_MESSAGES
Attribute value indicating that requests or commands from CL programs for which the system issues messages with a severity code greater than or equal to the logging severity and all messages associated with those requests or commands that have a severity code greater than or equal to the logging severity are logged. |
static java.lang.String |
LOGGING_SEVERITY
Attribute ID for logging severity. |
static java.lang.String |
LOGGING_TEXT
Attribute ID for logging text. |
static java.lang.String |
LOGGING_TEXT_MESSAGE
Attribute value indicating that only the message is written to the job log. |
static java.lang.String |
LOGGING_TEXT_NO_LIST
Attribute value indicating that if the job ends normally, there is no job log. |
static java.lang.String |
LOGGING_TEXT_SECLVL
Attribute value indicating that both the message and the message help for the error message are written to the job log. |
static java.lang.String |
MAX_CPU_TIME
Attribute ID for maximum CPU time. |
static java.lang.String |
MAX_TEMP_STORAGE
Attribute ID for maximum temporary storage. |
static java.lang.String |
MESSAGE_QUEUE_ACTION
Attribute ID for message queue action. |
static java.lang.String |
MESSAGE_QUEUE_ACTION_NO_WRAP
Attribute value indicating that the message queue does not wrap. |
static java.lang.String |
MESSAGE_QUEUE_ACTION_PRINT_WRAP
Attribute value indicating that the message queue wraps and prints the messages that are being overlaid because of the wrapping. |
static java.lang.String |
MESSAGE_QUEUE_ACTION_WRAP
Attribute value indicating that the message queue wraps to the beginning and starts filling again when the message queue is full. |
static java.lang.String |
MESSAGE_QUEUE_MAX_SIZE
Attribute ID for message queue maximum size. |
static java.lang.String |
MODE
Attribute ID for mode. |
static java.lang.String |
NETWORK_ID
Attribute ID for network ID. |
static java.lang.String |
NO
Attribute value for no. |
static java.util.Date |
NO_DATE
Attribute value for no date. |
static java.lang.String |
NONE
Attribute value for none. |
static java.lang.String |
OUTPUT_QUEUE
Attribute ID for output queue. |
static java.lang.String |
OUTPUT_QUEUE_PRIORITY
Attribute ID for output queue priority. |
static java.lang.String |
PRINT_KEY_FORMAT
Attribute ID for print key format. |
static java.lang.String |
PRINT_KEY_FORMAT_ALL
Attribute value indicating that the border and header information is included with output from the Print key. |
static java.lang.String |
PRINT_KEY_FORMAT_BORDER
Attribute value indicating that the border information is included with output from the Print key. |
static java.lang.String |
PRINT_KEY_FORMAT_HEADER
Attribute value indicating that the header information is included with output from the Print key. |
static java.lang.String |
PRINT_TEXT
Attribute ID for print text. |
static java.lang.String |
PRINTER_DEVICE_NAME
Attribute ID for printer device name. |
static java.lang.String |
PRINTER_DEVICE_NAME_WORK_STATION
Attribute value indicating that the default printer device used with this job is the printer device assigned to the work station that is associated with the job. |
static java.lang.String |
PRODUCT_LIBRARIES
Attribute ID for product libraries. |
static java.lang.String |
PRODUCT_RETURN_CODE
Attribute ID for product return code. |
static java.lang.String |
PROGRAM_RETURN_CODE
Attribute ID for program return code. |
static java.lang.String |
ROUTING_DATA
Attribute ID for routing data. |
static java.lang.String |
RUN_PRIORITY
Attribute ID for run priority. |
static java.lang.String |
SCHEDULE_DATE
Attribute ID for schedule date. |
static java.util.Date |
SCHEDULE_DATE_CURRENT
Attribute value indicating that the submitted job becomes eligible to run at the current date. |
static java.util.Date |
SCHEDULE_DATE_FRIDAY
Attribute value indicating that the submitted job becomes eligible to run on Friday. |
static java.util.Date |
SCHEDULE_DATE_MONDAY
Attribute value indicating that the submitted job becomes eligible to run on Monday. |
static java.util.Date |
SCHEDULE_DATE_MONTH_END
Attribute value indicating that the submitted job becomes eligible to run on the last day of the month. |
static java.util.Date |
SCHEDULE_DATE_MONTH_START
Attribute value indicating that the submitted job becomes eligible to run on the first day of the month. |
static java.util.Date |
SCHEDULE_DATE_SATURDAY
Attribute value indicating that the submitted job becomes eligible to run on Saturday. |
static java.util.Date |
SCHEDULE_DATE_SUNDAY
Attribute value indicating that the submitted job becomes eligible to run on Sunday. |
static java.util.Date |
SCHEDULE_DATE_THURSDAY
Attribute value indicating that the submitted job becomes eligible to run on Thursday. |
static java.util.Date |
SCHEDULE_DATE_TUESDAY
Attribute value indicating that the submitted job becomes eligible to run on Tuesday. |
static java.util.Date |
SCHEDULE_DATE_WEDNESDAY
Attribute value indicating that the submitted job becomes eligible to run on Wednesday. |
static java.lang.String |
SEQUENCE_NUMBER
Attribute ID for sequence number. |
static java.lang.String |
SERVER_TYPE
Attribute ID for server type. |
static java.lang.String |
SIGNED_ON_JOB
Attribute ID for signed on job. |
static java.lang.String |
SORT_SEQUENCE_TABLE
Attribute ID for sort sequence table. |
static java.lang.String |
SPECIAL_ENVIRONMENT
Attribute ID for special environment. |
static java.lang.String |
SPECIAL_ENVIRONMENT_NOT_ACTIVE
Attribute value indicating that the job is not currently active. |
static java.lang.String |
SPECIAL_ENVIRONMENT_SYSTEM_36
Attribute value indicating that the job is running in the System/36 environment. |
static java.lang.String |
STATUS_MESSAGE_HANDLING
Attribute ID for status message handling. |
static java.lang.String |
STATUS_MESSAGE_HANDLING_NORMAL
Attribute value indicating that this job displays status messages. |
static java.lang.String |
SUBMITTED_BY_JOB_NAME
Attribute ID for submitted by job name. |
static java.lang.String |
SUBMITTED_BY_JOB_NUMBER
Attribute ID for submitted by job number. |
static java.lang.String |
SUBMITTED_BY_USER
Attribute ID for submitted by user. |
static java.lang.String |
SUBSYSTEM
Attribute ID for subsystem. |
static java.lang.String |
SYSTEM_LIBRARY_LIST
Attribute ID for system library list. |
static java.lang.String |
SYSTEM_POOL_ID
Attribute ID for system pool ID. |
static java.lang.String |
SYSTEM_VALUE
Attribute value for system value. |
static java.lang.String |
TEMP_STORAGE_USED
Attribute ID for temporary storage used. |
static java.lang.String |
THREAD_COUNT
Attribute ID for thread count. |
static java.lang.String |
TIME_SEPARATOR
Attribute ID for time separator. |
static java.lang.String |
TIME_SEPARATOR_SYSTEM_VALUE
Attribute value indicating that the system value QTIMSEP is used. |
static java.lang.String |
TIME_SLICE
Attribute ID for time slice. |
static java.lang.String |
TIME_SLICE_END_POOL
Attribute ID for time slice end pool. |
static java.lang.String |
TIME_SLICE_END_POOL_BASE
Attribute value indicating that a thread in the job moves to the base pool when it reaches the end of its time slice. |
static java.lang.String |
TOTAL_RESPONSE_TIME
Attribute ID for total response time. |
static java.lang.String |
USER_LIBRARY_LIST
Attribute ID for user library list. |
static java.lang.String |
USER_NAME
Attribute ID for user name. |
static java.lang.String |
USER_PROFILE
Attribute value for user profile. |
static java.lang.String |
USER_RETURN_CODE
Attribute ID for user return code. |
static java.lang.String |
YES
Attribute value for yes. |
Constructor Summary | |
RJob()
Constructs an RJob object. |
|
RJob(AS400 system)
Constructs an RJob object. |
|
RJob(AS400 system,
byte[] internalJobID)
Constructs an RJob object. |
|
RJob(AS400 system,
java.lang.String name,
java.lang.String user,
java.lang.String number)
Constructs an RJob object. |
Method Summary | |
protected void |
commitAttributeChanges(java.lang.Object[] attributeIDs,
java.lang.Object[] values,
int[] bidiStringTypes)
Commits the specified attribute changes. |
void |
createResource(java.lang.Object[] attributeIDs,
java.lang.Object[] values)
Creates the resource using the specified attribute values. |
void |
end()
Ends the job controlled. |
void |
end(int delayTime)
Ends the job. |
protected void |
establishConnection()
Establishes the connection to the AS/400. |
protected void |
freezeProperties()
Freezes any property changes. |
java.lang.Object |
getAttributeUnchangedValue(java.lang.Object attributeID,
int bidiStringType)
Returns the unchanged value of an attribute. |
byte[] |
getInternalJobID()
Returns the internal job identifier. |
java.lang.String |
getName()
Returns the job name. |
java.lang.String |
getNumber()
Returns the job number. |
java.lang.String |
getUser()
Returns the user name. |
protected boolean |
isBidiEnabled()
Indicates if this resource is enabled for bidirectional character conversion. |
void |
refreshAttributeValues()
Refreshes the values for all attributes. |
void |
setInternalJobID(byte[] internalJobID)
Sets the internal job identifier. |
void |
setName(java.lang.String name)
Sets the job name. |
void |
setNumber(java.lang.String number)
Sets the job number. |
void |
setUser(java.lang.String user)
Sets the user name. |
java.lang.String |
toString()
Returns the string representation in the format "number/user/name". |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String SYSTEM_VALUE
public static final java.lang.String USER_PROFILE
public static final java.lang.String YES
public static final java.lang.String NO
public static final java.lang.String NONE
public static final java.util.Date NO_DATE
public static final java.lang.String ACCOUNTING_CODE
public static final java.lang.String ACTIVE_JOB_STATUS
public static final java.lang.String AUXILIARY_IO_REQUESTS
public static final java.lang.String BREAK_MESSAGE_HANDLING
public static final java.lang.String BREAK_MESSAGE_HANDLING_NORMAL
BREAK_MESSAGE_HANDLING
public static final java.lang.String BREAK_MESSAGE_HANDLING_HOLD
BREAK_MESSAGE_HANDLING
public static final java.lang.String BREAK_MESSAGE_HANDLING_NOTIFY
BREAK_MESSAGE_HANDLING
public static final java.lang.String CCSID
The following special values can be used when setting the CCSID:
public static final int CCSID_SYSTEM_VALUE
CCSID
public static final int CCSID_INITIAL_USER
CCSID
public static final java.lang.String COMPLETION_STATUS
public static final java.lang.String COMPLETION_STATUS_NOT_COMPLETED
COMPLETION_STATUS
public static final java.lang.String COMPLETION_STATUS_COMPLETED_NORMALLY
COMPLETION_STATUS
public static final java.lang.String COMPLETION_STATUS_COMPLETED_ABNORMALLY
COMPLETION_STATUS
public static final java.lang.String CONTROLLED_END_REQUESTED
public static final java.lang.String CONTROLLED_END_REQUESTED_CANCELED
CONTROLLED_END_REQUESTED
public static final java.lang.String CONTROLLED_END_REQUESTED_NOT_CANCELED
CONTROLLED_END_REQUESTED
public static final java.lang.String CONTROLLED_END_REQUESTED_NOT_RUNNING
CONTROLLED_END_REQUESTED
public static final java.lang.String COUNTRY_ID
The following special values can be used when setting the country ID:
public static final java.lang.String CPU_TIME_USED
public static final java.lang.String CURRENT_LIBRARY
public static final java.lang.String CURRENT_LIBRARY_EXISTENCE
public static final java.lang.String CURRENT_SYSTEM_POOL_ID
public static final java.lang.String CURRENT_USER
public static final java.lang.String DATE_ENTERED_SYSTEM
public static final java.lang.String DATE_FORMAT
The following special values can be used when setting the date format:
public static final java.lang.String DATE_FORMAT_SYSTEM_VALUE
DATE_FORMAT
public static final java.lang.String DATE_FORMAT_YMD
DATE_FORMAT
public static final java.lang.String DATE_FORMAT_MDY
DATE_FORMAT
public static final java.lang.String DATE_FORMAT_DMY
DATE_FORMAT
public static final java.lang.String DATE_FORMAT_JULIAN
DATE_FORMAT
public static final java.lang.String DATE_SEPARATOR
The following special value can be used when setting the date separator:
public static final java.lang.String DATE_SEPARATOR_SYSTEM_VALUE
DATE_SEPARATOR
public static final java.lang.String DATE_STARTED
public static final java.lang.String DBCS_CAPABLE
public static final java.lang.String DECIMAL_FORMAT
The following special value can be used when setting the decimal separator:
public static final java.lang.String DECIMAL_FORMAT_PERIOD
DECIMAL_FORMAT
public static final java.lang.String DECIMAL_FORMAT_COMMA_I
DECIMAL_FORMAT
public static final java.lang.String DECIMAL_FORMAT_COMMA_J
DECIMAL_FORMAT
public static final java.lang.String DEFAULT_CCSID
public static final java.lang.String DEFAULT_WAIT_TIME
public static final java.lang.String DEVICE_RECOVERY_ACTION
The following special values can be used when setting the device recovery action:
public static final java.lang.String DEVICE_RECOVERY_ACTION_MESSAGE
DEVICE_RECOVERY_ACTION
public static final java.lang.String DEVICE_RECOVERY_ACTION_DISCONNECT_MESSAGE
DEVICE_RECOVERY_ACTION
public static final java.lang.String DEVICE_RECOVERY_ACTION_DISCONNECT_END_REQUEST
DEVICE_RECOVERY_ACTION
public static final java.lang.String DEVICE_RECOVERY_ACTION_END_JOB
DEVICE_RECOVERY_ACTION
public static final java.lang.String DEVICE_RECOVERY_ACTION_END_JOB_NO_LIST
DEVICE_RECOVERY_ACTION
public static final java.lang.String ELIGIBLE_FOR_PURGE
public static final java.lang.String END_SEVERITY
public static final java.lang.String FUNCTION_NAME
public static final java.lang.String FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_BLANK
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_COMMAND
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_DELAY
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_GROUP
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_INDEX
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_LOG
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_MRT
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_MENU
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_IO
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_PROGRAM
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_PROCEDURE
FUNCTION_TYPE
public static final java.lang.String FUNCTION_TYPE_SPECIAL
FUNCTION_TYPE
public static final java.lang.String INQUIRY_MESSAGE_REPLY
public static final java.lang.String INQUIRY_MESSAGE_REPLY_REQUIRED
INQUIRY_MESSAGE_REPLY
public static final java.lang.String INQUIRY_MESSAGE_REPLY_DEFAULT
INQUIRY_MESSAGE_REPLY
public static final java.lang.String INQUIRY_MESSAGE_REPLY_SYSTEM_REPLY_LIST
INQUIRY_MESSAGE_REPLY
public static final java.lang.String INSTANCE
public static final java.lang.String INTERACTIVE_TRANSACTIONS
public static final java.lang.String INTERNAL_JOB_ID
public static final java.lang.String JOB_DATE
public static final java.lang.String JOB_DESCRIPTION
QSYSObjectPathName
public static final java.lang.String JOB_NAME
public static final java.lang.String JOB_NUMBER
public static final java.lang.String JOB_QUEUE
QSYSObjectPathName
public static final java.lang.String JOB_QUEUE_DATE
public static final java.lang.String JOB_QUEUE_PRIORITY
public static final java.lang.String JOB_QUEUE_STATUS
public static final java.lang.String JOB_QUEUE_STATUS_BLANK
JOB_QUEUE_STATUS
public static final java.lang.String JOB_QUEUE_STATUS_SCHEDULED
JOB_QUEUE_STATUS
public static final java.lang.String JOB_QUEUE_STATUS_HELD
JOB_QUEUE_STATUS
public static final java.lang.String JOB_QUEUE_STATUS_RELEASED
JOB_QUEUE_STATUS
public static final java.lang.String JOB_STATUS
public static final java.lang.String JOB_STATUS_ACTIVE
JOB_STATUS
public static final java.lang.String JOB_STATUS_JOBQ
JOB_STATUS
public static final java.lang.String JOB_STATUS_OUTQ
JOB_STATUS
public static final java.lang.String JOB_SUBTYPE
public static final java.lang.String JOB_SUBTYPE_BLANK
JOB_SUBTYPE
public static final java.lang.String JOB_SUBTYPE_IMMEDIATE
JOB_SUBTYPE
public static final java.lang.String JOB_SUBTYPE_PROCEDURE_START_REQUEST
JOB_SUBTYPE
public static final java.lang.String JOB_SUBTYPE_MACHINE_SERVER_JOB
JOB_SUBTYPE
public static final java.lang.String JOB_SUBTYPE_PRESTART
JOB_SUBTYPE
public static final java.lang.String JOB_SUBTYPE_PRINT_DRIVER
JOB_SUBTYPE
public static final java.lang.String JOB_SUBTYPE_MRT
JOB_SUBTYPE
public static final java.lang.String JOB_SUBTYPE_ALTERNATE_SPOOL_USER
JOB_SUBTYPE
public static final java.lang.String JOB_SWITCHES
public static final java.lang.String JOB_TYPE
public static final java.lang.String JOB_TYPE_NOT_VALID
JOB_TYPE
public static final java.lang.String JOB_TYPE_AUTOSTART
JOB_TYPE
public static final java.lang.String JOB_TYPE_BATCH
JOB_TYPE
public static final java.lang.String JOB_TYPE_INTERACTIVE
JOB_TYPE
public static final java.lang.String JOB_TYPE_SUBSYSTEM_MONITOR
JOB_TYPE
public static final java.lang.String JOB_TYPE_SPOOLED_READER
JOB_TYPE
public static final java.lang.String JOB_TYPE_SYSTEM
JOB_TYPE
public static final java.lang.String JOB_TYPE_SPOOLED_WRITER
JOB_TYPE
public static final java.lang.String JOB_TYPE_SCPF_SYSTEM
JOB_TYPE
public static final java.lang.String KEEP_DDM_CONNECTIONS_ACTIVE
public static final java.lang.String KEEP_DDM_CONNECTIONS_ACTIVE_KEEP
KEEP_DDM_CONNECTIONS_ACTIVE
public static final java.lang.String KEEP_DDM_CONNECTIONS_ACTIVE_DROP
KEEP_DDM_CONNECTIONS_ACTIVE
public static final java.lang.String LANGUAGE_ID
The following special values can be used when setting the language ID:
public static final java.lang.String LOCATION_NAME
public static final java.lang.String LOG_CL_PROGRAMS
public static final java.lang.String LOGGING_LEVEL
public static final java.lang.String LOGGING_LEVEL_NONE
LOGGING_LEVEL
public static final java.lang.String LOGGING_LEVEL_MESSAGES_BY_SEVERITY
LOGGING_LEVEL
public static final java.lang.String LOGGING_LEVEL_REQUESTS_BY_SEVERITY_AND_ASSOCIATED_MESSAGES
LOGGING_LEVEL
public static final java.lang.String LOGGING_LEVEL_ALL_REQUESTS_AND_ASSOCIATED_MESSAGES
LOGGING_LEVEL
public static final java.lang.String LOGGING_LEVEL_ALL_REQUESTS_AND_MESSAGES
LOGGING_LEVEL
public static final java.lang.String LOGGING_SEVERITY
public static final java.lang.String LOGGING_TEXT
public static final java.lang.String LOGGING_TEXT_MESSAGE
LOGGING_TEXT
public static final java.lang.String LOGGING_TEXT_SECLVL
LOGGING_TEXT
public static final java.lang.String LOGGING_TEXT_NO_LIST
LOGGING_TEXT
public static final java.lang.String MAX_CPU_TIME
public static final java.lang.String MAX_TEMP_STORAGE
public static final java.lang.String MESSAGE_QUEUE_ACTION
public static final java.lang.String MESSAGE_QUEUE_ACTION_NO_WRAP
MESSAGE_QUEUE_ACTION
public static final java.lang.String MESSAGE_QUEUE_ACTION_WRAP
MESSAGE_QUEUE_ACTION
public static final java.lang.String MESSAGE_QUEUE_ACTION_PRINT_WRAP
MESSAGE_QUEUE_ACTION
public static final java.lang.String MESSAGE_QUEUE_MAX_SIZE
public static final java.lang.String MODE
public static final java.lang.String NETWORK_ID
public static final java.lang.String OUTPUT_QUEUE
QSYSObjectPathName
public static final java.lang.String OUTPUT_QUEUE_PRIORITY
public static final java.lang.String PRINT_KEY_FORMAT
The following special value can be used when setting the print key format:
public static final java.lang.String PRINT_KEY_FORMAT_BORDER
PRINT_KEY_FORMAT
public static final java.lang.String PRINT_KEY_FORMAT_HEADER
PRINT_KEY_FORMAT
public static final java.lang.String PRINT_KEY_FORMAT_ALL
PRINT_KEY_FORMAT
public static final java.lang.String PRINT_TEXT
The following special value can be used when setting the print key format:
public static final java.lang.String PRINTER_DEVICE_NAME
The following special values can be used when setting the printer:
public static final java.lang.String PRINTER_DEVICE_NAME_WORK_STATION
PRINTER_DEVICE_NAME
public static final java.lang.String PRODUCT_LIBRARIES
public static final java.lang.String PRODUCT_RETURN_CODE
public static final java.lang.String PROGRAM_RETURN_CODE
public static final java.lang.String ROUTING_DATA
public static final java.lang.String RUN_PRIORITY
public static final java.lang.String SCHEDULE_DATE
The following special values can be used when setting the schedule date:
public static final java.util.Date SCHEDULE_DATE_CURRENT
SCHEDULE_DATE
public static final java.util.Date SCHEDULE_DATE_MONTH_START
SCHEDULE_DATE
public static final java.util.Date SCHEDULE_DATE_MONTH_END
SCHEDULE_DATE
public static final java.util.Date SCHEDULE_DATE_MONDAY
SCHEDULE_DATE
public static final java.util.Date SCHEDULE_DATE_TUESDAY
SCHEDULE_DATE
public static final java.util.Date SCHEDULE_DATE_WEDNESDAY
SCHEDULE_DATE
public static final java.util.Date SCHEDULE_DATE_THURSDAY
SCHEDULE_DATE
public static final java.util.Date SCHEDULE_DATE_FRIDAY
SCHEDULE_DATE
public static final java.util.Date SCHEDULE_DATE_SATURDAY
SCHEDULE_DATE
public static final java.util.Date SCHEDULE_DATE_SUNDAY
SCHEDULE_DATE
public static final java.lang.String SEQUENCE_NUMBER
public static final java.lang.String SERVER_TYPE
public static final java.lang.String SIGNED_ON_JOB
public static final java.lang.String SORT_SEQUENCE_TABLE
QSYSObjectPathName
public static final java.lang.String SPECIAL_ENVIRONMENT
public static final java.lang.String SPECIAL_ENVIRONMENT_SYSTEM_36
SPECIAL_ENVIRONMENT
public static final java.lang.String SPECIAL_ENVIRONMENT_NOT_ACTIVE
SPECIAL_ENVIRONMENT
public static final java.lang.String STATUS_MESSAGE_HANDLING
The following special values can be used when setting the status message handling:
public static final java.lang.String STATUS_MESSAGE_HANDLING_NORMAL
STATUS_MESSAGE_HANDLING
public static final java.lang.String SUBMITTED_BY_JOB_NAME
public static final java.lang.String SUBMITTED_BY_JOB_NUMBER
public static final java.lang.String SUBMITTED_BY_USER
public static final java.lang.String SUBSYSTEM
QSYSObjectPathName
public static final java.lang.String SYSTEM_LIBRARY_LIST
public static final java.lang.String SYSTEM_POOL_ID
public static final java.lang.String TEMP_STORAGE_USED
public static final java.lang.String THREAD_COUNT
public static final java.lang.String TIME_SEPARATOR
The following special value can be used when setting the time separator:
public static final java.lang.String TIME_SEPARATOR_SYSTEM_VALUE
TIME_SEPARATOR
public static final java.lang.String TIME_SLICE
public static final java.lang.String TIME_SLICE_END_POOL
The following special value can be used when setting the time slice end pool:
public static final java.lang.String TIME_SLICE_END_POOL_BASE
TIME_SLICE_END_POOL
public static final java.lang.String TOTAL_RESPONSE_TIME
public static final java.lang.String USER_LIBRARY_LIST
public static final java.lang.String USER_NAME
public static final java.lang.String USER_RETURN_CODE
Constructor Detail |
public RJob()
public RJob(AS400 system)
system
- The system.public RJob(AS400 system, java.lang.String name, java.lang.String user, java.lang.String number)
system
- The system.name
- The job name. Specify "*" to indicate the default job.user
- The user name. This must be blank if name is "*".number
- The job number. This must be blank if name is "*".public RJob(AS400 system, byte[] internalJobID)
system
- The system.internalJobID
- The internal job identifier.Method Detail |
protected void commitAttributeChanges(java.lang.Object[] attributeIDs, java.lang.Object[] values, int[] bidiStringTypes) throws ResourceException
commitAttributeChanges
in class ChangeableResource
attributeIDs
- The attribute IDs for the specified attribute changes.values
- The specified attribute changesbidiStringTypes
- The bidi string types as defined by the CDRA (Character Data
Representataion Architecture). See
BidiStringType
for more information and valid values.ResourceException
- If an error occurs.public void createResource(java.lang.Object[] attributeIDs, java.lang.Object[] values) throws ResourceException
ResourceException
- If an error occurs.public void end() throws ResourceException
ResourceException
- If an error occurs.public void end(int delayTime) throws ResourceException
delayTime
- The amount of time (in seconds) allowed for the job to complete
its cleanup and end of job processing during a controlled end.
If the cleanup is not completed before the end of the delay time,
the job is ended immediately. Specify 0 to end the job
immediately.ResourceException
- If an error occurs.protected void establishConnection() throws ResourceException
The method is called by the resource framework automatically when the connection needs to be established.
establishConnection
in class Resource
ResourceException
- If an error occurs.protected void freezeProperties() throws ResourceException
The method is called by the resource framework automatically when the properties need to be frozen.
freezeProperties
in class Resource
ResourceException
- If an error occurs.public java.lang.Object getAttributeUnchangedValue(java.lang.Object attributeID, int bidiStringType) throws ResourceException
getAttributeUnchangedValue
in class ChangeableResource
attributeID
- Identifies the attribute.bidiStringType
- The bidi string type as defined by the CDRA (Character Data
Representataion Architecture). See
BidiStringType
for more information and valid values.ResourceException
- If an error occurs.public byte[] getInternalJobID()
public java.lang.String getName()
public java.lang.String getNumber()
public java.lang.String getUser()
protected boolean isBidiEnabled()
isBidiEnabled
in class Resource
public void refreshAttributeValues() throws ResourceException
refreshAttributeValues
in class ChangeableResource
ResourceException
- If an error occurs.public void setInternalJobID(byte[] internalJobID) throws java.beans.PropertyVetoException
internalJobID
- The internal job identifier.java.beans.PropertyVetoException
- If the property change is vetoed.public void setName(java.lang.String name) throws java.beans.PropertyVetoException
name
- The job name. Specify "*" to indicate the job this
program running in, or "*INT" to indicate that the job
is specified using the internal job identifier.java.beans.PropertyVetoException
- If the property change is vetoed.public void setNumber(java.lang.String number) throws java.beans.PropertyVetoException
number
- The job number. This must be blank if the job name is "*".java.beans.PropertyVetoException
- If the property change is vetoed.public void setUser(java.lang.String user) throws java.beans.PropertyVetoException
user
- The user name. This must be blank if the job name is "*".java.beans.PropertyVetoException
- If the property change is vetoed.public java.lang.String toString()
toString
in class Resource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |