Websphere MQ Everyplace

examples.mqbridge.administration.commandline
Class IsQueueManagerBridgeCapable

java.lang.Object
  |
  +--examples.administration.commandline.MQeAbstractCmdLineAdminTool
        |
        +--examples.mqbridge.administration.commandline.IsQueueManagerBridgeCapable

public class IsQueueManagerBridgeCapable
extends MQeAbstractCmdLineAdminTool

Queries the queue manager and finds whether the queue manager is bridge capable or not.

If the queue manager is bridge capable, the text "bridge-capable=true" is put to stdout.

If the queue manager is not bridge capable, the text "bridge-capable=false" is put to stdout.

If the answer cannot be obtained, the text "bridge-capable=unknown" is put to stdout.

Syntax: java examples.mqbridge.administration.commandline.IsQueueManagerBridgeCapable <targetQMgr> <iniFile>

targetQMgr
The name of the MQe queue manager to which an Inquire admin message will be sent. The queue manager must be known to the one described in the .ini file.
iniFile
An .ini file containing details describing a queue manager which will be instantiated in memory by this tool. This queue manager will be used to send the administration message required to find out whether the target queue manager is bridge capable or not.


Field Summary
static java.lang.String syntax
          Syntax of the command.
static short[] version
          The version of this example.
 
Fields inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool
ADMIN_Q_NAME, REPLY_TO_Q, TIMEOUT_MILLISECS
 
Constructor Summary
IsQueueManagerBridgeCapable()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Gathers the parameters and passes them to a method which does the command.
 boolean inquireBridgeCapable(java.lang.String targetQMgr, MQeQueueManager myQMgr)
          Find out if the target queue manager is bridge capable, using the queue manager passed.
static void main(java.lang.String[] args)
          Entry point from the command line.
 
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

version

public static short[] version
The version of this example.


syntax

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

See Also:
Constant Field Values
Constructor Detail

IsQueueManagerBridgeCapable

public IsQueueManagerBridgeCapable()
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

inquireBridgeCapable

public boolean inquireBridgeCapable(java.lang.String targetQMgr,
                                    MQeQueueManager myQMgr)
                             throws java.lang.Exception
Find out if the target queue manager is bridge capable, using the queue manager passed.

Returns:
true if the target queue manager is bridge capable, false otherwise.
Throws:
java.lang.Exception - if a definate true/false cannot be obtained.

Websphere MQ Everyplace