PLCnext API Documentation 23.6.0.37
INetloadLimiterStatisticService.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include <vector>
9#include "Arp/Hardware/Nim/Services/NetloadLimiterErrorCode.hpp"
10#include "Arp/Hardware/Nim/Services/NetloadLimiterStatisticResult.hpp"
11#include "Arp/Hardware/Nim/Services/NetloadLimiterStatisticServiceProxyFactory.hpp"
12#include "Arp/System/Rsc/Services/IRscService.hpp"
13
14// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY INetloadLimiterStatisticService.cs
15
16namespace Arp { namespace Hardware { namespace Nim { namespace Services
17{
18
19using namespace Arp;
20using namespace Arp::System::Rsc::Services;
21
28{
29public: // typedefs
30 using Ptr = std::shared_ptr<INetloadLimiterStatisticService>;
31
32public: // construction/destruction
35
36public: // static policy operation
37 static IRscServiceProxyFactory& GetProxyFactory(void);
38
39public: // abstract operations
45 virtual NetloadLimiterStatisticResult GetStatistic(uint8 networkInterfaceId) = 0;
46
52 virtual std::vector<NetloadLimiterStatisticResult> GetStatistics(const std::vector<uint8>& networkInterfaceIds) = 0;
53
59 virtual NetloadLimiterErrorCode ResetStatistic(uint8 networkInterfaceId) = 0;
60};
61
63// inline methods of class INetloadLimiterStatisticService
64inline IRscServiceProxyFactory& INetloadLimiterStatisticService::GetProxyFactory()
65{
66 return NetloadLimiterStatisticServiceProxyFactory::GetInstance();
67}
68
69}}}} // end of namespace Arp::Hardware::Nim::Services
Service for the netload limiter statistic handling
Definition: INetloadLimiterStatisticService.hpp:28
virtual NetloadLimiterErrorCode ResetStatistic(uint8 networkInterfaceId)=0
Reset the statistic values Max, Peak and Duration of the packet and byte statistics for the specified...
virtual NetloadLimiterStatisticResult GetStatistic(uint8 networkInterfaceId)=0
Read the statistic values of die specified network interface
virtual std::vector< NetloadLimiterStatisticResult > GetStatistics(const std::vector< uint8 > &networkInterfaceIds)=0
Read the statistic values of die specified network interfaces
INetloadLimiterStatisticService(void)=default
Constructs an INetloadLimiterStatisticService instance.
Result for reading the NetloadLimiter statistics.
Definition: NetloadLimiterStatisticResult.hpp:26
Base interface for all Rsc service interface.
Definition: IRscService.hpp:20
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:28
NetloadLimiterErrorCode
This enum contains the error codes for the operations of the netload limiter services.
Definition: NetloadLimiterErrorCode.hpp:19
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API