OpenSDN source code
|
#include <feature_flags.h>
Public Member Functions | |
void | SendUVE () |
FlagConfigVec | GetFlagInfos (bool lock) const |
Static Public Member Functions | |
static FlagUveManager * | GetInstance () |
Private Types | |
typedef boost::function< void(void)> | FlagUveCb |
Private Member Functions | |
FlagUveManager (FlagManager *manager, FlagUveCb send_uve_cb) | |
DISALLOW_COPY_AND_ASSIGN (FlagUveManager) | |
Static Private Member Functions | |
static void | CreateInstance (FlagManager *mgr, FlagUveCb send_uve_cb) |
Private Attributes | |
FlagManager * | flag_manager_ |
FlagUveCb | flag_uve_cb_ |
Static Private Attributes | |
static boost::scoped_ptr < FlagUveManager > | instance_ |
Friends | |
class | ConnectionStateManager |
FlagUveManager class responsible for providing functionality to interface with analytics/introspect to provide data on the feature flags configured in each module. Analytics registers callbacks using this class which will be called when there is a change to flag definition or configuration.
Definition at line 379 of file feature_flags.h.
|
private |
UVE callback from ConnectionStateManager. This is called to report information on feature flags capability by user that modules are interested in.
Definition at line 408 of file feature_flags.h.
|
private |
Definition at line 103 of file feature_flags.cc.
|
staticprivate |
CreateInstance should be called from ConnectionStateManager::Init()
The assert is to catch errors where FlagManager::GetInstance() is called before ConnectionStateManager::Init()
Definition at line 112 of file feature_flags.cc.
|
private |
FlagConfigVec process::FlagUveManager::GetFlagInfos | ( | bool | lock | ) | const |
API to get all user-configured flags
Definition at line 137 of file feature_flags.cc.
|
static |
void process::FlagUveManager::SendUVE | ( | ) |
Helper class handling analytics registers a callback(flag_uve_cb) with FlagUveManager. This will be invoked when the FlagUveManager processes any user configuration for the flags.
Definition at line 129 of file feature_flags.cc.
|
friend |
Definition at line 401 of file feature_flags.h.
|
private |
Definition at line 415 of file feature_flags.h.
|
private |
Definition at line 416 of file feature_flags.h.
|
staticprivate |