|
OpenSDN source code
|
#include <segment_health_check.h>


Public Types | |
| enum | Status { SUCCESS , FAILURE } |
Public Types inherited from DiagEntry | |
| typedef uint16_t | DiagKey |
| typedef Timer | DiagTimer |
Public Member Functions | |
| SegmentHealthCheckPkt (HealthCheckInstanceService *service, DiagTable *diag_table) | |
| virtual | ~SegmentHealthCheckPkt () |
| virtual void | SendRequest () |
| void | RequestTimedOut (uint32_t seqno) |
| virtual void | HandleReply (DiagPktHandler *handler) |
| virtual void | Retry () |
| virtual bool | IsDone () |
| virtual bool | ResendOnTimerExpiry () |
| void | set_service (HealthCheckInstanceService *svc) |
| void | StopDelayTimer () |
| void | UpdateService (HealthCheckInstanceService *service) |
Public Member Functions inherited from DiagEntry | |
| DiagEntry (const std::string &sip, const std::string &dip, uint8_t proto, uint16_t sport, uint16_t dport, const std::string &vrf_name, int timeout, int count, DiagTable *diag_table) | |
| virtual | ~DiagEntry () |
| void | Init () |
| void | EnqueueForceDelete () |
| virtual void | SendSummary () |
| bool | TimerExpiry (uint32_t seqno) |
| void | RestartTimer () |
| DiagKey | GetKey () |
| uint32_t | GetSeqNo () |
| uint32_t | GetMaxAttempts () |
| void | SetKey (DiagKey key) |
| bool | TimerCancel () |
| DiagTable * | diag_table () const |
| uint32_t | HashValUdpSourcePort () |
| void | FillOamPktHeader (OverlayOamPktData *pktdata, uint32_t vxlan_id, const boost::posix_time::ptime &time) |
Static Public Attributes | |
| static const int | kBufferSize = 1024 |
Private Member Functions | |
| void | FillDiagHeader (AgentDiagPktData *data) const |
| void | Notify (Status status) |
| bool | RetryHandler () |
| int | GetTimeout (const HealthCheckInstanceService *svc) const |
| int | GetDelay (const HealthCheckInstanceService *svc) const |
Private Attributes | |
| HealthCheckInstanceService * | service_ |
| Status | state_ |
| int | delay_msecs_ |
| Timer * | delay_timer_ |
Additional Inherited Members | |
Protected Attributes inherited from DiagEntry | |
| IpAddress | sip_ |
| IpAddress | dip_ |
| uint8_t | proto_ |
| uint16_t | sport_ |
| uint16_t | dport_ |
| std::string | vrf_name_ |
| boost::system::error_code | ec_ |
| DiagTable * | diag_table_ |
| DiagKey | key_ |
| int | timeout_ |
| DiagTimer * | timer_ |
| uint32_t | max_attempts_ |
| uint32_t | seq_no_ |
Definition at line 14 of file segment_health_check.h.
| Enumerator | |
|---|---|
| SUCCESS | |
| FAILURE | |
Definition at line 16 of file segment_health_check.h.
| SegmentHealthCheckPkt::SegmentHealthCheckPkt | ( | HealthCheckInstanceService * | service, |
| DiagTable * | diag_table | ||
| ) |
|
virtual |
|
private |
Definition at line 65 of file segment_health_check.cc.
|
private |
|
private |
|
virtual |
Implements DiagEntry.
Definition at line 167 of file segment_health_check.cc.

|
inlinevirtual |
Reimplemented from DiagEntry.
Definition at line 30 of file segment_health_check.h.
|
private |
|
virtual |
Implements DiagEntry.
Definition at line 159 of file segment_health_check.cc.

|
inlinevirtual |
Reimplemented from DiagEntry.
Definition at line 36 of file segment_health_check.h.
|
virtual |
Reimplemented from DiagEntry.
Definition at line 52 of file segment_health_check.cc.

|
private |
|
virtual |
Implements DiagEntry.
Definition at line 72 of file segment_health_check.cc.

|
inline |
Definition at line 37 of file segment_health_check.h.
| void SegmentHealthCheckPkt::StopDelayTimer | ( | ) |
| void SegmentHealthCheckPkt::UpdateService | ( | HealthCheckInstanceService * | service | ) |
|
private |
Definition at line 52 of file segment_health_check.h.
|
private |
Definition at line 53 of file segment_health_check.h.
|
static |
Definition at line 20 of file segment_health_check.h.
|
private |
Definition at line 50 of file segment_health_check.h.
|
private |
Definition at line 51 of file segment_health_check.h.