|
|||||||||
| 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.RQueuedMessage
The RQueuedMessage class represents a message in an AS/400 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| Field Summary | |
static java.lang.String |
ALERT_OPTION
Attribute ID for alert option. |
static java.lang.String |
ALERT_OPTION_DEFER
Constant for ALERT_OPTION attribute value - An alert is sent after local problem analysis. |
static java.lang.String |
ALERT_OPTION_IMMEDIATE
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 java.lang.String |
ALERT_OPTION_NO
Constant for ALERT_OPTION attribute value - No alert is sent. |
static java.lang.String |
ALERT_OPTION_UNATTENDED
Constant for ALERT_OPTION attribute value - An alert is sent immediately when the system is running in unattended mode. |
static java.lang.String |
DATE_SENT
Attribute ID for date sent. |
static java.lang.String |
DEFAULT_REPLY
Attribute ID for default reply. |
static java.lang.String |
MESSAGE_FILE
Attribute ID for message file. |
static java.lang.String |
MESSAGE_HELP
Attribute ID for message help. |
static java.lang.String |
MESSAGE_ID
Attribute ID for message ID. |
static java.lang.String |
MESSAGE_KEY
Attribute ID for message key. |
static java.lang.String |
MESSAGE_QUEUE
Attribute ID for message queue. |
static java.lang.String |
MESSAGE_SEVERITY
Attribute ID for message severity. |
static java.lang.String |
MESSAGE_TEXT
Attribute ID for message text. |
static java.lang.String |
MESSAGE_TYPE
Attribute ID for message type. |
static java.lang.String |
REPLY_STATUS
Attribute ID for reply status. |
static java.lang.String |
REPLY_STATUS_ACCEPTS_NOT_SENT
Constant for REPLY_STATUS attribute value - Message accepts a reply, and a reply has not been sent. |
static java.lang.String |
REPLY_STATUS_ACCEPTS_SENT
Constant for REPLY_STATUS attribute value - Message accepts a reply, and a reply has been sent. |
static java.lang.String |
REPLY_STATUS_NOT_ACCEPT
Constant for REPLY_STATUS attribute value - Message does not accept a reply. |
static java.lang.String |
SENDER_JOB_NAME
Attribute ID for sender job name. |
static java.lang.String |
SENDER_JOB_NUMBER
Attribute ID for sender job number. |
static java.lang.String |
SENDER_USER_NAME
Attribute ID for sender user name. |
static java.lang.String |
SENDING_PROGRAM_NAME
Attribute ID for sending program name. |
static java.lang.String |
SUBSTITUTION_DATA
Attribute ID for substitution data. |
| Constructor Summary | |
RQueuedMessage()
Constructs an RQueuedMessage object. |
|
| Method Summary | |
void |
load(int helpTextFormatting)
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 java.lang.String ALERT_OPTION
public static final java.lang.String ALERT_OPTION_DEFER
public static final java.lang.String ALERT_OPTION_IMMEDIATE
public static final java.lang.String ALERT_OPTION_NO
public static final java.lang.String ALERT_OPTION_UNATTENDED
public static final java.lang.String DATE_SENT
public static final java.lang.String DEFAULT_REPLY
public static final java.lang.String MESSAGE_FILE
QSYSObjectPathNamepublic static final java.lang.String MESSAGE_HELP
public static final java.lang.String MESSAGE_ID
public static final java.lang.String MESSAGE_KEY
public static final java.lang.String MESSAGE_QUEUE
QSYSObjectPathNamepublic static final java.lang.String MESSAGE_SEVERITY
public static final java.lang.String MESSAGE_TEXT
public static final java.lang.String MESSAGE_TYPE
public static final java.lang.String REPLY_STATUS
public static final java.lang.String REPLY_STATUS_ACCEPTS_SENT
public static final java.lang.String REPLY_STATUS_ACCEPTS_NOT_SENT
public static final java.lang.String REPLY_STATUS_NOT_ACCEPT
public static final java.lang.String SENDER_JOB_NAME
public static final java.lang.String SENDER_USER_NAME
public static final java.lang.String SENDER_JOB_NUMBER
public static final java.lang.String SENDING_PROGRAM_NAME
public static final java.lang.String SUBSTITUTION_DATA
| Constructor Detail |
public RQueuedMessage()
| Method Detail |
public void load(int helpTextFormatting)
throws AS400SecurityException,
ErrorCompletingRequestException,
java.io.IOException,
java.lang.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.java.io.IOException - If an error occurs while communicating with the AS/400.java.lang.InterruptedException - If this thread is interrupted.ObjectDoesNotExistException - If the AS/400 object does not exist.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||