|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aa4mm.basic.coupling.shared_memory.utils.jmsBindings.jmsOutput<O>
O
- public class jmsOutput<O>
This class represents an output binding to JMS. It provides a way to connect, and read messages into the JMS platform.
Field Summary | |
---|---|
protected java.lang.Class<O> |
classO
The type of input data (read by the simulator) |
private javax.jms.TopicSubscriber |
inputData
JMS objects used to exchange data with other simulators : input channel receiver |
protected java.lang.String |
name
Name of the channel |
private javax.jms.TopicSession |
topicSession
JMS objects used to exchange data with other simulators : exchange channel |
Constructor Summary | |
---|---|
jmsOutput(java.lang.Class<O> myClassO,
java.lang.String myName)
|
Method Summary | |
---|---|
javax.jms.TopicSubscriber |
getInputData()
|
javax.jms.TopicSession |
getTopicSession()
|
void |
init(java.lang.String topicName,
java.lang.String connectionFactoryName)
Discover & initialize JMS objects by default the topicName = "shared_data" and the topic connection fa ctory name = "shared_data_topic_connection_factory" TODO add function parameters (such as 'guest') see below |
javax.jms.ObjectMessage |
read()
|
void |
setInputData(javax.jms.TopicSubscriber inputData)
|
void |
setTopicSession(javax.jms.TopicSession topicSession)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.jms.TopicSession topicSession
private javax.jms.TopicSubscriber inputData
protected java.lang.Class<O> classO
protected java.lang.String name
Constructor Detail |
---|
public jmsOutput(java.lang.Class<O> myClassO, java.lang.String myName)
Method Detail |
---|
public javax.jms.TopicSubscriber getInputData()
public void setInputData(javax.jms.TopicSubscriber inputData)
public javax.jms.TopicSession getTopicSession()
public void setTopicSession(javax.jms.TopicSession topicSession)
public void init(java.lang.String topicName, java.lang.String connectionFactoryName) throws javax.naming.NamingException, javax.jms.JMSException
javax.naming.NamingException
javax.jms.JMSException
public javax.jms.ObjectMessage read() throws javax.jms.JMSException
javax.jms.JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |