#include <peer_close_manager.h>
|
enum | State {
BEGIN_STATE
, NONE = BEGIN_STATE
, STALE
, GR_TIMER
,
LLGR_STALE
, LLGR_TIMER
, SWEEP
, DELETE
,
END_STATE = DELETE
} |
|
enum | MembershipState {
BEGIN_MEMBERSHIP_STATE
, MEMBERSHIP_NONE = BEGIN_MEMBERSHIP_STATE
, MEMBERSHIP_IN_USE
, MEMBERSHIP_IN_WAIT
,
END_MEMBERSHIP_STATE = MEMBERSHIP_IN_WAIT
} |
|
enum | EventType {
BEGIN_EVENT
, EVENT_NONE = BEGIN_EVENT
, CLOSE
, EOR_RECEIVED
,
MEMBERSHIP_REQUEST
, MEMBERSHIP_REQUEST_COMPLETE_CALLBACK
, TIMER_CALLBACK
, END_EVENT = TIMER_CALLBACK
} |
|
Definition at line 38 of file peer_close_manager.h.
◆ EventType
Enumerator |
---|
BEGIN_EVENT | |
EVENT_NONE | |
CLOSE | |
EOR_RECEIVED | |
MEMBERSHIP_REQUEST | |
MEMBERSHIP_REQUEST_COMPLETE_CALLBACK | |
TIMER_CALLBACK | |
END_EVENT | |
Definition at line 98 of file peer_close_manager.h.
◆ MembershipState
Enumerator |
---|
BEGIN_MEMBERSHIP_STATE | |
MEMBERSHIP_NONE | |
MEMBERSHIP_IN_USE | |
MEMBERSHIP_IN_WAIT | |
END_MEMBERSHIP_STATE | |
Definition at line 90 of file peer_close_manager.h.
◆ State
Enumerator |
---|
BEGIN_STATE | |
NONE | |
STALE | |
GR_TIMER | |
LLGR_STALE | |
LLGR_TIMER | |
SWEEP | |
DELETE | |
END_STATE | |
Definition at line 78 of file peer_close_manager.h.
◆ PeerCloseManager() [1/2]
PeerCloseManager::PeerCloseManager |
( |
IPeerClose * |
peer_close, |
|
|
boost::asio::io_context * |
io_service |
|
) |
| |
◆ PeerCloseManager() [2/2]
PeerCloseManager::PeerCloseManager |
( |
IPeerClose * |
peer_close | ) |
|
|
explicit |
◆ ~PeerCloseManager()
PeerCloseManager::~PeerCloseManager |
( |
| ) |
|
|
virtual |
◆ AssertMembershipManagerInUse()
bool PeerCloseManager::AssertMembershipManagerInUse |
( |
bool |
do_assert = true | ) |
|
|
privatevirtual |
◆ AssertMembershipReqCount()
bool PeerCloseManager::AssertMembershipReqCount |
( |
bool |
do_assert = true | ) |
|
|
privatevirtual |
◆ AssertMembershipState()
bool PeerCloseManager::AssertMembershipState |
( |
bool |
do_assert = true | ) |
|
|
privatevirtual |
◆ AssertSweepState()
bool PeerCloseManager::AssertSweepState |
( |
bool |
do_assert = true | ) |
|
|
privatevirtual |
◆ CanUseMembershipManager()
bool PeerCloseManager::CanUseMembershipManager |
( |
| ) |
const |
|
privatevirtual |
◆ Close() [1/2]
void PeerCloseManager::Close |
( |
bool |
graceful | ) |
|
◆ Close() [2/2]
void PeerCloseManager::Close |
( |
Event * |
event | ) |
|
|
private |
◆ close_again()
bool PeerCloseManager::close_again |
( |
| ) |
const |
|
inlineprivate |
◆ CloseComplete()
void PeerCloseManager::CloseComplete |
( |
| ) |
|
|
private |
◆ CloseInternal()
void PeerCloseManager::CloseInternal |
( |
| ) |
|
|
private |
◆ EnqueueEvent()
void PeerCloseManager::EnqueueEvent |
( |
Event * |
event | ) |
|
|
private |
◆ EventCallback()
bool PeerCloseManager::EventCallback |
( |
Event * |
event | ) |
|
|
private |
◆ families()
◆ FillCloseInfo()
BgpNeighborResp * PeerCloseManager::FillCloseInfo |
( |
BgpNeighborResp * |
resp | ) |
const |
◆ FillRouteCloseInfo()
void PeerCloseManager::FillRouteCloseInfo |
( |
PeerCloseInfo * |
close_info | ) |
const |
|
private |
◆ GetEventName()
std::string PeerCloseManager::GetEventName |
( |
EventType |
eventType | ) |
const |
|
private |
◆ GetMembershipStateName()
std::string PeerCloseManager::GetMembershipStateName |
( |
MembershipState |
state | ) |
const |
|
private |
◆ GetRegisteredRibs()
void PeerCloseManager::GetRegisteredRibs |
( |
std::list< BgpTable * > * |
tables | ) |
|
|
privatevirtual |
◆ GetStateName()
std::string PeerCloseManager::GetStateName |
( |
State |
state | ) |
const |
|
private |
◆ IsCloseInProgress()
bool PeerCloseManager::IsCloseInProgress |
( |
| ) |
const |
|
inline |
◆ IsInDeleteState()
bool PeerCloseManager::IsInDeleteState |
( |
| ) |
const |
|
inline |
◆ IsInGRTimerWaitState()
bool PeerCloseManager::IsInGRTimerWaitState |
( |
| ) |
const |
|
inline |
◆ IsInLlgrTimerWaitState()
bool PeerCloseManager::IsInLlgrTimerWaitState |
( |
| ) |
const |
|
inline |
◆ IsMembershipInUse()
bool PeerCloseManager::IsMembershipInUse |
( |
| ) |
const |
|
inline |
◆ IsMembershipInWait()
bool PeerCloseManager::IsMembershipInWait |
( |
| ) |
const |
|
inline |
◆ IsQueueEmpty()
bool PeerCloseManager::IsQueueEmpty |
( |
| ) |
const |
|
inline |
◆ IsRegistered()
bool PeerCloseManager::IsRegistered |
( |
BgpTable * |
table | ) |
const |
|
privatevirtual |
◆ IsRibInRegistered()
bool PeerCloseManager::IsRibInRegistered |
( |
BgpTable * |
table | ) |
const |
|
privatevirtual |
◆ MembershipPathCallback()
◆ MembershipRequest() [1/2]
void PeerCloseManager::MembershipRequest |
( |
| ) |
|
◆ MembershipRequest() [2/2]
void PeerCloseManager::MembershipRequest |
( |
Event * |
event | ) |
|
|
private |
◆ MembershipRequestCallback() [1/2]
void PeerCloseManager::MembershipRequestCallback |
( |
| ) |
|
◆ MembershipRequestCallback() [2/2]
bool PeerCloseManager::MembershipRequestCallback |
( |
Event * |
event | ) |
|
|
private |
◆ peer_close()
IPeerClose* PeerCloseManager::peer_close |
( |
| ) |
const |
|
inline |
◆ ProcessClosure()
void PeerCloseManager::ProcessClosure |
( |
| ) |
|
|
private |
◆ ProcessEORMarkerReceived() [1/2]
◆ ProcessEORMarkerReceived() [2/2]
void PeerCloseManager::ProcessEORMarkerReceived |
( |
Event * |
event | ) |
|
|
private |
◆ RestartTimerCallback() [1/2]
bool PeerCloseManager::RestartTimerCallback |
( |
| ) |
|
|
private |
◆ RestartTimerCallback() [2/2]
void PeerCloseManager::RestartTimerCallback |
( |
Event * |
event | ) |
|
|
private |
◆ set_membership_state()
◆ StaleNotify()
void PeerCloseManager::StaleNotify |
( |
| ) |
|
|
private |
◆ StartRestartTimer()
void PeerCloseManager::StartRestartTimer |
( |
int |
time | ) |
|
|
privatevirtual |
◆ state()
State PeerCloseManager::state |
( |
| ) |
const |
|
inlineprivate |
◆ stats()
const Stats& PeerCloseManager::stats |
( |
| ) |
const |
|
inlineprivate |
◆ TriggerSweepStateActions()
void PeerCloseManager::TriggerSweepStateActions |
( |
| ) |
|
|
private |
◆ Unregister()
void PeerCloseManager::Unregister |
( |
BgpTable * |
table | ) |
|
|
privatevirtual |
◆ UnregisterRibIn()
void PeerCloseManager::UnregisterRibIn |
( |
BgpTable * |
table | ) |
|
|
privatevirtual |
◆ UnregisterRibOut()
void PeerCloseManager::UnregisterRibOut |
( |
BgpTable * |
table | ) |
|
|
privatevirtual |
◆ UpdateRouteStats()
void PeerCloseManager::UpdateRouteStats |
( |
Address::Family |
family, |
|
|
const BgpPath * |
old_path, |
|
|
uint32_t |
path_flags |
|
) |
| const |
◆ WalkRibIn()
void PeerCloseManager::WalkRibIn |
( |
BgpTable * |
table | ) |
|
|
privatevirtual |
◆ BgpServerUnitTest
friend class BgpServerUnitTest |
|
friend |
◆ GracefulRestartTest
friend class GracefulRestartTest |
|
friend |
◆ PeerCloseManagerTest
friend class PeerCloseManagerTest |
|
friend |
◆ PeerCloseTest
friend class PeerCloseTest |
|
friend |
◆ close_again_
bool PeerCloseManager::close_again_ |
|
private |
◆ event_queue_
◆ families_
◆ gr_elapsed_
int PeerCloseManager::gr_elapsed_ |
|
private |
◆ gr_timer_
Timer* PeerCloseManager::gr_timer_ |
|
private |
◆ graceful_
bool PeerCloseManager::graceful_ |
|
private |
◆ llgr_elapsed_
int PeerCloseManager::llgr_elapsed_ |
|
private |
◆ membership_req_pending_
tbb::atomic<int> PeerCloseManager::membership_req_pending_ |
|
private |
◆ membership_state_
◆ peer_close_
◆ state_
State PeerCloseManager::state_ |
|
private |
◆ stats_
Stats PeerCloseManager::stats_ |
|
private |
The documentation for this class was generated from the following files: