fw: Strategy base class
refs #1254
Change-Id: I9b533dd8bda131ae060f9e9f8cb2dd96541a8e60
diff --git a/daemon/fw/strategy.cpp b/daemon/fw/strategy.cpp
index f8c2f12..dd7eab5 100644
--- a/daemon/fw/strategy.cpp
+++ b/daemon/fw/strategy.cpp
@@ -6,10 +6,13 @@
#include "strategy.hpp"
#include "forwarder.hpp"
+#include "core/logger.hpp"
namespace nfd {
namespace fw {
+NFD_LOG_INIT("Strategy");
+
Strategy::Strategy(Forwarder& forwarder)
: m_forwarder(forwarder)
{
@@ -19,6 +22,29 @@
{
}
+void
+Strategy::beforeExpirePendingInterest(shared_ptr<pit::Entry> pitEntry)
+{
+ NFD_LOG_DEBUG("beforeExpirePendingInterest pitEntry=" << pitEntry->getName());
+}
+
+void
+Strategy::afterAddFibEntry(shared_ptr<fib::Entry> fibEntry)
+{
+ NFD_LOG_DEBUG("afterAddFibEntry fibEntry=" << fibEntry->getPrefix());
+}
+
+void
+Strategy::afterUpdateFibEntry(shared_ptr<fib::Entry> fibEntry)
+{
+ NFD_LOG_DEBUG("afterUpdateFibEntry fibEntry=" << fibEntry->getPrefix());
+}
+
+void
+Strategy::beforeRemoveFibEntry(shared_ptr<fib::Entry> fibEntry)
+{
+ NFD_LOG_DEBUG("beforeRemoveFibEntry fibEntry=" << fibEntry->getPrefix());
+}
void
Strategy::sendInterest(shared_ptr<pit::Entry> pitEntry,