Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::cmw::mom::pubsub::impl::DefaultPublisherImpl Class Reference

Inheritance diagram for cern::cmw::mom::pubsub::impl::DefaultPublisherImpl:

Inheritance graph
[legend]
Collaboration diagram for cern::cmw::mom::pubsub::impl::DefaultPublisherImpl:

Collaboration graph
[legend]
List of all members.

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

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

Detailed Description

Implementation class.
Version:
1.0 23 Jan 2001
Author:
Controls Middleware Project
See also:
Publisher


Constructor & Destructor Documentation

cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::DefaultPublisherImpl  )  throws MOMException [inline]
 

Constructor DefaultPublisherImpl

Exceptions:
MOMException 

cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::DefaultPublisherImpl String  username,
String  password,
String  brokerList,
Boolean  loadBalancing,
Boolean  sequential,
Boolean  selectorAtBroker
throws MOMException [inline]
 

Constructor DefaultPublisherImpl

Parameters:
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
Exceptions:
MOMException 


Member Function Documentation

void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::close  )  [inline]
 

Method close

Implements cern::cmw::mom::pubsub::Publisher.

BytesMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createBytesMessage  )  throws JMSException [inline]
 

Method createBytesMessage

Returns:
BytesMessage
Exceptions:
JMSException 

Implements cern::cmw::mom::pubsub::Publisher.

MapMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createMapMessage  )  throws JMSException [inline]
 

Method createMapMessage

Returns:
MapMessage
Exceptions:
JMSException 

Implements cern::cmw::mom::pubsub::Publisher.

Message cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createMessage  )  throws JMSException [inline]
 

Method createMessage

Returns:
Message
Exceptions:
JMSException 

Implements cern::cmw::mom::pubsub::Publisher.

ObjectMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createObjectMessage  )  throws JMSException [inline]
 

Method createObjectMessage

Returns:
ObjectMessage
Exceptions:
JMSException 

Implements cern::cmw::mom::pubsub::Publisher.

StreamMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createStreamMessage  )  throws JMSException [inline]
 

Method createStreamMessage

Returns:
StreamMessage
Exceptions:
JMSException 

Implements cern::cmw::mom::pubsub::Publisher.

TextMessage cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createTextMessage  )  throws JMSException [inline]
 

Method createTextMessage

Returns:
TextMessage
Exceptions:
JMSException 

Implements cern::cmw::mom::pubsub::Publisher.

Topic cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::createTopic String  topic  )  throws JMSException, NamingException [inline, private]
 

Method createTopic

Parameters:
topic 
Returns:
Topic
Exceptions:
JMSException 
NamingException 

void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::finalize  )  throws Throwable [inline, protected]
 

Method finalize

Exceptions:
Throwable 

void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::initialize boolean  retry  )  throws MOMException [inline, private]
 

Method initialize.

Parameters:
retry 
Exceptions:
MOMException 

boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::isClosed  )  [inline]
 

Method isClosed

Returns:
Topic

void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::onException JMSException  ex  )  [inline]
 

Method onException

Parameters:
ex 

void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::open  )  throws MOMException [inline]
 

Method open

Exceptions:
MOMException 

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.

Parameters:
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
Exceptions:
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.

void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::publish String  topic,
Message  message
throws JMSException, NamingException [inline]
 

Method publish

Parameters:
topic 
message 
Exceptions:
JMSException 
NamingException 

Implements cern::cmw::mom::pubsub::Publisher.

void cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::setExceptionListener cern.cmw.mom.pubsub.ExceptionListener  listener  )  [inline]
 

Method setExceptionListener

Parameters:
listener 


Member Data Documentation

String cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::brokerList [private]
 

Category cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::cat = Category.getInstance(DefaultPublisherImpl.class.getName()) [static, package]
 

boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::closed = true [private]
 

JMSTopicConnection cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::connection = null [private]
 

int cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::defaultPersistance [private]
 

int cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::defaultPriority [private]
 

long cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::defaultTimeToLive [private]
 

cern.cmw.mom.pubsub.ExceptionListener cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::listener = null [private]
 

Boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::loadBalancing [private]
 

Properties cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::momProperties = null [private]
 

String cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::password [private]
 

TopicPublisher cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::publisher = null [private]
 

Boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::selectorAtBroker [private]
 

Boolean cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::sequential [private]
 

TopicSession cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::session = null [private]
 

Map cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::topicDirectory = null [private]
 

String cern::cmw::mom::pubsub::impl::DefaultPublisherImpl::username [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:02 2009 for ACS Java API by doxygen 1.3.8