Policy context interface.
More...
#include <policy_interface.hpp>
Policy context interface.
◆ ~PolicyContextInterface()
virtual kanzi::connect::PolicyContextInterface::~PolicyContextInterface |
( |
| ) |
|
|
inlinevirtual |
◆ acceptClientConnection()
Determines whether policy allows client connection to be accepted.
- Parameters
-
client | contains information about connected client |
- Returns
- true if connection is to be accepted.
◆ acceptPluginLoading()
virtual bool kanzi::connect::PolicyContextInterface::acceptPluginLoading |
( |
const string & | plugin | ) |
|
|
pure virtual |
Invoked to check whether loading of a plugin is allowed.
- Parameters
-
plugin | the plugin that is to be loaded. This might be relative or absolute path to the plugin |
- Returns
- true if plugin loading should be allowed. false if not. Plugin loading might be disallowed for example because plugin signature mismatch.
◆ addClient()
Adds a client reference into a collection of clients.
ToDo: Consolidate with accept, no need for two methods !!
- Parameters
-
client | the client identifiers. |
◆ getController()
Retrieve policy controller instance.
- Returns
- policy controller instance.
◆ initialize()
Optional two phased constructor (used when domain is not available construction time)
- Parameters
-
◆ registerClientMeasurements()
Register diagnostics values for service identified by connectedclient to be available for policies.
- Parameters
-
diagnostics | Pointer to the diagnostics mechanism. |
connectedClient | Pointer to the connecting client. |
- Returns
- true on success
◆ registerConnection()
virtual void kanzi::connect::PolicyContextInterface::registerConnection |
( |
const string & | interfaceId, |
|
|
ConnectedClientSharedPtr | connectedClient ) |
|
pure virtual |
Register mapping between client and service.
- Parameters
-
interfaceId | The name of the service to which to connect. |
connectedClient | Pointer to the connecting client. |
◆ registerDataToPolicy() [1/2]
◆ registerDataToPolicy() [2/2]
virtual void kanzi::connect::PolicyContextInterface::registerDataToPolicy |
( |
string | serviceName | ) |
|
|
pure virtual |
◆ registerServerQueueRTSAccessors()
virtual void kanzi::connect::PolicyContextInterface::registerServerQueueRTSAccessors |
( |
WorkItemDispatcher * | queue | ) |
|
|
pure virtual |
Create the policy RTS accessors for message queues.
◆ registerServiceMeasurements()
virtual bool kanzi::connect::PolicyContextInterface::registerServiceMeasurements |
( |
DiagnosticsManagerSharedPtr | diagnostics, |
|
|
const string & | interfaceid ) |
|
pure virtual |
Register diagnostics values for service named interfaceid to be available for policies.
- Parameters
-
diagnostics | Pointer to the diagnostics mechanism. |
interfaceid | The name of the interface, corresponds to service name. |
- Returns
- true on success
◆ removeClient()
virtual void kanzi::connect::PolicyContextInterface::removeClient |
( |
int | clientId | ) |
|
|
pure virtual |
Removes a client with specific client identifier.
ToDo: Should be symmetrical to adding new clients (i.e. shared ptr instead of token)
- Parameters
-
clientId | the client identifier to remove. |
The documentation for this class was generated from the following file:
- connect/interface/policy_interface.hpp