nfd::StrategyChoiceManager Class Referencefinal

Implements the Strategy Choice Management of NFD Management Protocol. More...

#include <daemon/mgmt/strategy-choice-manager.hpp>

+ Inheritance diagram for nfd::StrategyChoiceManager:
+ Collaboration diagram for nfd::StrategyChoiceManager:

Public Member Functions

 StrategyChoiceManager (strategy_choice::StrategyChoice &table, Dispatcher &dispatcher, CommandAuthenticator &authenticator)
 
const std::string & getModule () const
 

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

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)
 

Static Protected Member Functions

static void extractRequester (const Interest &interest, const ndn::mgmt::AcceptContinuation &accept)
 Extracts the requester from a ControlCommand request. More...
 

Detailed Description

Implements the Strategy Choice Management of NFD Management Protocol.

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

Definition at line 41 of file strategy-choice-manager.hpp.

Member Typedef Documentation

◆ ControlCommandHandler

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 76 of file manager-base.hpp.

Constructor & Destructor Documentation

◆ StrategyChoiceManager()

nfd::StrategyChoiceManager::StrategyChoiceManager ( strategy_choice::StrategyChoice table,
Dispatcher &  dispatcher,
CommandAuthenticator authenticator 
)

Definition at line 37 of file strategy-choice-manager.cpp.

Member Function Documentation

◆ extractRequester()

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

Extracts the requester from a ControlCommand request.

This is called after the signature has been validated.

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

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

◆ getModule()

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

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

◆ registerCommandHandler()

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

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

◆ registerNotificationStream()

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

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

◆ registerStatusDatasetHandler()

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

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