

Public Member Functions | |
| HelperWithChannelCreationSynch (ContainerServicesBase services) throws AcsJException | |
Protected Member Functions | |
| EventChannel | createNotifyChannel_internal (EventChannelFactory notifyFactory, Property[] initial_qos, Property[] initial_admin, String channelName, IntHolder channelIdHolder) throws UnsupportedAdmin, NameAlreadyUsed, UnsupportedQoS, NameMapError |
| EventChannel | createNotificationChannel (String channelName, String channelKind, String notifyFactoryName, CountDownLatch synch) throws AcsJException, NameAlreadyUsed, NameMapError |
| EventChannel | getNotificationChannel (String channelName, String channelKind, String notifyFactoryName, CountDownLatch synch) throws AcsJException |
Private Attributes | |
| volatile CountDownLatch | synch |
We extend the tested Helper class so that this test can synchronize on the actual channel creation
| alma::acs::nc::HelperTest::HelperWithChannelCreationSynch::HelperWithChannelCreationSynch | ( | ContainerServicesBase | services | ) | throws AcsJException [inline] |
| EventChannel alma::acs::nc::HelperTest::HelperWithChannelCreationSynch::createNotificationChannel | ( | String | channelName, | |
| String | channelKind, | |||
| String | notifyFactoryName, | |||
| CountDownLatch | synch | |||
| ) | throws AcsJException, NameAlreadyUsed, NameMapError [inline, protected] |
References alma::acs::nc::Helper::channelName, and synch.
Referenced by alma::acs::nc::HelperTest::testConcurrentChannelCreation(), and alma::acs::nc::HelperTest::testCreateChannel().
| EventChannel alma::acs::nc::HelperTest::HelperWithChannelCreationSynch::createNotifyChannel_internal | ( | EventChannelFactory | notifyFactory, | |
| Property[] | initial_qos, | |||
| Property[] | initial_admin, | |||
| String | channelName, | |||
| IntHolder | channelIdHolder | |||
| ) | throws UnsupportedAdmin, NameAlreadyUsed, UnsupportedQoS, NameMapError [inline, protected] |
Counts down the optional CountDownLatch, then delegates to parent method
Reimplemented from alma::acs::nc::Helper.
References alma::acs::nc::Helper::channelName, alma::acs::nc::Helper::m_logger, alma::acs::nc::Helper::notifyFactory, and synch.
| EventChannel alma::acs::nc::HelperTest::HelperWithChannelCreationSynch::getNotificationChannel | ( | String | channelName, | |
| String | channelKind, | |||
| String | notifyFactoryName, | |||
| CountDownLatch | synch | |||
| ) | throws AcsJException [inline, protected] |
References alma::acs::nc::Helper::channelName, and synch.
Referenced by alma::acs::nc::HelperTest::testConcurrentChannelRetrieval(), and alma::acs::nc::HelperTest::testCreateChannel().
volatile CountDownLatch alma::acs::nc::HelperTest::HelperWithChannelCreationSynch::synch [private] |
Referenced by createNotificationChannel(), createNotifyChannel_internal(), and getNotificationChannel().
1.6.2