examples.administration.commandline
Class QueueManagerUpdater
java.lang.Object
|
+--examples.administration.commandline.MQeAbstractCmdLineAdminTool
|
+--examples.administration.commandline.QueueManagerUpdater
- public class QueueManagerUpdater
- extends MQeAbstractCmdLineAdminTool
To start a queue manager and add a local queue to its configuration.
Syntax
java examples.administration.commandline.QueueManagerUpdater
<rule>
<queue_manager_name>
<ini_file>
Parameters
- rule
- Is the name of the queue manager rule. This is a class name, including the
.class file extension, or an MQe alias which resolves to a class name.
- queue_manager_name
- is the name of the queue manager on which is being updated
- ini_file
- Name of the ini file used to open a client queue manager, to
send the admin messages from.
Field Summary |
static short[] |
version
|
Method Summary |
void |
activate(java.lang.String[] args)
Gets command-line parameters into variables, and calls the method which constructs
and sends the admin message. |
static void |
main(java.lang.String[] args)
Entry point from the command line. |
static void |
updateQueueManager(java.lang.String qMgr,
java.lang.String qMgrRule,
MQeQueueManager myQMgr)
Creates an admin message which will create a queue, and sends it
to the queue manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
version
public static short[] version
QueueManagerUpdater
public QueueManagerUpdater()
main
public static void main(java.lang.String[] args)
- Entry point from the command line.
activate
public void activate(java.lang.String[] args)
throws java.lang.Exception
- Gets command-line parameters into variables, and calls the method which constructs
and sends the admin message.
- Parameters:
args
-
- Returns:
- void
- Throws:
java.lang.Exception
updateQueueManager
public static void updateQueueManager(java.lang.String qMgr,
java.lang.String qMgrRule,
MQeQueueManager myQMgr)
throws java.lang.Exception
- Creates an admin message which will create a queue, and sends it
to the queue manager.
- Parameters:
qMgr
- The queue manager whose details are to be updated.qMgrRule
- The rule class which will be set into the queue manager configuration.myQMgr
- A reference to an active MQe queue manager which will be used to send and
receive MQe administration messages and responses.
- Returns:
- void
- Throws:
java.lang.Exception