

Public Member Functions | |
| DefaultPublisherImpl () throws MOMException | |
| DefaultPublisherImpl (String username, String password, String brokerList, Boolean loadBalancing, Boolean sequential, Boolean selectorAtBroker) throws MOMException | |
| boolean | isClosed () |
| void | setExceptionListener (cern.cmw.mom.pubsub.ExceptionListener listener) |
| void | close () |
| BytesMessage | createBytesMessage () throws JMSException |
| MapMessage | createMapMessage () throws JMSException |
| Message | createMessage () throws JMSException |
| ObjectMessage | createObjectMessage () throws JMSException |
| StreamMessage | createStreamMessage () throws JMSException |
| TextMessage | createTextMessage () throws JMSException |
| void | onException (JMSException ex) |
| void | open () throws MOMException |
| void | publish (String topic, Message message) throws JMSException, NamingException |
| void | publish (String topic, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException, NamingException |
Protected Member Functions | |
| void | finalize () throws Throwable |
Static Package Attributes | |
| static Category | cat = Category.getInstance(DefaultPublisherImpl.class.getName()) |
Private Member Functions | |
| Topic | createTopic (String topic) throws JMSException, NamingException |
| void | initialize (boolean retry) throws MOMException |
Private Attributes | |
| Boolean | loadBalancing |
| Boolean | selectorAtBroker |
| Boolean | sequential |
| cern.cmw.mom.pubsub.ExceptionListener | listener = null |
| JMSTopicConnection | connection = null |
| Map | topicDirectory = null |
| Properties | momProperties = null |
| String | brokerList |
| String | password |
| String | username |
| TopicPublisher | publisher = null |
| TopicSession | session = null |
| boolean | closed = true |
| int | defaultPersistance |
| int | defaultPriority |
| long | defaultTimeToLive |
Implementation class.
| cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::DefaultPublisherImpl | ( | ) | throws MOMException [inline] |
Constructor DefaultPublisherImpl
| MOMException |
References brokerList, loadBalancing, open(), password, selectorAtBroker, sequential, and username.
| cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::DefaultPublisherImpl | ( | String | username, | |
| String | password, | |||
| String | brokerList, | |||
| Boolean | loadBalancing, | |||
| Boolean | sequential, | |||
| Boolean | selectorAtBroker | |||
| ) | throws MOMException [inline] |
Constructor DefaultPublisherImpl
| username | the user name | |
| password | the password | |
| brokerList | the coma separated broker URLs list (in the form [protocol://]hostname[:port]) | |
| loadBalancing | if true, indicates that the client is willing to have a connect request re-directed to another broker within a cluster | |
| sequential | if true, the broker list will be scanned sequentially | |
| selectorAtBroker | if true, selectors will be evaluated on the broker side |
| MOMException |
References brokerList, loadBalancing, open(), password, selectorAtBroker, sequential, and username.
| void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::close | ( | ) | [inline] |
Method close
Implements cern::cmw::mom::pubsub::Publisher.
References cat, cern::cmw::mom::pubsub::impl::JMSConnection::close(), closed, connection, publisher, session, cern::cmw::mom::pubsub::impl::JMSConnection::stop(), and topicDirectory.
Referenced by finalize().
| BytesMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createBytesMessage | ( | ) | throws JMSException [inline] |
Method createBytesMessage
| JMSException |
Implements cern::cmw::mom::pubsub::Publisher.
| MapMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createMapMessage | ( | ) | throws JMSException [inline] |
Method createMapMessage
| JMSException |
Implements cern::cmw::mom::pubsub::Publisher.
| Message cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createMessage | ( | ) | throws JMSException [inline] |
Method createMessage
| JMSException |
Implements cern::cmw::mom::pubsub::Publisher.
| ObjectMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createObjectMessage | ( | ) | throws JMSException [inline] |
Method createObjectMessage
| JMSException |
Implements cern::cmw::mom::pubsub::Publisher.
| StreamMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createStreamMessage | ( | ) | throws JMSException [inline] |
Method createStreamMessage
| JMSException |
Implements cern::cmw::mom::pubsub::Publisher.
| TextMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createTextMessage | ( | ) | throws JMSException [inline] |
Method createTextMessage
| JMSException |
Implements cern::cmw::mom::pubsub::Publisher.
| Topic cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createTopic | ( | String | topic | ) | throws JMSException, NamingException [inline, private] |
Method createTopic
| topic |
| JMSException | ||
| NamingException |
References cat, connection, cern::cmw::mom::pubsub::impl::JMSConnection::getUsername(), session, and topicDirectory.
Referenced by publish().
| void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::finalize | ( | ) | throws Throwable [inline, protected] |
| void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::initialize | ( | boolean | retry | ) | throws MOMException [inline, private] |
Method initialize.
| retry |
| MOMException |
References brokerList, closed, cern::cmw::mom::pubsub::impl::JMSConnection::connect(), connection, cern::cmw::mom::pubsub::impl::JMSTopicConnection::createTopicSession(), defaultPersistance, defaultPriority, defaultTimeToLive, loadBalancing, momProperties, password, publisher, selectorAtBroker, sequential, session, cern::cmw::mom::pubsub::impl::JMSConnection::setExceptionListener(), cern::cmw::mom::pubsub::impl::JMSConnection::start(), topicDirectory, and username.
Referenced by open().
| boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::isClosed | ( | ) | [inline] |
| void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::onException | ( | JMSException | ex | ) | [inline] |
| void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::open | ( | ) | throws MOMException [inline] |
Method open
| MOMException |
References cat, and initialize().
Referenced by DefaultPublisherImpl().
| void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::publish | ( | String | topic, | |
| Message | message, | |||
| int | deliveryMode, | |||
| int | priority, | |||
| long | timeToLive | |||
| ) | throws JMSException, NamingException [inline] |
Publish a message to the given topic.
| topic | The String representation of the topic | |
| message | The Message object to publish | |
| deliveryMode | The Message persistence | |
| priority | The Message priority | |
| timeToLive | The Message time to live |
| JMSException | if JMS fails to publish the message due to some internal JMS error. | |
| NamingException | if there is a violation in the namespace policy. |
Implements cern::cmw::mom::pubsub::Publisher.
References cat, closed, createTopic(), and publisher.
| void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::publish | ( | String | topic, | |
| Message | message | |||
| ) | throws JMSException, NamingException [inline] |
Method publish
| topic | ||
| message |
| JMSException | ||
| NamingException |
Implements cern::cmw::mom::pubsub::Publisher.
References defaultPersistance, defaultPriority, and defaultTimeToLive.
| void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::setExceptionListener | ( | cern.cmw.mom.pubsub.ExceptionListener | listener | ) | [inline] |
String cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::brokerList [private] |
Referenced by DefaultPublisherImpl(), and initialize().
Category cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::cat = Category.getInstance(DefaultPublisherImpl.class.getName()) [static, package] |
Referenced by close(), createTopic(), finalize(), onException(), open(), and publish().
boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::closed = true [private] |
Referenced by close(), createTopic(), and initialize().
Referenced by initialize(), and publish().
Referenced by initialize(), and publish().
Referenced by initialize(), and publish().
cern.cmw.mom.pubsub.ExceptionListener cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::listener = null [private] |
Referenced by setExceptionListener().
Boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::loadBalancing [private] |
Referenced by DefaultPublisherImpl(), and initialize().
Properties cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::momProperties = null [private] |
Referenced by initialize().
String cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::password [private] |
Referenced by DefaultPublisherImpl(), and initialize().
TopicPublisher cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::publisher = null [private] |
Referenced by close(), initialize(), and publish().
Boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::selectorAtBroker [private] |
Referenced by DefaultPublisherImpl(), and initialize().
Boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::sequential [private] |
Referenced by DefaultPublisherImpl(), and initialize().
TopicSession cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::session = null [private] |
Map cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::topicDirectory = null [private] |
Referenced by close(), createTopic(), and initialize().
String cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::username [private] |
Referenced by DefaultPublisherImpl(), and initialize().
1.6.2