|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.resource.Resource
com.ibm.as400.resource.RQueuedMessage
QueuedMessage instead, as this package may be removed in the future.
public class RQueuedMessage extends Resource
The RQueuedMessage class represents a message in a message queue
or job log.
The following attribute IDs are supported:
Use any of these attribute IDs with
getAttributeValue()
to access the attribute values for an RQueuedMessage.
// Create an RMessageQueue object to refer to a specific message queue.
AS400 system = new AS400("MYSYSTEM", "MYUSERID", "MYPASSWORD");
RMessageQueue messageQueue = new RMessageQueue(system, "/QSYS.LIB/MYLIB.LIB/MYMSGQ.MSGQ");
// Get the first RQueuedMessage from the RMessageQueue.
RQueuedMessage queuedMessage = messageQueue.resourceAt(0);
// Get the message text from the RQueuedMessage.
String messageText = (String)queuedMessage.getAttributeValue(RQueuedMessage.MESSAGE_TEXT);
RMessageQueue,
RJobLog,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
ALERT_OPTION
Deprecated. Attribute ID for alert option. |
static String |
ALERT_OPTION_DEFER
Deprecated. Constant for ALERT_OPTION attribute value -
An alert is sent after local problem analysis. |
static String |
ALERT_OPTION_IMMEDIATE
Deprecated. Constant for ALERT_OPTION attribute value -
An alert is sent immediately when the message is sent to a message queue
that has the allows alerts. |
static String |
ALERT_OPTION_NO
Deprecated. Constant for ALERT_OPTION attribute value -
No alert is sent. |
static String |
ALERT_OPTION_UNATTENDED
Deprecated. Constant for ALERT_OPTION attribute value -
An alert is sent immediately when the system is running in unattended mode. |
static String |
DATE_SENT
Deprecated. Attribute ID for date sent. |
static String |
DEFAULT_REPLY
Deprecated. Attribute ID for default reply. |
static String |
MESSAGE_FILE
Deprecated. Attribute ID for message file. |
static String |
MESSAGE_HELP
Deprecated. Attribute ID for message help. |
static String |
MESSAGE_ID
Deprecated. Attribute ID for message ID. |
static String |
MESSAGE_KEY
Deprecated. Attribute ID for message key. |
static String |
MESSAGE_QUEUE
Deprecated. Attribute ID for message queue. |
static String |
MESSAGE_SEVERITY
Deprecated. Attribute ID for message severity. |
static String |
MESSAGE_TEXT
Deprecated. Attribute ID for message text. |
static String |
MESSAGE_TYPE
Deprecated. Attribute ID for message type. |
static String |
REPLY_STATUS
Deprecated. Attribute ID for reply status. |
static String |
REPLY_STATUS_ACCEPTS_NOT_SENT
Deprecated. Constant for REPLY_STATUS attribute value -
Message accepts a reply, and a reply has not been sent. |
static String |
REPLY_STATUS_ACCEPTS_SENT
Deprecated. Constant for REPLY_STATUS attribute value -
Message accepts a reply, and a reply has been sent. |
static String |
REPLY_STATUS_NOT_ACCEPT
Deprecated. Constant for REPLY_STATUS attribute value -
Message does not accept a reply. |
static String |
SENDER_JOB_NAME
Deprecated. Attribute ID for sender job name. |
static String |
SENDER_JOB_NUMBER
Deprecated. Attribute ID for sender job number. |
static String |
SENDER_USER_NAME
Deprecated. Attribute ID for sender user name. |
static String |
SENDING_PROGRAM_NAME
Deprecated. Attribute ID for sending program name. |
static String |
SUBSTITUTION_DATA
Deprecated. Attribute ID for substitution data. |
| Constructor and Description |
|---|
RQueuedMessage()
Deprecated. Constructs an RQueuedMessage object. |
| Modifier and Type | Method and Description |
|---|---|
void |
load(int helpTextFormatting)
Deprecated. Reload message help text. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ALERT_OPTION
ALERT_OPTION_DEFER - An alert is sent after
local problem analysis.
ALERT_OPTION_IMMEDIATE - An alert is sent immediately
when the message is sent to a message queue that has the allows alerts.
ALERT_OPTION_NO - No alert is sent.
ALERT_OPTION_UNATTENDED - An alert is sent immediately
when the system is running in unattended mode.
public static final String ALERT_OPTION_DEFER
ALERT_OPTION attribute value -
An alert is sent after local problem analysis.
public static final String ALERT_OPTION_IMMEDIATE
ALERT_OPTION attribute value -
An alert is sent immediately when the message is sent to a message queue
that has the allows alerts.
public static final String ALERT_OPTION_NO
ALERT_OPTION attribute value -
No alert is sent.
public static final String ALERT_OPTION_UNATTENDED
ALERT_OPTION attribute value -
An alert is sent immediately when the system is running in unattended mode.
public static final String DATE_SENT
public static final String DEFAULT_REPLY
public static final String MESSAGE_FILE
QSYSObjectPathName,
Constant Field Valuespublic static final String MESSAGE_HELP
public static final String MESSAGE_ID
public static final String MESSAGE_KEY
public static final String MESSAGE_QUEUE
QSYSObjectPathName,
Constant Field Valuespublic static final String MESSAGE_SEVERITY
public static final String MESSAGE_TEXT
public static final String MESSAGE_TYPE
COMPLETION
DIAGNOSTIC
INFORMATIONAL
INQUIRY
SENDERS_COPY
REQUEST
REQUEST_WITH_PROMPTING
NOTIFY
ESCAPE
NOTIFY_NOT_HANDLED
ESCAPE_NOT_HANDLED
REPLY_NOT_VALIDITY_CHECKED
REPLY_VALIDITY_CHECKED
REPLY_MESSAGE_DEFAULT_USED
REPLY_SYSTEM_DEFAULT_USED
REPLY_FROM_SYSTEM_REPLY_LIST
public static final String REPLY_STATUS
REPLY_STATUS_ACCEPTS_SENT -
Message accepts a reply, and a reply has been sent.
REPLY_STATUS_ACCEPTS_NOT_SENT -
Message accepts a reply, and a reply has not been sent. (The message
is waiting for a reply.)
REPLY_STATUS_NOT_ACCEPT -
Message does not accept a reply.
public static final String REPLY_STATUS_ACCEPTS_SENT
REPLY_STATUS attribute value -
Message accepts a reply, and a reply has been sent.
public static final String REPLY_STATUS_ACCEPTS_NOT_SENT
REPLY_STATUS attribute value -
Message accepts a reply, and a reply has not been sent. (The message
is waiting for a reply.)
public static final String REPLY_STATUS_NOT_ACCEPT
REPLY_STATUS attribute value -
Message does not accept a reply.
public static final String SENDER_JOB_NAME
public static final String SENDER_USER_NAME
public static final String SENDER_JOB_NUMBER
public static final String SENDING_PROGRAM_NAME
public static final String SUBSTITUTION_DATA
| Constructor Detail |
|---|
public RQueuedMessage()
| Method Detail |
|---|
public void load(int helpTextFormatting)
throws AS400SecurityException,
ErrorCompletingRequestException,
IOException,
InterruptedException,
ObjectDoesNotExistException
helpTextFormatting - Formatting performed on the help text. Valid
values for this parameter are defined in the MessageFile
class. They are no formatting, return formatting characters,
and replace (substitute) formatting characters.AS400SecurityException - If a security or authority error occurs.ErrorCompletingRequestException - If an error occurs before the request is completed.IOException - If an error occurs while communicating with the system.InterruptedException - If this thread is interrupted.ObjectDoesNotExistException - If the system object does not exist.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||