|
Ocean
|
This class is the base class for all maintenance connectors. More...
#include <Maintenance.h>
Protected Member Functions | |
| Connector () | |
| Creates a new connector. | |
Static Protected Member Functions | |
| static bool | place (const std::string &name, const unsigned long long id, const std::string &tag, Buffer &&buffer, const Timestamp timestamp) |
| Explicitly places a maintenance data, information, message into the local maintenance manager. | |
| static void | encodeData (const std::string &name, const unsigned long long id, const std::string &tag, const Buffer &buffer, const Timestamp timestamp, const size_t reservedHeaderSize, Buffer &encodedBuffer) |
| Encodes a maintenance data to one combined package. | |
| static bool | decodeData (const void *encodedBuffer, const size_t encodedBufferSize, std::string &name, unsigned long long &id, std::string &tag, Buffer &buffer, Timestamp ×tamp) |
| Decodes a package buffer to maintenance data with corresponding information. | |
This class is the base class for all maintenance connectors.
A maintenance connector connects a local maintenance manager with a remote maintenance manager to transmit the information.
The actual implementation of any maintenance connector must be done in a derived class, thus individual connectors with individual capabilities can be implemented.
|
inlineprotected |
Creates a new connector.
|
staticprotected |
Decodes a package buffer to maintenance data with corresponding information.
| encodedBuffer | The encoded network package buffer |
| encodedBufferSize | The size of the encoded buffer in bytes |
| name | The resulting name of the maintenance manager to which the data has been sent originally |
| id | The result id of the maintenance manager to which the data has been sent originally |
| tag | The tag of the maintenance data |
| buffer | The buffer of the maintenance data |
| timestamp | The timestamp of the maintenance data |
|
staticprotected |
Encodes a maintenance data to one combined package.
| name | The name of the maintenance manager providing the data |
| id | The id of the maintenance manager providing the data |
| tag | The tag of the maintenance data |
| buffer | The maintenance data as buffer |
| timestamp | The timestamp of the maintenance data |
| reservedHeaderSize | The number of bytes which will be reserved for the header, so that the resulting buffer has an optional header followed by the payload data |
| encodedBuffer | The resulting encoded package |
|
staticprotected |
Explicitly places a maintenance data, information, message into the local maintenance manager.
Explicit maintenance data can be set even if the manager is not active.
| name | The name of the maintenance manager belonging to the data which will be placed |
| id | The id of the maintenance manager belonging to the data which will be placed |
| tag | The tag of the maintenance data |
| buffer | The buffer of the maintenance data, which will be moved |
| timestamp | The timestamp of the maintenance data |