|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.mqbridge.transformers.MQeBaseTransformer
A simple MQ to MQe transformer class.
Field Summary | |
static int |
MQMT_MQE_FIELDS
An MQe encoded message that did not originate from MQe. |
static int |
MQMT_MQE_FIELDS_FROM_MQE
An MQe encoded message that originated from MQe |
static short[] |
version
Version number of this class |
Constructor Summary | |
MQeBaseTransformer()
|
Method Summary | |
void |
activate(java.util.StringTokenizer params)
Tells the transformer of any parameters that were supplied with the transformer definition. |
com.ibm.mq.MQMessage |
mqSeriesFormatFromMQe(MQeMQMsgObject MQeMsg)
Convert an MQ-Style MQe message (MQeMQMsgObject) into an MQ message. |
com.ibm.mq.MQMessage |
mqSeriesFormatFromMQe(MQeMQMsgObject msg,
java.lang.String remoteQMgrName,
java.lang.String remoteQName)
Convert a MQ-Style MQe message (MQeMQMsgObject) into a MQ message |
MQeMQMsgObject |
mqSeriesFormatToMQe(com.ibm.mq.MQMessage MQMsg)
Convert an MQ message to an MQeMQMsgObject, ie maintain the MQ Series style of the message. |
MQeMsgObject |
mqSeriesFormatToMQe(com.ibm.mq.MQMessage msg,
java.lang.String remoteQMgrName,
java.lang.String remoteQName)
Convert a MQ format message which is not MQe encoded into an MQe format message. |
com.ibm.mq.MQMessage |
transform(MQeMsgObject msg,
MQeMQBridgeQueue queue,
com.ibm.mq.MQPutMessageOptions options)
Convert a MQe format message into a MQ format message. |
MQeMsgObject |
transform(com.ibm.mq.MQMessage msg,
java.lang.String remoteQMgrName,
java.lang.String remoteQName)
Convert a MQ format message into a MQe format message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
public static final int MQMT_MQE_FIELDS_FROM_MQE
public static final int MQMT_MQE_FIELDS
Constructor Detail |
public MQeBaseTransformer()
Method Detail |
public void activate(java.util.StringTokenizer params) throws java.lang.Exception
activate
in interface MQeTransformerInterface
params
- StringTokenizer containing the transformer
definition parameters.
java.lang.Exception
- If the parameters are invalid or
the transformer cannot be initialised.public MQeMsgObject transform(com.ibm.mq.MQMessage msg, java.lang.String remoteQMgrName, java.lang.String remoteQName) throws java.lang.Exception
transform
in interface MQeTransformerInterface
msg
- The MQSeries message object we are to transform.remoteQMgrName
- The Destination Remote Queue Manager Name
(from the MQ Remote Queue Definition)remoteQName
- The Destination Remote Queue Name (from the
MQ Remote Queue Definition).
java.lang.Exception
- propagated from the called methods.public com.ibm.mq.MQMessage transform(MQeMsgObject msg, MQeMQBridgeQueue queue, com.ibm.mq.MQPutMessageOptions options) throws java.lang.Exception
transform
in interface MQeTransformerInterface
msg
- The MQe message object we are to transform.queue
- A reference to the MQe queue the put the message.
(e.g. For determining default expiry time etc...)options
- A reference to a MQPutMessageOptions object in which any
required options for the put should be placed.
java.lang.Exception
- If the parameters are not valid, or if
the message is in a format that this transformer does not understand.public MQeMsgObject mqSeriesFormatToMQe(com.ibm.mq.MQMessage msg, java.lang.String remoteQMgrName, java.lang.String remoteQName) throws java.lang.Exception
msg
- The MQSeries message object we are to transform.remoteQMgrName
- The Destination Remote Queue Manager Name
(from the MQ Remote Queue Definition)remoteQName
- The Destination Remote Queue Name (from the
MQ Remote Queue Definition).
java.lang.Exception
- propagated from the called methods.public MQeMQMsgObject mqSeriesFormatToMQe(com.ibm.mq.MQMessage MQMsg) throws java.lang.Exception
MQMsg
- The MQSeries message object we are to transform.
java.lang.Exception
- Propagated from called methods.public com.ibm.mq.MQMessage mqSeriesFormatFromMQe(MQeMQMsgObject msg, java.lang.String remoteQMgrName, java.lang.String remoteQName) throws java.lang.Exception
msg
- The MQe message object we are to transform.remoteQMgrName
- The Destination Remote Queue Manager NameremoteQName
- The Destination Remote Queue Name
java.lang.Exception
- If something goes wrong in the transform.public com.ibm.mq.MQMessage mqSeriesFormatFromMQe(MQeMQMsgObject MQeMsg) throws java.lang.Exception
java.lang.Exception
- Propagated from called methods.
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |