

Public Member Functions | |
| CategorySubscriber (ContainerServices contSvc, String rootName, String pathName, CategoryClient categoryClient) throws Exception | |
| void | close () |
| void | finalize () |
| void | onMessage (Message msg) |
Static Public Attributes | |
| static final String | NOT_AVAILABLE = "N/A" |
Private Member Functions | |
| void | initParser () throws Exception |
| void | connectSubscriber () throws JMSException |
| void | adddAlarmView (String xmlString) |
Private Attributes | |
| ContainerServices | acsCS |
| String | rootName |
| String | pathName |
| ACSJMSTopicSubscriber | consumer |
| ACSJMSSession | session |
| Topic | topic |
| DocumentBuilder | builder = null |
| CategoryClient | categoryClient |
| volatile boolean | closed = false |
| alma::acs::lasercore::test::stress::category::CategorySubscriber::CategorySubscriber | ( | ContainerServices | contSvc, | |
| String | rootName, | |||
| String | pathName, | |||
| CategoryClient | categoryClient | |||
| ) | throws Exception [inline] |
Constructor
| contSvc | ACS container services | |
| rootName | The root name | |
| pathName | The path name |
References acsCS, categoryClient, connectSubscriber(), initParser(), pathName, and rootName.
| void alma::acs::lasercore::test::stress::category::CategorySubscriber::adddAlarmView | ( | String | xmlString | ) | [inline, private] |
Get the fields of the alarm to show in the table and add the alarm to the model
| s |
References acsCS, builder, categoryClient, description, alma::acs::lasercore::test::stress::CategoryClient::dispatchAlarm(), alma::acs::container::ContainerServicesBase::getLogger(), and NOT_AVAILABLE.
Referenced by onMessage().
| void alma::acs::lasercore::test::stress::category::CategorySubscriber::close | ( | ) | [inline] |
Close the subscriber
Should be called when done.
References com::cosylab::acs::jms::ACSJMSTopicSubscriber::close(), closed, and consumer.
Referenced by finalize().
| void alma::acs::lasercore::test::stress::category::CategorySubscriber::connectSubscriber | ( | ) | throws JMSException [inline, private] |
Connect the JMS consumer settting this class as listener for incoming messages
| JMSException |
References acsCS, consumer, com::cosylab::acs::jms::ACSJMSSession::createConsumer(), com::cosylab::acs::jms::ACSJMSSession::createTopic(), alma::acs::container::ContainerServicesBase::getLogger(), pathName, rootName, session, com::cosylab::acs::jms::ACSJMSConsumer::setMessageListener(), and topic.
Referenced by CategorySubscriber().
| void alma::acs::lasercore::test::stress::category::CategorySubscriber::finalize | ( | ) | [inline] |
| void alma::acs::lasercore::test::stress::category::CategorySubscriber::initParser | ( | ) | throws Exception [inline, private] |
| void alma::acs::lasercore::test::stress::category::CategorySubscriber::onMessage | ( | Message | msg | ) | [inline] |
Executed when a message has been received
| msg |
References acsCS, adddAlarmView(), closed, alma::acs::container::ContainerServicesBase::getLogger(), com::cosylab::acs::jms::ACSJMSTextMessage::getText(), pathName, and rootName.
Referenced by adddAlarmView(), CategorySubscriber(), connectSubscriber(), and onMessage().
DocumentBuilder alma::acs::lasercore::test::stress::category::CategorySubscriber::builder = null [private] |
Referenced by adddAlarmView(), and initParser().
CategoryClient alma::acs::lasercore::test::stress::category::CategorySubscriber::categoryClient [private] |
Referenced by adddAlarmView(), and CategorySubscriber().
volatile boolean alma::acs::lasercore::test::stress::category::CategorySubscriber::closed = false [private] |
Referenced by close(), and onMessage().
ACSJMSTopicSubscriber alma::acs::lasercore::test::stress::category::CategorySubscriber::consumer [private] |
Referenced by close(), and connectSubscriber().
final String alma::acs::lasercore::test::stress::category::CategorySubscriber::NOT_AVAILABLE = "N/A" [static] |
Referenced by adddAlarmView().
Referenced by CategorySubscriber(), connectSubscriber(), and onMessage().
Referenced by CategorySubscriber(), connectSubscriber(), and onMessage().
Referenced by connectSubscriber().
Referenced by connectSubscriber().
1.6.2