Service to send Notifications and query information about the NotificationManager
More...
#include <INotificationManagerService.hpp>
|
static IRscServiceProxyFactory & | GetProxyFactory (void) |
|
static IRscServiceProxyFactory & | GetProxyFactory (void) |
| Returns a reference to service proxy factory to create a proxy instance of the service More...
|
|
Service to send Notifications and query information about the NotificationManager
This service is defined in library Arp.System.Nm.
◆ INotificationManagerService()
Arp::System::Nm::Services::INotificationManagerService::INotificationManagerService |
( |
void |
| ) |
|
|
default |
◆ GetAllKnownNotificationNameIds()
virtual std::vector<uint32> Arp::System::Nm::Services::INotificationManagerService::GetAllKnownNotificationNameIds |
( |
| ) |
|
|
pure virtual |
Queries of all known NotificationNameIds
- Returns
- collection of all known NotificationNameIds
◆ GetNotificationName()
virtual RscString<512> Arp::System::Nm::Services::INotificationManagerService::GetNotificationName |
( |
uint32 |
notificationNameId | ) |
|
|
pure virtual |
Queries the NotifictionName
- Parameters
-
notificationNameId | NotificationNameId |
- Returns
- NotificationName
◆ GetNotificationNameId()
virtual uint32 Arp::System::Nm::Services::INotificationManagerService::GetNotificationNameId |
( |
const RscString< 512 > & |
notificationName | ) |
|
|
pure virtual |
Queries the id of an NotificationName
- Parameters
-
notificationName | NotificationName |
- Returns
- NotificationNameId
◆ GetNotificationNameIdsByStatus()
Queries the ids of Notifications with a given NotificationRegistrationStatus
- Parameters
-
status | status of the queried Notifications |
- Returns
- collection of matching NotificationNameIds
◆ GetNotificationRegistration()
Queries information about an Notification
- Parameters
-
notificationNameId | NotificationNameId |
- Returns
- data structure to describe the Notification
◆ GetNumberOfSubmittedNotifications()
virtual uint64 Arp::System::Nm::Services::INotificationManagerService::GetNumberOfSubmittedNotifications |
( |
| ) |
|
|
pure virtual |
Returns the number of Notifications submitted since startup of the controller
- Returns
- number of submitted notifications
◆ GetPayloadTypeId()
virtual uint16 Arp::System::Nm::Services::INotificationManagerService::GetPayloadTypeId |
( |
const RscString< 512 > & |
payloadTypeName | ) |
|
|
pure virtual |
Query an id for a given PayloadType
- Parameters
-
payloadTypeName | Name fo the payload type |
- Returns
- id of the payload type
◆ GetPayloadTypeName()
virtual RscString<512> Arp::System::Nm::Services::INotificationManagerService::GetPayloadTypeName |
( |
uint16 |
payloadTypeId | ) |
|
|
pure virtual |
Query the payload type name of a given id
- Parameters
-
payloadTypeId | id of the payload type |
- Returns
- name of the payload type
◆ RegisterNotification()
virtual uint32 Arp::System::Nm::Services::INotificationManagerService::RegisterNotification |
( |
const RscString< 512 > & |
notificationName, |
|
|
const RscString< 512 > & |
senderName, |
|
|
Severity |
severity, |
|
|
const RscString< 512 > & |
payloadTypeName |
|
) |
| |
|
pure virtual |
Registers a new Notification
- Parameters
-
notificationName | name of the notification (e.g. Arp.System.Nm.SomethingInterestingHappened) |
senderName | name of the sender of the notification |
severity | severity of the notification |
payloadTypeName | name of the payload type |
- Returns
- NotificationNameId, necessary for sending and unregistering
◆ SendNotification()
virtual uint64 Arp::System::Nm::Services::INotificationManagerService::SendNotification |
( |
uint32 |
notificationNameId, |
|
|
DateTime |
timestamp, |
|
|
const std::vector< RscVariant< 512 >> & |
payload |
|
) |
| |
|
pure virtual |
Sends a notification
- Parameters
-
notificationNameId | id of the NotificationName to send |
timestamp | Current timestamp |
payload | payload to send |
- Returns
- NotificationId
◆ UnregisterNotification()
virtual void Arp::System::Nm::Services::INotificationManagerService::UnregisterNotification |
( |
uint32 |
notificationNameId | ) |
|
|
pure virtual |
Unregisters a Nototification
- Parameters
-
notificationNameId | id of the NotificationName to unregister |
The documentation for this class was generated from the following file: