Websphere MQ Everyplace

examples.mqbridge.administration.commandline
Class MQeBridgesStop

java.lang.Object
  |
  +--examples.mqbridge.administration.commandline.MQeBridgesStop

public class MQeBridgesStop
extends java.lang.Object

A command-line tool to stop a bridges resource running.

All children resources of the bridges resource are stopped as a result.

Syntax

java examples.mqbridge.administration.commandline.MQBridgesStop <affectChildren> <qMgr> <iniFile>

Parameters

qMgr
The name of the queue manager to which the admin msg should be sent.
iniFile
The fully-qualified path name of the .ini file of the server queue manager.

Example

java ...MQBridgesStop MyQMgr C:\MQe\QMgrs\MyQMgr\MyQMgr.ini

Stops the bridges resource, and all bridge, MQSeries proxy, client connection and transmission queue listener bridge resources which exist on the MyQMgr, using the MyQMgr to send the administration message.


Field Summary
static java.lang.String syntax
          Syntax of the command.
static short[] version
           
 
Constructor Summary
MQeBridgesStop()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Gathers the parameters and passes them to a method which does the command.
static void main(java.lang.String[] args)
          Entry point from the command line.
 void stopMQBridges(java.lang.String targetQMgr, MQeQueueManager myQMgr)
          Creates an admin message which will stop a bridges resource, and all those resources which are children.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static short[] version

syntax

public static final java.lang.String syntax
Syntax of the command.

See Also:
Constant Field Values
Constructor Detail

MQeBridgesStop

public MQeBridgesStop()
Method Detail

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
Gathers the parameters and passes them to a method which does the command.

Parameters:
args -
Returns:
void
Throws:
java.lang.Exception

stopMQBridges

public void stopMQBridges(java.lang.String targetQMgr,
                          MQeQueueManager myQMgr)
                   throws java.lang.Exception
Creates an admin message which will stop a bridges resource, and all those resources which are children.

Parameters:
targetQMgr - The name of the MQe queue manager on which the bridge will be created.
myQMgr - A reference to an active MQe queue manager, used to send mesages from and receive messages using.
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace