@@ -152,7 +152,7 @@ NotificationDelivery::~NotificationDelivery()
152
152
153
153
// Create data object for delivery queue
154
154
// with no reason, no message and notifcation instance set to NULL
155
- // This elemet added to delivery queue will signal the need of stutting down
155
+ // This element added to delivery queue will signal the need of shutting down
156
156
// the DeliveryPlugin after processing all data for this Delivery
157
157
DeliveryDataElement* deliveryData =
158
158
new DeliveryDataElement (
@@ -335,7 +335,7 @@ NotificationManager::NotificationManager(const std::string& serviceName,
335
335
NotificationManager::~NotificationManager ()
336
336
{
337
337
lock_guard<mutex> guard (m_instancesMutex);
338
- // Mark is instance as zombie
338
+ // Mark this instance as zombie
339
339
for (auto it = m_instances.begin ();
340
340
it != m_instances.end ();
341
341
++it)
@@ -562,7 +562,7 @@ PLUGIN_HANDLE NotificationManager::loadRulePlugin(const string& rulePluginName)
562
562
if ((handle = manager->loadPlugin (rulePluginName,
563
563
PLUGIN_TYPE_NOTIFICATION_RULE)) != NULL )
564
564
{
565
- // Suceess
565
+ // Success
566
566
m_logger->info (" Loaded rule plugin '%s'." ,
567
567
rulePluginName.c_str ());
568
568
}
@@ -595,7 +595,7 @@ PLUGIN_HANDLE NotificationManager::loadDeliveryPlugin(const string& loadDelivery
595
595
if ((handle = manager->loadPlugin (loadDeliveryPlugin,
596
596
PLUGIN_TYPE_NOTIFICATION_DELIVERY)) != NULL )
597
597
{
598
- // Suceess
598
+ // Success
599
599
m_logger->info (" Loaded delivery plugin '%s'." ,
600
600
loadDeliveryPlugin.c_str ());
601
601
}
@@ -1370,7 +1370,7 @@ bool NotificationManager::setupRuleDeliveryFirst(const string& name, const Confi
1370
1370
1371
1371
DeliveryPlugin* deliver = this ->createDeliveryCategory (notificationName, deliveryPluginName, false );
1372
1372
1373
- if (rule && deliver)
1373
+ if (rule && deliver && enabled )
1374
1374
{
1375
1375
// Create category names for plugins under instanceName
1376
1376
// Register category interest as well
@@ -1471,11 +1471,11 @@ bool NotificationManager::setupRuleDeliveryFirst(const string& name, const Confi
1471
1471
1472
1472
1473
1473
/* *
1474
- * Add an delivery to a notification instance
1474
+ * Add a delivery to a notification instance
1475
1475
*
1476
1476
* @param config The configuration for the new instance.
1477
1477
* @param deliveryCategoryName The delivery name
1478
- * @param config The configuration ofr the delivery.
1478
+ * @param config The configuration of the delivery.
1479
1479
* @return True on success, false otherwise.
1480
1480
*/
1481
1481
bool NotificationManager::addDelivery (const ConfigCategory& config, const string &deliveryCategoryName, ConfigCategory &deliveryConfig)
@@ -1514,7 +1514,7 @@ bool NotificationManager::addDelivery(const ConfigCategory& config, const string
1514
1514
NotificationDelivery* theDelivery = NULL ;
1515
1515
1516
1516
// Call delivery "plugin_init" with configuration
1517
- // and instantiate NotificationDelivery class
1517
+ // and instantiate NotificationDelivery class
1518
1518
if (deliver->init (deliveryConfig))
1519
1519
{
1520
1520
// Check and set registerIngest
@@ -1667,7 +1667,7 @@ bool NotificationInstance::updateInstance(const string& name,
1667
1667
// Create a new subscription
1668
1668
subscriptions->createSubscription ((*i).second );
1669
1669
1670
- Logger::getLogger ()->info (" Succesfully enabled notification instance '%s'" ,
1670
+ Logger::getLogger ()->info (" Successfully enabled notification instance '%s'" ,
1671
1671
name.c_str ());
1672
1672
enabled = true ;
1673
1673
}
@@ -1716,7 +1716,7 @@ bool NotificationInstance::updateInstance(const string& name,
1716
1716
bool ret = instances->setupInstance (name, newConfig);
1717
1717
if (ret)
1718
1718
{
1719
- Logger::getLogger ()->info (" Succesfully disabled notification instance '%s'" ,
1719
+ Logger::getLogger ()->info (" Successfully disabled notification instance '%s'" ,
1720
1720
name.c_str ());
1721
1721
}
1722
1722
else
@@ -1777,7 +1777,7 @@ bool NotificationInstance::updateInstance(const string& name,
1777
1777
subscriptions->removeSubscription (a->getSource (),
1778
1778
a->getAssetName (),
1779
1779
ruleName);
1780
- // Remove asseet
1780
+ // Remove asset
1781
1781
a = assets.erase (a);
1782
1782
}
1783
1783
}
@@ -2043,7 +2043,7 @@ bool NotificationManager::APIdeleteInstance(const string& instanceName)
2043
2043
subscriptions->removeSubscription (a->getSource (),
2044
2044
a->getAssetName (),
2045
2045
ruleName);
2046
- // Remove asseet
2046
+ // Remove asset
2047
2047
a = assets.erase (a);
2048
2048
}
2049
2049
}
0 commit comments