mgmt: publish Strategy Choice dataset
refs: #1632
Change-Id: I4ed09d191433fd80071367e7b2ffcd2ac81c5c17
diff --git a/daemon/mgmt/strategy-choice-manager.hpp b/daemon/mgmt/strategy-choice-manager.hpp
index cf46e96..f3a0ed5 100644
--- a/daemon/mgmt/strategy-choice-manager.hpp
+++ b/daemon/mgmt/strategy-choice-manager.hpp
@@ -5,7 +5,8 @@
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
- * Beijing Institute of Technology
+ * Beijing Institute of Technology,
+ * The University of Memphis
*
* This file is part of NFD (Named Data Networking Forwarding Daemon).
* See AUTHORS.md for complete list of NFD authors and contributors.
@@ -26,6 +27,7 @@
#define NFD_DAEMON_MGMT_STRATEGY_CHOICE_MANAGER_HPP
#include "mgmt/manager-base.hpp"
+#include "mgmt/strategy-choice-publisher.hpp"
#include <ndn-cxx/management/nfd-control-parameters.hpp>
@@ -48,6 +50,10 @@
onStrategyChoiceRequest(const Interest& request);
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
+
+ void
+ listStrategies(const Interest& request);
+
void
onValidatedStrategyChoiceRequest(const shared_ptr<const Interest>& request);
@@ -63,6 +69,8 @@
StrategyChoice& m_strategyChoice;
+ StrategyChoicePublisher m_listPublisher;
+
static const Name COMMAND_PREFIX; // /localhost/nfd/strategy-choice
// number of components in an invalid, but not malformed, unsigned command.
@@ -73,6 +81,8 @@
// (see UNSIGNED_NCOMPS), 9 with signed Interest support.
static const size_t COMMAND_SIGNED_NCOMPS;
+ static const Name LIST_DATASET_PREFIX; // /localhost/nfd/strategy-choice/list
+
};
} // namespace nfd