Websphere MQ Everyplace

examples.install
Class SimpleCreateQM

java.lang.Object
  |
  +--examples.install.SimpleCreateQM
Direct Known Subclasses:
CreateQueueManager, DefineQueueManager

public class SimpleCreateQM
extends java.lang.Object


Field Summary
 java.lang.String defChnlAttrRuleAlias
           
 java.lang.String defQueueAdapter
           
 java.lang.String defQueueDir
           
 java.lang.String defRegDir
           
 java.lang.String defRegSeparator
           
static java.lang.String TEXT_LABEL_DEFAULT
           
static short[] version
           
 
Constructor Summary
SimpleCreateQM()
          SimpleCreateQM constructor.
 
Method Summary
 boolean createQMgr(java.lang.String filename, java.lang.String queueDir)
          This does all the work: validate the configuration file, generate the queue directory and create the Queue manager.
 boolean createQMgr(java.lang.String filename, java.lang.String queueDir, java.lang.String qStoreAdminQ, java.lang.String qStoreAdminReplyQ, java.lang.String qStoreDeadLetterQ, java.lang.String qStoreSystemDefaultLocalQ)
          This does all the work: validate the configuration file, generate the queue directory and create the Queue manager.
 void defQMRegistry(MQeFields configFields, java.lang.String queueDir, boolean adminQ, boolean adminReplyQ, boolean systemQ, boolean deadLetterQ)
           
 void defQMRegistry(MQeFields configFields, java.lang.String queueDir, boolean adminQ, boolean adminReplyQ, boolean systemQ, boolean deadLetterQ, java.lang.String qStoreAdminQ, java.lang.String qStoreAdminReplyQ, java.lang.String qStoreDeadLetterQ, java.lang.String qStoreSystemDefaultLocalQ)
          defQMRegistry - create the queue manager, ie create the registry definitions.
static void main(java.lang.String[] args)
          Start the application.
 
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

defQueueDir

public java.lang.String defQueueDir

defQueueAdapter

public java.lang.String defQueueAdapter

defRegDir

public java.lang.String defRegDir

defRegSeparator

public java.lang.String defRegSeparator

defChnlAttrRuleAlias

public java.lang.String defChnlAttrRuleAlias

TEXT_LABEL_DEFAULT

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

SimpleCreateQM

public SimpleCreateQM()
SimpleCreateQM constructor.

Method Detail

createQMgr

public boolean createQMgr(java.lang.String filename,
                          java.lang.String queueDir)
                   throws java.lang.Exception
This does all the work: validate the configuration file, generate the queue directory and create the Queue manager.

Parameters:
filename - Name of the startup .ini file
queueDir - Name of the directory to store the queues. If this is null, a default is created.
Returns:
'true' if successful, 'false' if it didn't complete
Throws:
java.lang.exception - Thrown on error
java.lang.Exception

createQMgr

public boolean createQMgr(java.lang.String filename,
                          java.lang.String queueDir,
                          java.lang.String qStoreAdminQ,
                          java.lang.String qStoreAdminReplyQ,
                          java.lang.String qStoreDeadLetterQ,
                          java.lang.String qStoreSystemDefaultLocalQ)
                   throws java.lang.Exception
This does all the work: validate the configuration file, generate the queue directory and create the Queue manager.

Parameters:
filename - Name of the startup .ini file
queueDir - Name of the directory to store the queues. If this is null, a default is created.
qStoreAdminQ - The exact location the queue will put it's data, or "default"
qStoreAdminReplyQ - The exact location the queue will put it's data, or "default"
qStoreDeadLetterQ - The exact location the queue will put it's data, or "default"
qStoreSystemDefaultLocalQ - The exact location the queue will put it's data, or "default"
Returns:
'true' if successful, 'false' if it didn't complete
Throws:
java.lang.exception - Thrown on error
java.lang.Exception

defQMRegistry

public void defQMRegistry(MQeFields configFields,
                          java.lang.String queueDir,
                          boolean adminQ,
                          boolean adminReplyQ,
                          boolean systemQ,
                          boolean deadLetterQ)
                   throws java.lang.Exception
java.lang.Exception

defQMRegistry

public void defQMRegistry(MQeFields configFields,
                          java.lang.String queueDir,
                          boolean adminQ,
                          boolean adminReplyQ,
                          boolean systemQ,
                          boolean deadLetterQ,
                          java.lang.String qStoreAdminQ,
                          java.lang.String qStoreAdminReplyQ,
                          java.lang.String qStoreDeadLetterQ,
                          java.lang.String qStoreSystemDefaultLocalQ)
                   throws java.lang.Exception
defQMRegistry - create the queue manager, ie create the registry definitions. If there is an error, any newly created definitions are deleted so that the registry is left in its initial state.

Parameters:
queueDir - The directory for the queue store.
adminQ - Define an admin queue.
adminReplyQ - Define an admin reply queue.
systemQ - Define a default system local queue.
deadLetterQ - Define a dead letter queue.
Throws:
java.lang.exception
java.lang.Exception

main

public static void main(java.lang.String[] args)
Start the application.


Websphere MQ Everyplace