nfd::FaceManager Class Reference

implement the Face Management of NFD Management Protocol. More...

#include <face-manager.hpp>

Inheritance diagram for nfd::FaceManager:
Collaboration diagram for nfd::FaceManager:

Public Member Functions

 FaceManager (FaceTable &faceTable, Dispatcher &dispatcher, CommandAuthenticator &authenticator)
 
void setConfigFile (ConfigFile &configFile)
 Subscribe to face_system section for the config file. More...
 
const std::string & getModule () const
 

Protected Types

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

Protected Member Functions

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

Detailed Description

implement the Face Management of NFD Management Protocol.

See also
http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt

Definition at line 41 of file face-manager.hpp.

Member Typedef Documentation

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

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

Constructor & Destructor Documentation

nfd::FaceManager::FaceManager ( FaceTable faceTable,
Dispatcher &  dispatcher,
CommandAuthenticator authenticator 
)

Definition at line 38 of file face-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 56 of file manager-base.cpp.

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

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

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

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

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

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

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

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

void nfd::FaceManager::setConfigFile ( ConfigFile configFile)

Subscribe to face_system section for the config file.

Definition at line 73 of file face-manager.cpp.