Public Member Functions | |
HelperTest () throws Exception | |
void | testTaoMonitorAndControlService () throws Exception |
void | testCreateChannel () throws Exception |
void | testConcurrentChannelCreation () throws Exception |
void | testConcurrentChannelRetrieval () throws Throwable |
Protected Member Functions | |
void | setUp () throws Exception |
void | tearDown () throws Exception |
Private Member Functions | |
void | assertChannel (boolean existing, String channelName) |
String | getStatistic (String statName) throws InvalidName |
Date | getStatisticTime (String statName) throws InvalidName |
Private Attributes | |
HelperWithChannelCreationSynch | helper |
NotificationServiceMonitorControl | nsmc |
|
|
|
Helper method that checks (non-/)existence of a channel
|
|
|
|
|
|
|
|
|
|
Tests the collision case where many threads create the same channel concurrently. Note that we would need to hack TAO to slow down (or otherwise synchronize with) channel creation, so that we can be sure that the second request comes in before the first request has finished. We optimize this by synchronizing the test threads right before they make the call to the channel factory, for which we overload the method HelperWithChannelCreationSynch#createNotifyChannel_internal(EventChannelFactory, Property[], Property[], String, IntHolder). This eliminates jitter from thread creation, thread starting, and contact with the naming service, all happening before actual channel creation. |
|
One step up from testConcurrentChannelCreation(), here we test concurrent calls to Helper#getNotificationChannel(String, String, String) which are supposed to handle the |
|
Creates and destroys a test channel. Also tests creating a second instance of that channel after the first one has been created, to check for the NameAlreadyUsed ex. |
|
: Check why we only get statistics about the alarm channel factory here!! |
|
|
|
|