|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.administration.commandline.MQeAbstractCmdLineAdminTool
A concrete super-class of all the MQe command-line admin tools.
Some common methods and utility functions are implemented in this class
Command-line MQe administration tools inherit from this class
Field Summary | |
static java.lang.String |
ADMIN_Q_NAME
The queue to which the admin message is sent. |
static java.lang.String |
REPLY_TO_Q
The queue to which the admin reply should be sent. |
static int |
TIMEOUT_MILLISECS
The tool will wait for an admin reply message to appear on the reply queue for a set timeout period. |
static short[] |
version
|
Constructor Summary | |
MQeAbstractCmdLineAdminTool()
|
Method Summary | |
static boolean |
checkAdminReply(MQeAdminMsg replyMsg)
checkAdminReply() Check to see if a good reply was received. |
static MQeFields |
primeAdminMsg(java.lang.String onQMgr,
MQeAdminMsg msg)
primeAdminMsg() Prime an admin message. |
static MQeAdminMsg |
processAdminMsg(MQeQueueManager myQMgr,
java.lang.String onQMgr,
MQeAdminMsg msg,
MQeFields filter)
processAdminMsg() Send the admin message, and wait for a repy. |
static MQeFields |
sendWaitMessage(MQeQueueManager myQMgr,
java.lang.String targetQMgrName,
MQeAdminMsg msg)
To put the specified message to the Admin Q on the specified MQe queue manager and get a response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
public static java.lang.String ADMIN_Q_NAME
public static java.lang.String REPLY_TO_Q
public static int TIMEOUT_MILLISECS
Constructor Detail |
public MQeAbstractCmdLineAdminTool()
Method Detail |
public static MQeFields sendWaitMessage(MQeQueueManager myQMgr, java.lang.String targetQMgrName, MQeAdminMsg msg) throws java.lang.Exception
myQMgr
- A reference to an active MQe queue manager, which will be used send and receive
MQe administration messages.targetQMgrName
- The name of the queue manager to which the message will be sent.msg
- The message we will send to the target queue manager, and await a response.
java.lang.Exception
- fails it the reply indicates the Admin message
caused a failure, or if there was a failure posting the message.public static MQeAdminMsg processAdminMsg(MQeQueueManager myQMgr, java.lang.String onQMgr, MQeAdminMsg msg, MQeFields filter) throws java.lang.Exception
myQMgr
- A reference to an active MQe queue manager, which will be
used to send and receive administration messages.onQMgr
- - the name of the queue manager where the message will be sent.msg
- - the admin message to sendfilter
- - an mqefields object that allows request and reply
messages to be correlated.
java.lang.Exception
public static boolean checkAdminReply(MQeAdminMsg replyMsg) throws java.lang.Exception
replyMsg
- MQeAdminMsg - reply message to check
java.lang.Exception
public static MQeFields primeAdminMsg(java.lang.String onQMgr, MQeAdminMsg msg) throws java.lang.Exception
onQMgr
- - the name of the queue manager where the message will be sent.msg
- - the admin message to prime
java.lang.Exception
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |