NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
strategy-choice-manager.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_MGMT_STRATEGY_CHOICE_MANAGER_HPP
27
#define NFD_DAEMON_MGMT_STRATEGY_CHOICE_MANAGER_HPP
28
29
#include "
manager-base.hpp
"
30
31
namespace
nfd
{
32
33
class
StrategyChoice
;
34
39
class
StrategyChoiceManager
:
public
ManagerBase
40
{
41
public
:
42
StrategyChoiceManager
(
StrategyChoice
& strategyChoice,
43
Dispatcher
& dispatcher,
44
CommandValidator
& validator);
45
46
private
:
47
void
48
setStrategy(
const
Name
& topPrefix,
const
Interest
& interest,
49
ControlParameters
parameters,
50
const
ndn::mgmt::CommandContinuation
& done);
51
52
void
53
unsetStrategy(
const
Name
& topPrefix,
const
Interest
& interest,
54
ControlParameters
parameters,
55
const
ndn::mgmt::CommandContinuation
& done);
56
57
void
58
listChoices(
const
Name
& topPrefix,
const
Interest
& interest,
59
ndn::mgmt::StatusDatasetContext
& context);
60
61
private
:
62
StrategyChoice
& m_strategyChoice;
63
};
64
65
}
// namespace nfd
66
67
#endif // NFD_DAEMON_MGMT_STRATEGY_CHOICE_MANAGER_HPP
nfd::ManagerBase
a collection of common functions shared by all NFD managers, such as communicating with the dispatche...
Definition:
manager-base.hpp:49
nfd::StrategyChoice
represents the Strategy Choice table
Definition:
strategy-choice.hpp:45
ndn::nfd::ControlParameters
represents parameters in a ControlCommand request or response
Definition:
nfd-control-parameters.hpp:77
ndn::mgmt::Dispatcher
represents a dispatcher on server side of NFD Management protocol
Definition:
dispatcher.hpp:129
nfd::StrategyChoiceManager
implement the Strategy Choice Management of NFD Management Protocol.
Definition:
strategy-choice-manager.hpp:39
manager-base.hpp
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:45
nfd::StrategyChoiceManager::StrategyChoiceManager
StrategyChoiceManager(StrategyChoice &strategyChoice, Dispatcher &dispatcher, CommandValidator &validator)
Definition:
strategy-choice-manager.cpp:34
nfd::StrategyChoice
StrategyChoice
Definition:
strategy-choice.cpp:37
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::CommandValidator
Definition:
command-validator.hpp:34
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
ndn::mgmt::CommandContinuation
std::function< void(const ControlResponse &resp)> CommandContinuation
a function to be called after ControlCommandHandler completes
Definition:
dispatcher.hpp:95
ndn::mgmt::StatusDatasetContext
provides a context for generating response to a StatusDataset request
Definition:
status-dataset-context.hpp:36
ndnSIM
NFD
daemon
mgmt
strategy-choice-manager.hpp
Generated on Sat Nov 12 2016 16:02:54 for ndnSIM by
1.8.12