![]() |
Kea
1.5.0
|
The following methods are used to handle commands: More...
The following methods are used to handle commands:
|
static |
Handles statistic-get-all command.
This method handles statistic-get-all command, which returns values of all statistics. Params parameter is ignored.
| name | name of the command (ignored, should be "statistic-get-all") |
| params | ignored |
Definition at line 197 of file stats_mgr.cc.
References isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::stats::StatsMgr::getAll(), and isc::stats::StatsMgr::instance().
Here is the call graph for this function:
|
static |
Handles statistic-get command.
This method handles statistic-get command, which returns value of a given statistic). It expects one parameter stored in params map: name: name-of-the-statistic
Example params structure: { "name": "packets-received" }
| name | name of the command (ignored, should be "statistic-get") |
| params | structure containing a map that contains "name" |
Definition at line 144 of file stats_mgr.cc.
References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::stats::StatsMgr::get(), and isc::stats::StatsMgr::instance().
Here is the call graph for this function:
|
static |
Handles statistic-remove-all command.
This method handles statistic-remove-all command, which removes all statistics. Params parameter is ignored.
| name | name of the command (ignored, should be "statistic-remove-all") |
| params | ignored |
Definition at line 189 of file stats_mgr.cc.
References isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::stats::StatsMgr::instance(), and isc::stats::StatsMgr::removeAll().
Here is the call graph for this function:
|
static |
Handles statistic-remove command.
This method handles statistic-reset command, which removes a given statistic completely. It expects one parameter stored in params map: name: name-of-the-statistic
Example params structure: { "name": "packets-received" }
| name | name of the command (ignored, should be "statistic-remove") |
| params | structure containing a map that contains "name" element |
Definition at line 172 of file stats_mgr.cc.
References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::stats::StatsMgr::del(), and isc::stats::StatsMgr::instance().
Here is the call graph for this function:
|
static |
Handles statistic-reset-all command.
This method handles statistic-reset-all command, which sets values of all statistics back to zero. Params parameter is ignored.
| name | name of the command (ignored, should be "statistic-reset-all") |
| params | ignored |
Definition at line 204 of file stats_mgr.cc.
References isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::stats::StatsMgr::instance(), and isc::stats::StatsMgr::resetAll().
Here is the call graph for this function:
|
static |
Handles statistic-reset command.
This method handles statistic-reset command, which resets value of a given statistic. It expects one parameter stored in params map: name: name-of-the-statistic
Example params structure: { "name": "packets-received" }
| name | name of the command (ignored, should be "statistic-reset") |
| params | structure containing a map that contains "name" |
Definition at line 155 of file stats_mgr.cc.
References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::stats::StatsMgr::instance(), and isc::stats::StatsMgr::reset().
Here is the call graph for this function: