OpenHIP 0.9svn1
|
#include <ifmap_client.h>
Public Slots | |
void | connectToMap (QMap< QString, QString > *mapConfig) |
void | setUnderlayIp (QString ip) |
Public Member Functions | |
IfmapClient (QObject *parent=0) | |
~IfmapClient () | |
Private Slots | |
void | newSession () |
void | mapResponseOnARC (MapResponse *mapResponse) |
void | publishUnderlayIp () |
Private Member Functions | |
void | updateEndboxMapping (SearchResult *searchResult) |
QString | interfaceAddr () |
bool | purgePublisher () |
bool | publishCurrentState () |
bool | setupEndboxMapSubscriptions () |
bool | searchCurrentConfig () |
void | processPollResponse (MapResponse *mapResponse) |
Private Attributes | |
Ifmap * | _ifmap |
bool | _haveValidSession |
QString | _sessionId |
QString | _publisherId |
QString | _currentIp |
QString | _oldIp |
bool | _haveInitialConfig |
QString | _scadaNS |
QString | _matchLinks |
QString | _resultsFilter |
int | _maxDepth |
int | _retryDelay |
QMap< QString, QString > | _mapConfig |
IfmapClient::IfmapClient | ( | QObject * | parent = 0 | ) |
References _haveInitialConfig, _ifmap, _matchLinks, _resultsFilter, _retryDelay, _scadaNS, and mapResponseOnARC().
IfmapClient::~IfmapClient | ( | ) |
References _ifmap.
void IfmapClient::connectToMap | ( | QMap< QString, QString > * | mapConfig | ) | [slot] |
References _ifmap, _mapConfig, _maxDepth, and newSession().
QString IfmapClient::interfaceAddr | ( | ) | [private] |
References _mapConfig.
void IfmapClient::mapResponseOnARC | ( | MapResponse * | mapResponse | ) | [private, slot] |
References _ifmap, _retryDelay, newSession(), and processPollResponse().
Referenced by IfmapClient().
void IfmapClient::newSession | ( | ) | [private, slot] |
References _haveValidSession, _ifmap, _publisherId, _retryDelay, _sessionId, publishCurrentState(), purgePublisher(), searchCurrentConfig(), and setupEndboxMapSubscriptions().
Referenced by connectToMap(), mapResponseOnARC(), processPollResponse(), and publishUnderlayIp().
void IfmapClient::processPollResponse | ( | MapResponse * | mapResponse | ) | [private] |
References _ifmap, _retryDelay, newSession(), and updateEndboxMapping().
Referenced by mapResponseOnARC().
bool IfmapClient::publishCurrentState | ( | ) | [private] |
References _currentIp, _ifmap, _mapConfig, _scadaNS, and pub.
Referenced by newSession().
void IfmapClient::publishUnderlayIp | ( | ) | [private, slot] |
References _currentIp, _ifmap, _mapConfig, _oldIp, _retryDelay, _scadaNS, newSession(), and pub.
Referenced by setUnderlayIp().
bool IfmapClient::purgePublisher | ( | ) | [private] |
References _ifmap, and _publisherId.
Referenced by newSession().
bool IfmapClient::searchCurrentConfig | ( | ) | [private] |
References _ifmap, _mapConfig, _matchLinks, _maxDepth, _resultsFilter, and updateEndboxMapping().
Referenced by newSession().
void IfmapClient::setUnderlayIp | ( | QString | ip | ) | [slot] |
References _currentIp, _haveValidSession, _ifmap, _oldIp, and publishUnderlayIp().
bool IfmapClient::setupEndboxMapSubscriptions | ( | ) | [private] |
References _ifmap, _mapConfig, _matchLinks, _maxDepth, and _resultsFilter.
Referenced by newSession().
void IfmapClient::updateEndboxMapping | ( | SearchResult * | searchResult | ) | [private] |
References _haveInitialConfig, _mapConfig, _scadaNS, hipCfgMap::getInstance(), mapMutex, mapWaitCond, and hipCfgMap::updateMaps().
Referenced by processPollResponse(), and searchCurrentConfig().
QString IfmapClient::_currentIp [private] |
Referenced by publishCurrentState(), publishUnderlayIp(), and setUnderlayIp().
bool IfmapClient::_haveInitialConfig [private] |
Referenced by IfmapClient(), and updateEndboxMapping().
bool IfmapClient::_haveValidSession [private] |
Referenced by newSession(), and setUnderlayIp().
Ifmap* IfmapClient::_ifmap [private] |
QMap<QString,QString> IfmapClient::_mapConfig [private] |
QString IfmapClient::_matchLinks [private] |
Referenced by IfmapClient(), searchCurrentConfig(), and setupEndboxMapSubscriptions().
int IfmapClient::_maxDepth [private] |
Referenced by connectToMap(), searchCurrentConfig(), and setupEndboxMapSubscriptions().
QString IfmapClient::_oldIp [private] |
Referenced by publishUnderlayIp(), and setUnderlayIp().
QString IfmapClient::_publisherId [private] |
Referenced by newSession(), and purgePublisher().
QString IfmapClient::_resultsFilter [private] |
Referenced by IfmapClient(), searchCurrentConfig(), and setupEndboxMapSubscriptions().
int IfmapClient::_retryDelay [private] |
Referenced by IfmapClient(), mapResponseOnARC(), newSession(), processPollResponse(), and publishUnderlayIp().
QString IfmapClient::_scadaNS [private] |
Referenced by IfmapClient(), publishCurrentState(), publishUnderlayIp(), and updateEndboxMapping().
QString IfmapClient::_sessionId [private] |
Referenced by newSession().