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::DefaultSubscriberImpl Class Reference

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DefaultSubscriberImpl () throws MOMException
 DefaultSubscriberImpl (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 ()
void onException (JMSException ex)
void open () throws MOMException
long subscribe (String topic, SubscriptionListener listener, String selector) throws JMSException, NamingException
void unSubscribe (long token) throws JMSException
void unSubscribeAll () throws JMSException

Protected Member Functions

Topic createTopic (String topic) throws JMSException, NamingException
void finalize () throws Throwable
void recoverSubscriptions ()

Static Package Attributes

Category cat = Category.getInstance(DefaultSubscriberImpl.class.getName())

Private Member Functions

void setConnectionIdentifier ()
SubscriptionHandle getSubscriptionHandle (long token)
Thread createKeepAliveThread ()
void initialize (boolean retry) throws MOMException
void publishKeepAliveNotifications ()
void publishNotification (int type, SubscriptionHandle handle) throws JMSException

Private Attributes

Boolean loadBalancing
Boolean selectorAtBroker
Boolean sequential
cern.cmw.mom.pubsub.ExceptionListener listener = null
HashMap subscribers = null
JMSTopicConnection connection = null
Map topicDirectory = null
Message notificationMessage = null
Properties momProperties = null
String brokerList
String password
String subscriberId = null
String username
Thread keepAliveThread = null
TopicPublisher notificationPublisher = null
TopicSession serviceSession = null
boolean closed = true
boolean keepAliveEnabled = false
boolean notificationsEnabled = false
int keepAliveInterval = 0

Detailed Description

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


Constructor & Destructor Documentation

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

Constructor DefaultSubscriberImpl

Exceptions:
MOMException 

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

Constructor DefaultSubscriberImpl

Exceptions:
MOMException 


Member Function Documentation

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

Method close

Implements cern::cmw::mom::pubsub::Subscriber.

Thread cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::createKeepAliveThread  )  [inline, private]
 

Method run

Returns:
Thread the keep alive thread

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

Method createTopic

Parameters:
topic 
Returns:
Topic the topic
Exceptions:
JMSException 
NamingException 

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

Method finalize

Exceptions:
Throwable 

SubscriptionHandle cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::getSubscriptionHandle long  token  )  [inline, private]
 

Method getSubscriptionHandle

Parameters:
token 
Returns:
SubscriptionHandle the subscription handle

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

Method initialize

Parameters:
retry 
Exceptions:
MOMException 

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

Method isClosed

Returns:
boolean true iff the subscriber instance has been closed

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

Method onException

Parameters:
ex 

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

Method open

Exceptions:
MOMException 

void cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::publishKeepAliveNotifications  )  [inline, private]
 

Method publishKeepAliveNotifications

void cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::publishNotification int  type,
SubscriptionHandle  handle
throws JMSException [inline, private]
 

Method publishNotification

Parameters:
type 
handle 
Exceptions:
JMSException 

void cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::recoverSubscriptions  )  [inline, protected]
 

Method recoverSubscriptions

void cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::setConnectionIdentifier  )  [inline, private]
 

Method setId

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

Method setExceptionListener

Parameters:
listener 

long cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::subscribe String  topic,
SubscriptionListener  listener,
String  selector
throws JMSException, NamingException [inline]
 

Method subscribe

Parameters:
topic 
listener 
selector 
Returns:
long the subscription handle identifier
Exceptions:
JMSException 
NamingException 

Implements cern::cmw::mom::pubsub::Subscriber.

void cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::unSubscribe long  token  )  throws JMSException [inline]
 

Method unSubscribe

Parameters:
token 
Exceptions:
JMSException 

Implements cern::cmw::mom::pubsub::Subscriber.

void cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::unSubscribeAll  )  throws JMSException [inline]
 

Close all the opened subscriptions.

Exceptions:
JMSException if JMS fails to unsubscribe due to some internal JMS error.

Implements cern::cmw::mom::pubsub::Subscriber.


Member Data Documentation

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

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

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

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

boolean cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::keepAliveEnabled = false [private]
 

int cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::keepAliveInterval = 0 [private]
 

Thread cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::keepAliveThread = null [private]
 

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

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

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

Message cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::notificationMessage = null [private]
 

TopicPublisher cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::notificationPublisher = null [private]
 

boolean cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::notificationsEnabled = false [private]
 

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

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

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

TopicSession cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::serviceSession = null [private]
 

String cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::subscriberId = null [private]
 

HashMap cern::cmw::mom::pubsub::impl::DefaultSubscriberImpl::subscribers = null [private]
 

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

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


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