OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SegmentHealthCheckPkt Class Reference

#include <segment_health_check.h>

Inheritance diagram for SegmentHealthCheckPkt:
Collaboration diagram for SegmentHealthCheckPkt:

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 ()
 
DiagTablediag_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

HealthCheckInstanceServiceservice_
 
Status state_
 
int delay_msecs_
 
Timerdelay_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_
 
DiagTablediag_table_
 
DiagKey key_
 
int timeout_
 
DiagTimertimer_
 
uint32_t max_attempts_
 
uint32_t seq_no_
 

Detailed Description

Definition at line 14 of file segment_health_check.h.

Member Enumeration Documentation

Enumerator
SUCCESS 
FAILURE 

Definition at line 16 of file segment_health_check.h.

Constructor & Destructor Documentation

SegmentHealthCheckPkt::SegmentHealthCheckPkt ( HealthCheckInstanceService service,
DiagTable diag_table 
)

Definition at line 12 of file segment_health_check.cc.

Here is the call graph for this function:

SegmentHealthCheckPkt::~SegmentHealthCheckPkt ( )
virtual

Definition at line 29 of file segment_health_check.cc.

Here is the call graph for this function:

Member Function Documentation

void SegmentHealthCheckPkt::FillDiagHeader ( AgentDiagPktData data) const
private

Definition at line 65 of file segment_health_check.cc.

int SegmentHealthCheckPkt::GetDelay ( const HealthCheckInstanceService svc) const
private

Definition at line 34 of file segment_health_check.cc.

Here is the call graph for this function:

int SegmentHealthCheckPkt::GetTimeout ( const HealthCheckInstanceService svc) const
private

Definition at line 43 of file segment_health_check.cc.

Here is the call graph for this function:

void SegmentHealthCheckPkt::HandleReply ( DiagPktHandler handler)
virtual

Implements DiagEntry.

Definition at line 167 of file segment_health_check.cc.

Here is the call graph for this function:

virtual bool SegmentHealthCheckPkt::IsDone ( )
inlinevirtual

Reimplemented from DiagEntry.

Definition at line 30 of file segment_health_check.h.

void SegmentHealthCheckPkt::Notify ( Status  status)
private

Definition at line 181 of file segment_health_check.cc.

Here is the call graph for this function:

void SegmentHealthCheckPkt::RequestTimedOut ( uint32_t  seqno)
virtual

Implements DiagEntry.

Definition at line 159 of file segment_health_check.cc.

Here is the call graph for this function:

virtual bool SegmentHealthCheckPkt::ResendOnTimerExpiry ( )
inlinevirtual

Reimplemented from DiagEntry.

Definition at line 36 of file segment_health_check.h.

void SegmentHealthCheckPkt::Retry ( )
virtual

Reimplemented from DiagEntry.

Definition at line 52 of file segment_health_check.cc.

Here is the call graph for this function:

bool SegmentHealthCheckPkt::RetryHandler ( )
private

Definition at line 58 of file segment_health_check.cc.

Here is the call graph for this function:

void SegmentHealthCheckPkt::SendRequest ( )
virtual

Implements DiagEntry.

Definition at line 72 of file segment_health_check.cc.

Here is the call graph for this function:

void SegmentHealthCheckPkt::set_service ( HealthCheckInstanceService svc)
inline

Definition at line 37 of file segment_health_check.h.

void SegmentHealthCheckPkt::StopDelayTimer ( )

Definition at line 177 of file segment_health_check.cc.

Here is the call graph for this function:

void SegmentHealthCheckPkt::UpdateService ( HealthCheckInstanceService service)

Definition at line 189 of file segment_health_check.cc.

Here is the call graph for this function:

Member Data Documentation

int SegmentHealthCheckPkt::delay_msecs_
private

Definition at line 52 of file segment_health_check.h.

Timer* SegmentHealthCheckPkt::delay_timer_
private

Definition at line 53 of file segment_health_check.h.

const int SegmentHealthCheckPkt::kBufferSize = 1024
static

Definition at line 20 of file segment_health_check.h.

HealthCheckInstanceService* SegmentHealthCheckPkt::service_
private

Definition at line 50 of file segment_health_check.h.

Status SegmentHealthCheckPkt::state_
private

Definition at line 51 of file segment_health_check.h.


The documentation for this class was generated from the following files: