Websphere MQ Everyplace

examples.administration.commandline
Class HomeServerQueueCreator

java.lang.Object
  |
  +--examples.administration.commandline.MQeAbstractCmdLineAdminTool
        |
        +--examples.administration.commandline.HomeServerQueueCreator

public class HomeServerQueueCreator
extends MQeAbstractCmdLineAdminTool

To start a queue manager and add a home-server queue to its configuration.

Syntax

java examples.administration.commandline.HomeServerQueueCreator queue_name <get_from_qmgr> <compressor> <cryptor> <authenticator> <poll_period> <changing_qmgr> <ini_file>

Parameters

queue_name
The name of the home server queue we want to create. This should match the name of the home server queue from which mesages will be "pulled"
get_from_qmgr
The name of the MQe queue manager from which messages will be "pulled". This queue manager will have a store-and-forward queue of the same name as the queue_name parameter above.
poll_period
A time, in milliseconds, indicating the time period between successive attempts for the home server queue to get messages from the remote store-and-foreward queue. A special value of 0 means that polls are controlled by the queue manager rule, and that the home server queue never polls of it's own accord.
changing_qmgr
The name of the queue manager which is going to have the home-server queue created on it. This might normally be the same queue manager as described by the .ini file.
ini_file
The fully-qualified path of the .ini file. The queue manager described by this .ini file will be instantiated in memory, and used to send and receive MQe admin messages.
compressor
The name of the class (or alias which resolves into a class) indicating which compressor the queue should use to store messages on the disk. Use "null" if you don't want a compressor.
cryptor
The name of the class (or alias which resolves into a class) indicating which cryptor the queue should use to store messages on the disk. Use "null" if you don't want a cryptor.
authenticator
The name of the class (or alias which resolves into a class) indicating which authenticator the queue should use to store messages on the disk. Use "null" if you don't want an authenticator.


Field Summary
static java.lang.String syntax
           
static short[] version
           
 
Fields inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool
ADMIN_Q_NAME, REPLY_TO_Q, TIMEOUT_MILLISECS
 
Constructor Summary
HomeServerQueueCreator()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Gathers the command-line parameters into variables, and calls the method which creates the queue.
static void createQueue(java.lang.String q, java.lang.String qmgr, java.lang.String getFromQMgr, java.lang.String compressorClass, java.lang.String cryptorClass, java.lang.String authenticatorClass, long pollPeriod, MQeQueueManager myQMgr)
          Creates an admin message which will create a queue, and sends it to the queue manager.
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

syntax

public static final java.lang.String syntax
See Also:
Constant Field Values
Constructor Detail

HomeServerQueueCreator

public HomeServerQueueCreator()
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 command-line parameters into variables, and calls the method which creates the queue.

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

createQueue

public static void createQueue(java.lang.String q,
                               java.lang.String qmgr,
                               java.lang.String getFromQMgr,
                               java.lang.String compressorClass,
                               java.lang.String cryptorClass,
                               java.lang.String authenticatorClass,
                               long pollPeriod,
                               MQeQueueManager myQMgr)
                        throws java.lang.Exception
Creates an admin message which will create a queue, and sends it to the queue manager.

Parameters:
q - The name of the home server queue
qmgr - The queue manager on which the home server queue will be created
getFromQMgr - The name of the queue manager from which this new home server queue will "pull" messages.
pollPeriod - The period (milliseconds) used between successive "poll" attempts to "pull" messages from the store-and-forward queue.
myQMgr - A reference to an active MQe queue manager, used to send and receive messages.
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace