examples.administration.commandline
Class StoreAndForwardQueueCreator
java.lang.Object
|
+--examples.administration.commandline.MQeAbstractCmdLineAdminTool
|
+--examples.administration.commandline.StoreAndForwardQueueCreator
- public class StoreAndForwardQueueCreator
- extends MQeAbstractCmdLineAdminTool
To start a queue manager and add a store and forward queue to its configuration.
Syntax
java examples.administration.commandline.StoreAndForwardQueueCreator
<queue_name >
<hosting_queue_manager>
<compressor>
<cryptor>
<authenticator>
<queue_manager_name>
<ini_file>
<storageLocation>
Parameters
- queue_name
- is the name of the remote queue we are creating.
- hosting_queue_manager
- is the name of the queue manager on which the messages will be pushed to.
Specify the name of the queue manager on which the queue exists if you wish
this store-and-forward queue to just collect messages, and have them retrieved by
a home-server queue.
- 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.
- queue_manager_name
- is the name of the queue manager on which the remote queue
definition is to be created on.
- ini_file
- Name of the ini file used to open a client queue manager, to
send the admin messages from.
- storageLocation
- A string, following the syntax <adapter>:<path>
Where the adapter is a class name without the .class extension,
and the path is the name of the directory in which the files containing
queue messages are stored.
eg: com.ibm.mqe.adapers.MQeDiskFieldsAdapter:C:\ServerQMgr23\RemoteQ48
Specify "default" if you want to set this to the default value chosen by MQe.
Field Summary |
static short[] |
version
|
Method Summary |
void |
activate(java.lang.String[] args)
Does all the work. |
static void |
createStoreAndForwardQueue(java.lang.String q,
java.lang.String qmgr,
java.lang.String hostingQMgr,
MQeQueueManager myQMgr,
java.lang.String compressorClass,
java.lang.String cryptorClass,
java.lang.String authenticatorClass,
java.lang.String storageLocation)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
version
public static short[] version
StoreAndForwardQueueCreator
public StoreAndForwardQueueCreator()
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
- Does all the work.
- Parameters:
args
-
- Returns:
- void
- Throws:
java.lang.Exception
createStoreAndForwardQueue
public static void createStoreAndForwardQueue(java.lang.String q,
java.lang.String qmgr,
java.lang.String hostingQMgr,
MQeQueueManager myQMgr,
java.lang.String compressorClass,
java.lang.String cryptorClass,
java.lang.String authenticatorClass,
java.lang.String storageLocation)
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 queue to be created.qmgr
- The queue manager on which the remote queue definition will be created.hostingQMgr
- The queue manager to which the new store-and-forward queue will push messages.myQMgr
- A reference to an active MQe queue manager, which will be used to send and receive
MQe administration messages and responses.compressorClass
- The name of the compression class to use (or alias which resolves to a class name)
Should include the .class extension.
Specify "null" if you don't want to use a compressor.cryptorClass
- The name of the cryptor class to use (or alias which resolves to a class name)
Should include the .class extension.
Specify "null" if you don't want to use a cryptor.authenticatorClass
- The name of the authenticator class to use (or alias which resolves to a class name)
Should include the .class extension.
Specify "null" if you don't want to use an authenticatorstorageLocation
- A string, following the syntax <adapter>:<path>
Where the adapter is a class name without the .class extension,
and the path is the name of the directory in which the files containing
queue messages are stored.
eg: com.ibm.mqe.adapers.MQeDiskFieldsAdapter:C:\ServerQMgr23\RemoteQ48
Specify "default" if you want to set this to the default value chosen by MQe.
- Returns:
- void
- Throws:
java.lang.Exception