This interface provides a mechanism to control Connect behavior for scheduling and memory access.
More...
#include <policy_interface.hpp>
This interface provides a mechanism to control Connect behavior for scheduling and memory access.
It is expected that policy engine sets some values in here which are then read by various pieces in the
◆ Throttle
Enumerator |
---|
NoLimit | |
DropPacket | no effect
|
DontRead | read packet from network interface but drop it not yet valid for anything
|
Disconnect | do not read from buffer
|
◆ ~PolicyControllerInterface()
virtual kanzi::connect::PolicyControllerInterface::~PolicyControllerInterface |
( |
| ) |
|
|
inlinevirtual |
◆ demoteClient()
virtual void kanzi::connect::PolicyControllerInterface::demoteClient |
( |
int | clientId, |
|
|
int | timeout ) |
|
pure virtual |
The external commands induced by policy evaluation.
Reduce client priority
- Parameters
-
clientId | identifies client |
timeout | milliseconds of applicability for the demotion, -1 for permanent effect |
◆ disconnectClient()
virtual void kanzi::connect::PolicyControllerInterface::disconnectClient |
( |
int | clientId | ) |
|
|
pure virtual |
Disconnect client.
- Parameters
-
clientId | identifies client |
◆ eraseClientPriority()
virtual void kanzi::connect::PolicyControllerInterface::eraseClientPriority |
( |
int | clientId | ) |
|
|
pure virtual |
Removes the priority assigned to a particular client id.
- Parameters
-
clienId | the ID of a connected client |
◆ eraseThrottle()
virtual void kanzi::connect::PolicyControllerInterface::eraseThrottle |
( |
int | clientId | ) |
|
|
pure virtual |
Removes the socket throttling info for a particular clientID.
- Parameters
-
clienId | the ID of a connected client |
◆ getClientPriority()
Returns the priority assigned to a particular client id.
- Parameters
-
clienId | the ID of a connected client, XXX unique per execution? |
- Returns
- priority level
◆ getThrottle()
virtual Throttle kanzi::connect::PolicyControllerInterface::getThrottle |
( |
int | clientId | ) |
|
|
pure virtual |
◆ promoteClient()
virtual void kanzi::connect::PolicyControllerInterface::promoteClient |
( |
int | clientId, |
|
|
int | timeout ) |
|
pure virtual |
Increase client priority.
- Parameters
-
clientId | identifies client |
timeout | milliseconds of applicability for the demotion, -1 for permanent effect |
◆ resetCmd()
virtual void kanzi::connect::PolicyControllerInterface::resetCmd |
( |
int | clientId | ) |
|
|
pure virtual |
◆ stopNetwork()
virtual void kanzi::connect::PolicyControllerInterface::stopNetwork |
( |
int | clientId, |
|
|
int | timeout ) |
|
pure virtual |
Do not read from the network.
- Parameters
-
clientId | identifies client |
timeout | milliseconds of applicability for the demotion, -1 for permanent effect |
The documentation for this class was generated from the following file:
- connect/interface/policy_interface.hpp