

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 DefaultJMSTopicConnectionImpl | instance (String username, String password, String brokerList, Boolean loadBalancing, Boolean sequential, Boolean selectorAtBroker) throws ConnectionException |
Protected Member Functions | |
| DefaultJMSTopicConnectionImpl (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(DefaultJMSTopicConnectionImpl.class.getName()) |
Private Attributes | |
| java.util.Properties | momProperties = null |
| String | password = null |
| String | username = null |
| com.cosylab.acs.jms.ACSJMSTopicConnection | brokerConnection = null |
| com.cosylab.acs.jms.ACSJMSTopicConnectionFactory | factory = null |
| boolean | connected = false |
| int | pingInterval = 0 |
| int | retryInterval = 0 |
| int | retryNumber = 0 |
Implementation class.
| cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::DefaultJMSTopicConnectionImpl | ( | String | username, | |
| String | password, | |||
| String | brokerList, | |||
| Boolean | loadBalancing, | |||
| Boolean | sequential, | |||
| Boolean | selectorAtBroker | |||
| ) | throws JMSException [inline, protected] |
Constructor DefaultJMSTopicConnectionImpl
| JMSException |
References com::cosylab::acs::jms::ACSJMSTopicConnectionFactory::ACSJMSTopicConnectionFactory(), cat, factory, momProperties, password, pingInterval, retryInterval, retryNumber, and username.
Referenced by instance().
| void cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::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::DefaultJMSTopicConnectionImpl::connect | ( | boolean | retry | ) | throws ConnectionException [inline] |
Method connect
| retry |
| ConnectionException |
Implements cern::cmw::mom::pubsub::impl::JMSConnection.
References brokerConnection, cat, connected, com::cosylab::acs::jms::ACSJMSTopicConnectionFactory::createTopicConnection(), factory, password, retryInterval, retryNumber, and username.
| TopicSession cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::createTopicSession | ( | ) | throws ConnectionException [inline] |
Method createTopicSession
| ConnectionException |
Implements cern::cmw::mom::pubsub::impl::JMSTopicConnection.
References brokerConnection, cat, and isConnected().
| void cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::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::DefaultJMSTopicConnectionImpl::finalize | ( | ) | throws Throwable [inline, protected] |
| String cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::getConnectId | ( | ) | [inline] |
Method getConnectId
Implements cern::cmw::mom::pubsub::impl::JMSConnection.
References brokerConnection, cat, and isConnected().
| String cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::getUsername | ( | ) | [inline] |
Method getUsername
Implements cern::cmw::mom::pubsub::impl::JMSConnection.
References username.
| static DefaultJMSTopicConnectionImpl cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::instance | ( | String | username, | |
| String | password, | |||
| String | brokerList, | |||
| Boolean | loadBalancing, | |||
| Boolean | sequential, | |||
| Boolean | selectorAtBroker | |||
| ) | throws ConnectionException [inline, static] |
Method instance
| 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 |
| ConnectionException |
References cat, DefaultJMSTopicConnectionImpl(), password, and username.
| boolean cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::isConnected | ( | ) | [inline] |
Method isConnected
Implements cern::cmw::mom::pubsub::impl::JMSConnection.
References connected.
Referenced by createTopicSession(), disconnect(), getConnectId(), setExceptionListener(), start(), and stop().
| void cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::setExceptionListener | ( | ExceptionListener | listener | ) | throws ConnectionException [inline] |
Method setExceptionListener
| listener |
| ConnectionException |
Implements cern::cmw::mom::pubsub::impl::JMSConnection.
References brokerConnection, cat, and isConnected().
| void cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::start | ( | ) | throws ConnectionException [inline] |
Method start
| ConnectionException |
Implements cern::cmw::mom::pubsub::impl::JMSConnection.
References brokerConnection, cat, and isConnected().
| void cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::stop | ( | ) | throws ConnectionException [inline] |
Method stop
| ConnectionException |
Implements cern::cmw::mom::pubsub::impl::JMSConnection.
References brokerConnection, cat, and isConnected().
com.cosylab.acs.jms.ACSJMSTopicConnection cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::brokerConnection = null [private] |
Referenced by close(), connect(), createTopicSession(), disconnect(), getConnectId(), setExceptionListener(), start(), and stop().
Category cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::cat = Category.getInstance(DefaultJMSTopicConnectionImpl.class.getName()) [static, package] |
Referenced by close(), connect(), createTopicSession(), DefaultJMSTopicConnectionImpl(), disconnect(), finalize(), getConnectId(), instance(), setExceptionListener(), start(), and stop().
boolean cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::connected = false [private] |
Referenced by connect(), disconnect(), and isConnected().
com.cosylab.acs.jms.ACSJMSTopicConnectionFactory cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::factory = null [private] |
Referenced by connect(), and DefaultJMSTopicConnectionImpl().
java.util.Properties cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::momProperties = null [private] |
Referenced by DefaultJMSTopicConnectionImpl().
String cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::password = null [private] |
Referenced by connect(), DefaultJMSTopicConnectionImpl(), and instance().
Referenced by DefaultJMSTopicConnectionImpl().
Referenced by connect(), and DefaultJMSTopicConnectionImpl().
int cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::retryNumber = 0 [private] |
Referenced by connect(), and DefaultJMSTopicConnectionImpl().
String cern::cmw::mom::pubsub::impl::DefaultJMSTopicConnectionImpl::username = null [private] |
Referenced by connect(), DefaultJMSTopicConnectionImpl(), getUsername(), and instance().
1.6.2