Implement the rdci subsystem: group, fieldgroup and dmon

Add the support for rdci subsystem group create, delete and query

Add the support for rdci subsystem fieldgroup create, delete and query

Add the support for rdci dmon system. The dmon system may show the stats every
a few seconds until press Ctrl-C. To cleanup the resources (for example, unwatch),
a signal handler is added.

Change-Id: Ib22a8a43b7083c7c72819ca21145e22702d9ad6c
This commit is contained in:
Bill(Shuzhou) Liu
2020-03-27 11:16:58 -04:00
committed by Chris Freehill
parent a6acf24ae7
commit 16bce67835
11 changed files with 1129 additions and 2 deletions
+12
View File
@@ -20,6 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include "RdciSubSystem.h"
#include <sstream>
#include "rdc_lib/RdcException.h"
#include "common/rdc_utils.h"
@@ -39,6 +40,17 @@ RdciSubSystem::RdciSubSystem():
}
}
std::vector<std::string> RdciSubSystem::split_string(const std::string& s,
char delimiter) const {
std::vector<std::string> tokens;
std::string token;
std::istringstream tokenStream(s);
while (std::getline(tokenStream, token, delimiter)) {
tokens.push_back(token);
}
return tokens;
}
void RdciSubSystem::connect() {
rdc_status_t status;