|
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 | +--examples.administration.commandline.ListenerSetMaxChannels
A command-line tool to allow someone to set the max channels attribute of a listener without programming anything in Java. This version uses admin messages to send the command to the destination queue manager, so can be used to update the max channels attribute for a listener on a remote queue manager.
Syntax
java examples.administration.commandline.ListenerSetMaxChannels <listenerName> <qMgr> <maxChannels> <ini_file>
Examples
This tool would normally be used to create a straight listener on the local queue manager for example: ...ListenerSetMaxChannelsl ListenerName DeviceQM maxChannels C:\MQe\...\MyDeviceQM.ini
Field Summary | |
static short[] |
version
|
Fields inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool |
ADMIN_Q_NAME, REPLY_TO_Q, TIMEOUT_MILLISECS |
Constructor Summary | |
ListenerSetMaxChannels()
|
Method Summary | |
void |
activate(java.lang.String[] args)
Gathers command-line parameters into variables, and calls the method which creates the queue. |
static void |
main(java.lang.String[] args)
Entry point from the command line. |
static void |
setMaxChannels(java.lang.String listenerName,
int maxChannels,
java.lang.String targetQMgr,
MQeQueueManager myQMgr)
Creates an admin message which will cause a listener to update its maximum allowed channels. |
Methods inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool |
checkAdminReply, primeAdminMsg, processAdminMsg, sendWaitMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
Constructor Detail |
public ListenerSetMaxChannels()
Method Detail |
public static void main(java.lang.String[] args)
args
- Command-line arguments being passed in.public void activate(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
public static final void setMaxChannels(java.lang.String listenerName, int maxChannels, java.lang.String targetQMgr, MQeQueueManager myQMgr) throws java.lang.Exception
listenerName
- (java.lang.String) The name of listener.maxChannels
- (int) the maximum allowed number of channels.targetQMgr
- The name of the queue manager to which the admin message will be sent.myQMgr
- The reference to an active MQe queue manager object, which will be
used to send the admin message, and receive the reply.
java.lang.Exception
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |