Switch from NDNx to CCNx
Change-Id: Icc2e6dd95d9c4e0ba22b7efb9933c1db7194842e
diff --git a/src/fetch-manager.cc b/src/fetch-manager.cc
index a5a2bc2..034b9d6 100644
--- a/src/fetch-manager.cc
+++ b/src/fetch-manager.cc
@@ -32,14 +32,14 @@
using namespace boost;
using namespace std;
-using namespace Ccnx;
+using namespace Ndnx;
//The disposer object function
struct fetcher_disposer { void operator() (Fetcher *delete_this) { delete delete_this; } };
static const string SCHEDULE_FETCHES_TAG = "ScheduleFetches";
-FetchManager::FetchManager (Ccnx::CcnxWrapperPtr ccnx,
+FetchManager::FetchManager (Ndnx::NdnxWrapperPtr ndnx,
const Mapping &mapping,
const Name &broadcastForwardingHint,
uint32_t parallelFetches, // = 3
@@ -47,7 +47,7 @@
const FinishCallback &defaultFinishCallback,
const FetchTaskDbPtr &taskDb
)
- : m_ccnx (ccnx)
+ : m_ndnx (ndnx)
, m_mapping (mapping)
, m_maxParallelFetches (parallelFetches)
, m_currentParallelFetches (0)
@@ -76,21 +76,21 @@
m_scheduler->shutdown ();
m_executor->shutdown();
- m_ccnx.reset ();
+ m_ndnx.reset ();
m_fetchList.clear_and_dispose (fetcher_disposer ());
}
// Enqueue using default callbacks
void
-FetchManager::Enqueue (const Ccnx::Name &deviceName, const Ccnx::Name &baseName,
+FetchManager::Enqueue (const Ndnx::Name &deviceName, const Ndnx::Name &baseName,
uint64_t minSeqNo, uint64_t maxSeqNo, int priority)
{
Enqueue(deviceName, baseName, m_defaultSegmentCallback, m_defaultFinishCallback, minSeqNo, maxSeqNo, priority);
}
void
-FetchManager::Enqueue (const Ccnx::Name &deviceName, const Ccnx::Name &baseName,
+FetchManager::Enqueue (const Ndnx::Name &deviceName, const Ndnx::Name &baseName,
const SegmentCallback &segmentCallback, const FinishCallback &finishCallback,
uint64_t minSeqNo, uint64_t maxSeqNo, int priority/*PRIORITY_NORMAL*/)
{
@@ -112,7 +112,7 @@
unique_lock<mutex> lock (m_parellelFetchMutex);
_LOG_TRACE ("++++ Create fetcher: " << baseName);
- Fetcher *fetcher = new Fetcher (m_ccnx,
+ Fetcher *fetcher = new Fetcher (m_ndnx,
m_executor,
segmentCallback,
finishCallback,