|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.midp.exampleapp.msgpump.MsgPumpModel | +--examples.midp.exampleapp.msgpump.MsgPumpModelServer
This is the server side of the message pump model. The purpose of the server is to display messages it receives to the user.
Field Summary | |
static short[] |
version
|
Fields inherited from class examples.midp.exampleapp.msgpump.MsgPumpModel |
compressor, cryptor, DEFAULT_SECURITY, DEFAULT_SERVER_Q_NAME, DEFAULT_SERVER_QM_NAME, MESSAGE_SECURITY, NO_SECURITY, QUEUE_SECURITY, SECURITY_KEY, sync |
Method Summary | |
java.lang.String |
getRequestQueue()
Gets the request queue of the server - the queue messages are pumped to. |
void |
pause()
The server cannot be paused. |
protected void |
performInitialConfiguration()
Used to initially set up the queue manager, queues and anything else required by the model ( listeners etc ). |
void |
processDataGramMsg(MQeMsgObject message,
java.lang.String qMgrName,
java.lang.String qName)
A datagram message has been received. |
protected void |
processMsg(java.lang.String qMgrName,
java.lang.String qName,
MQeMsgObject msg)
A message of some form has been received, so display it and consume it ( remove it from the queue ). |
void |
processReplyMsg(MQeMsgObject message,
java.lang.String qMgrName,
java.lang.String qName)
A reply message has been received. |
void |
processRequestMsg(MQeMsgObject message,
java.lang.String qMgrName,
java.lang.String qName)
A new request message has been received. |
void |
resume()
Resumes the model. |
void |
run()
|
void |
stop()
Called when something wants the model to stop. |
Methods inherited from class examples.midp.exampleapp.msgpump.MsgPumpModel |
createMessageAttribute, finish, getController, getLocalQMname, getMessageAttribute, getMsgService, getQMrules, getTimestamp, initialize, isSecurity, padNumber, processStatus, setController, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
Method Detail |
public void run()
Runnable.run()
protected void performInitialConfiguration() throws java.lang.Exception
MsgPumpModel
performInitialConfiguration
in class MsgPumpModel
java.lang.Exception
MsgPumpModel.performInitialConfiguration()
public void pause()
pause
in class MsgPumpModel
MsgPumpModel.pause()
public void resume()
MsgPumpModel
resume
in class MsgPumpModel
As the server cannot be paused, it cannot be resumed either
public void stop()
MsgPumpModel
stop
in class MsgPumpModel
MsgPumpModel.stop()
public void processDataGramMsg(MQeMsgObject message, java.lang.String qMgrName, java.lang.String qName)
MessageConsumer
message
- The message to displayqMgrName
- The queue manager the message is onqName
- The queue the message is on
MessageConsumer.processDataGramMsg(MQeMsgObject, String, String)
public void processReplyMsg(MQeMsgObject message, java.lang.String qMgrName, java.lang.String qName)
MessageConsumer
message
- The message to displayqMgrName
- The queue manager the message is onqName
- The queue the message is on
MessageConsumer.processReplyMsg(MQeMsgObject, String, String)
public void processRequestMsg(MQeMsgObject message, java.lang.String qMgrName, java.lang.String qName)
MessageConsumer
message
- The message to display.qMgrName
- The queue manager the message is onqName
- The queue the message is on
MessageConsumer.processRequestMsg(MQeMsgObject, String, String)
protected void processMsg(java.lang.String qMgrName, java.lang.String qName, MQeMsgObject msg)
qMgrName
- The name of the queue managerqName
- The name of the queuemsg
- The message to display.
public java.lang.String getRequestQueue()
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |