#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.
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.
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.
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::PeerCloseManager |
( |
IPeerClose * |
peer_close, |
|
|
boost::asio::io_context * |
io_service |
|
) |
| |
PeerCloseManager::PeerCloseManager |
( |
IPeerClose * |
peer_close | ) |
|
|
explicit |
PeerCloseManager::~PeerCloseManager |
( |
| ) |
|
|
virtual |
bool PeerCloseManager::AssertMembershipManagerInUse |
( |
bool |
do_assert = true | ) |
|
|
privatevirtual |
bool PeerCloseManager::AssertMembershipReqCount |
( |
bool |
do_assert = true | ) |
|
|
privatevirtual |
bool PeerCloseManager::AssertMembershipState |
( |
bool |
do_assert = true | ) |
|
|
privatevirtual |
bool PeerCloseManager::AssertSweepState |
( |
bool |
do_assert = true | ) |
|
|
privatevirtual |
bool PeerCloseManager::CanUseMembershipManager |
( |
| ) |
const |
|
privatevirtual |
void PeerCloseManager::Close |
( |
bool |
graceful | ) |
|
void PeerCloseManager::Close |
( |
Event * |
event | ) |
|
|
private |
bool PeerCloseManager::close_again |
( |
| ) |
const |
|
inlineprivate |
void PeerCloseManager::CloseComplete |
( |
| ) |
|
|
private |
void PeerCloseManager::CloseInternal |
( |
| ) |
|
|
private |
void PeerCloseManager::EnqueueEvent |
( |
Event * |
event | ) |
|
|
private |
bool PeerCloseManager::EventCallback |
( |
Event * |
event | ) |
|
|
private |
BgpNeighborResp * PeerCloseManager::FillCloseInfo |
( |
BgpNeighborResp * |
resp | ) |
const |
void PeerCloseManager::FillRouteCloseInfo |
( |
PeerCloseInfo * |
close_info | ) |
const |
|
private |
std::string PeerCloseManager::GetEventName |
( |
EventType |
eventType | ) |
const |
|
private |
std::string PeerCloseManager::GetMembershipStateName |
( |
MembershipState |
state | ) |
const |
|
private |
void PeerCloseManager::GetRegisteredRibs |
( |
std::list< BgpTable * > * |
tables | ) |
|
|
privatevirtual |
std::string PeerCloseManager::GetStateName |
( |
State |
state | ) |
const |
|
private |
bool PeerCloseManager::IsCloseInProgress |
( |
| ) |
const |
|
inline |
bool PeerCloseManager::IsInDeleteState |
( |
| ) |
const |
|
inline |
bool PeerCloseManager::IsInGRTimerWaitState |
( |
| ) |
const |
|
inline |
bool PeerCloseManager::IsInLlgrTimerWaitState |
( |
| ) |
const |
|
inline |
bool PeerCloseManager::IsMembershipInUse |
( |
| ) |
const |
|
inline |
bool PeerCloseManager::IsMembershipInWait |
( |
| ) |
const |
|
inline |
bool PeerCloseManager::IsQueueEmpty |
( |
| ) |
const |
|
inline |
bool PeerCloseManager::IsRegistered |
( |
BgpTable * |
table | ) |
const |
|
privatevirtual |
bool PeerCloseManager::IsRibInRegistered |
( |
BgpTable * |
table | ) |
const |
|
privatevirtual |
void PeerCloseManager::MembershipRequest |
( |
| ) |
|
void PeerCloseManager::MembershipRequest |
( |
Event * |
event | ) |
|
|
private |
void PeerCloseManager::MembershipRequestCallback |
( |
| ) |
|
bool PeerCloseManager::MembershipRequestCallback |
( |
Event * |
event | ) |
|
|
private |
IPeerClose* PeerCloseManager::peer_close |
( |
| ) |
const |
|
inline |
void PeerCloseManager::ProcessClosure |
( |
| ) |
|
|
private |
void PeerCloseManager::ProcessEORMarkerReceived |
( |
Event * |
event | ) |
|
|
private |
bool PeerCloseManager::RestartTimerCallback |
( |
| ) |
|
|
private |
void PeerCloseManager::RestartTimerCallback |
( |
Event * |
event | ) |
|
|
private |
void PeerCloseManager::StaleNotify |
( |
| ) |
|
|
private |
void PeerCloseManager::StartRestartTimer |
( |
int |
time | ) |
|
|
privatevirtual |
State PeerCloseManager::state |
( |
| ) |
const |
|
inlineprivate |
const Stats& PeerCloseManager::stats |
( |
| ) |
const |
|
inlineprivate |
void PeerCloseManager::TriggerSweepStateActions |
( |
| ) |
|
|
private |
void PeerCloseManager::Unregister |
( |
BgpTable * |
table | ) |
|
|
privatevirtual |
void PeerCloseManager::UnregisterRibIn |
( |
BgpTable * |
table | ) |
|
|
privatevirtual |
void PeerCloseManager::UnregisterRibOut |
( |
BgpTable * |
table | ) |
|
|
privatevirtual |
void PeerCloseManager::UpdateRouteStats |
( |
Address::Family |
family, |
|
|
const BgpPath * |
old_path, |
|
|
uint32_t |
path_flags |
|
) |
| const |
void PeerCloseManager::WalkRibIn |
( |
BgpTable * |
table | ) |
|
|
privatevirtual |
friend class BgpServerUnitTest |
|
friend |
friend class GracefulRestartTest |
|
friend |
friend class PeerCloseManagerTest |
|
friend |
friend class PeerCloseTest |
|
friend |
bool PeerCloseManager::close_again_ |
|
private |
int PeerCloseManager::gr_elapsed_ |
|
private |
Timer* PeerCloseManager::gr_timer_ |
|
private |
bool PeerCloseManager::graceful_ |
|
private |
int PeerCloseManager::llgr_elapsed_ |
|
private |
tbb::atomic<int> PeerCloseManager::membership_req_pending_ |
|
private |
State PeerCloseManager::state_ |
|
private |
Stats PeerCloseManager::stats_ |
|
private |
The documentation for this class was generated from the following files: