nfd::CsManager Class Reference

Implement the CS Management of NFD Management Protocol. More...

#include <daemon/mgmt/cs-manager.hpp>

+ Inheritance diagram for nfd::CsManager:
+ Collaboration diagram for nfd::CsManager:

Public Member Functions

 CsManager (Cs &cs, const ForwarderCounters &fwCnt, Dispatcher &dispatcher, CommandAuthenticator &authenticator)
 
const std::string & getModule () const
 

Static Public Attributes

static constexpr size_t ERASE_LIMIT = 256
 

Protected Types

using ControlCommandHandler = std::function< void(const ControlCommand &command, const Name &prefix, const Interest &interest, const ControlParameters &parameters, const ndn::mgmt::CommandContinuation done)>
 

Protected Member Functions

void extractRequester (const Interest &interest, ndn::mgmt::AcceptContinuation accept)
 extract a requester from a ControlCommand request More...
 
template<typename Command >
void registerCommandHandler (const std::string &verb, const ControlCommandHandler &handler)
 
ndn::mgmt::PostNotification registerNotificationStream (const std::string &verb)
 
void registerStatusDatasetHandler (const std::string &verb, const ndn::mgmt::StatusDatasetHandler &handler)
 

Detailed Description

Implement the CS Management of NFD Management Protocol.

See also
https://redmine.named-data.net/projects/nfd/wiki/CsMgmt

Definition at line 38 of file cs-manager.hpp.

Member Typedef Documentation

using nfd::ManagerBase::ControlCommandHandler = std::function<void(const ControlCommand& command, const Name& prefix, const Interest& interest, const ControlParameters& parameters, const ndn::mgmt::CommandContinuation done)>
protectedinherited

Definition at line 78 of file manager-base.hpp.

Constructor & Destructor Documentation

nfd::CsManager::CsManager ( Cs &  cs,
const ForwarderCounters fwCnt,
Dispatcher &  dispatcher,
CommandAuthenticator authenticator 
)

Definition at line 33 of file cs-manager.cpp.

Member Function Documentation

void nfd::ManagerBase::extractRequester ( const Interest &  interest,
ndn::mgmt::AcceptContinuation  accept 
)
protectedinherited

extract a requester from a ControlCommand request

This is called after the signature is validated.

Parameters
interesta request for ControlCommand
acceptcallback of successful validation, take the requester string as a argument

Definition at line 57 of file manager-base.cpp.

const std::string& nfd::ManagerBase::getModule ( ) const
inlineinherited

Definition at line 68 of file manager-base.hpp.

template<typename Command >
void nfd::ManagerBase::registerCommandHandler ( const std::string &  verb,
const ControlCommandHandler handler 
)
inlineprotectedinherited

Definition at line 156 of file manager-base.hpp.

ndn::mgmt::PostNotification nfd::ManagerBase::registerNotificationStream ( const std::string &  verb)
protectedinherited

Definition at line 51 of file manager-base.cpp.

void nfd::ManagerBase::registerStatusDatasetHandler ( const std::string &  verb,
const ndn::mgmt::StatusDatasetHandler &  handler 
)
protectedinherited

Definition at line 42 of file manager-base.cpp.

Member Data Documentation

constexpr size_t nfd::CsManager::ERASE_LIMIT = 256
static

Definition at line 64 of file cs-manager.hpp.