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

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

List of all members.

Public Member Functions

String getConnectId ()
boolean isConnected ()
void setExceptionListener (ExceptionListener listener) throws ConnectionException
String getUsername ()
void close ()
void connect (boolean retry) throws ConnectionException
TopicSession createTopicSession () throws ConnectionException
void disconnect ()
void start () throws ConnectionException
void stop () throws ConnectionException

Static Public Member Functions

static ACSJMSTopicConnectionImpl instance (String username, String password, String brokerList, Boolean loadBalancing, Boolean sequential, Boolean selectorAtBroker) throws ConnectionException

Static Public Attributes

static ContainerServicesBase containerServices = null

Protected Member Functions

 ACSJMSTopicConnectionImpl (String username, String password, String brokerList, Boolean loadBalancing, Boolean sequential, Boolean selectorAtBroker) throws JMSException
void finalize () throws Throwable

Static Package Attributes

static Category cat = Category.getInstance(ACSJMSTopicConnectionImpl.class.getName())

Private Attributes

java.util.Properties momProperties = null
String password = null
String username = null
TopicConnection brokerConnection = null
TopicConnectionFactory factory = null
boolean connected = false
int pingInterval = 0
int retryInterval = 0
int retryNumber = 0

Detailed Description

Implementation class.

Version:
1.0 23 Jan 2001
Author:
Controls Middleware Project
See also:
JMSTopicConnection

Constructor & Destructor Documentation

cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::ACSJMSTopicConnectionImpl ( String  username,
String  password,
String  brokerList,
Boolean  loadBalancing,
Boolean  sequential,
Boolean  selectorAtBroker 
) throws JMSException [inline, protected]

Constructor DefaultJMSTopicConnectionImpl

Exceptions:
JMSException 

References cat, containerServices, factory, momProperties, password, pingInterval, retryInterval, retryNumber, and username.

Referenced by instance().


Member Function Documentation

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

Method close

Implements cern::cmw::mom::pubsub::impl::JMSConnection.

References brokerConnection, cat, and disconnect().

Referenced by finalize().

void cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::connect ( boolean  retry  )  throws ConnectionException [inline]

Method connect

Parameters:
retry 
Exceptions:
ConnectionException 

Implements cern::cmw::mom::pubsub::impl::JMSConnection.

References brokerConnection, cat, connected, factory, retryInterval, and retryNumber.

TopicSession cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::createTopicSession (  )  throws ConnectionException [inline]

Method createTopicSession

Returns:
TopicSession
Exceptions:
ConnectionException 

Implements cern::cmw::mom::pubsub::impl::JMSTopicConnection.

References brokerConnection, cat, and isConnected().

void cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::disconnect (  )  [inline]

Method disconnect

Implements cern::cmw::mom::pubsub::impl::JMSConnection.

References brokerConnection, cat, connected, and isConnected().

Referenced by close().

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

Method finalize

Exceptions:
Throwable 

References cat, and close().

String cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::getConnectId (  )  [inline]

Method getConnectId

Returns:
String

Implements cern::cmw::mom::pubsub::impl::JMSConnection.

References brokerConnection, and isConnected().

String cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::getUsername (  )  [inline]

Method getUsername

Returns:
String

Implements cern::cmw::mom::pubsub::impl::JMSConnection.

References username.

static ACSJMSTopicConnectionImpl cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::instance ( String  username,
String  password,
String  brokerList,
Boolean  loadBalancing,
Boolean  sequential,
Boolean  selectorAtBroker 
) throws ConnectionException [inline, static]

Method instance

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
Returns:
DefaultJMSTopicConnectionImpl
Exceptions:
ConnectionException 

References ACSJMSTopicConnectionImpl(), cat, password, and username.

boolean cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::isConnected (  )  [inline]

Method isConnected

Returns:
boolean

Implements cern::cmw::mom::pubsub::impl::JMSConnection.

References connected.

Referenced by createTopicSession(), disconnect(), getConnectId(), setExceptionListener(), start(), and stop().

void cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::setExceptionListener ( ExceptionListener  listener  )  throws ConnectionException [inline]

Method setExceptionListener

Parameters:
listener 
Exceptions:
ConnectionException 

Implements cern::cmw::mom::pubsub::impl::JMSConnection.

References brokerConnection, cat, and isConnected().

void cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::start (  )  throws ConnectionException [inline]
void cern::cmw::mom::pubsub::impl::ACSJMSTopicConnectionImpl::stop (  )  throws ConnectionException [inline]

Member Data Documentation

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

Referenced by connect(), disconnect(), and isConnected().

Referenced by ACSJMSTopicConnectionImpl(), and start().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2