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

#include <health_check.h>

Inheritance diagram for HealthCheckInstanceService:
Collaboration diagram for HealthCheckInstanceService:

Public Member Functions

 HealthCheckInstanceService (HealthCheckService *service, MetaDataIpAllocator *allocator, VmInterface *intf, VmInterface *other_intf, bool ignore_status_event, bool multi_hop)
 
virtual ~HealthCheckInstanceService ()
 
virtual bool CreateInstanceTask ()
 
virtual bool DestroyInstanceTask ()
 
virtual bool RunInstanceTask ()
 
virtual bool StopInstanceTask ()
 
virtual bool UpdateInstanceTask ()
 
virtual void ResyncTarget (const HealthCheckService *service) const
 
void EnqueueMacIpLearningHCStatus (const HealthCheckService *service) const
 
bool is_multi_hop () const
 
- Public Member Functions inherited from HealthCheckInstanceBase
 HealthCheckInstanceBase (HealthCheckService *service, MetaDataIpAllocator *allocator, VmInterface *intf, bool ignore_status_event)
 
virtual ~HealthCheckInstanceBase ()
 
void OnRead (const std::string &data)
 
void OnExit (const boost::system::error_code &ec)
 
void SetService (HealthCheckService *service)
 
void StopTask (HealthCheckService *service)
 
void set_service (HealthCheckService *service)
 
std::string to_string ()
 
bool active ()
 
virtual bool IsRunning () const
 
HealthCheckServiceservice () const
 
InterfaceRef interface () const
 
MetaDataIpip () const
 
const std::string & last_update_time () const
 
bool IsStatusEventIgnored () const
 
void set_source_ip (const IpAddress &ip)
 
IpAddress get_source_ip () const
 
IpAddress source_ip () const
 
IpAddress update_source_ip ()
 
void set_destination_ip (const IpAddress &ip)
 
IpAddress destination_ip () const
 
void EnqueueHealthCheckResync (const HealthCheckService *service, const VmInterface *itf) const
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (HealthCheckInstanceService)
 

Private Attributes

InterfaceRef other_intf_
 
bool multi_hop_
 

Friends

class HealthCheckTable
 

Additional Inherited Members

- Protected Member Functions inherited from HealthCheckInstanceBase
void EnqueueResync (const HealthCheckService *service, Interface *itf) const
 
- Protected Attributes inherited from HealthCheckInstanceBase
HealthCheckServiceRef service_
 
InterfaceRef intf_
 
boost::scoped_ptr< MetaDataIpip_
 
bool active_
 
std::string last_update_time_
 
bool deleted_
 
bool ignore_status_event_
 
IpAddress source_ip_
 
IpAddress destination_ip_
 

Detailed Description

Definition at line 217 of file health_check.h.

Constructor & Destructor Documentation

HealthCheckInstanceService::HealthCheckInstanceService ( HealthCheckService service,
MetaDataIpAllocator allocator,
VmInterface intf,
VmInterface other_intf,
bool  ignore_status_event,
bool  multi_hop 
)

Definition at line 255 of file health_check.cc.

Here is the call graph for this function:

HealthCheckInstanceService::~HealthCheckInstanceService ( )
virtual

Definition at line 266 of file health_check.cc.

Here is the call graph for this function:

Member Function Documentation

bool HealthCheckInstanceService::CreateInstanceTask ( )
virtual

Implements HealthCheckInstanceBase.

Definition at line 274 of file health_check.cc.

Here is the call graph for this function:

bool HealthCheckInstanceService::DestroyInstanceTask ( )
virtual

Implements HealthCheckInstanceBase.

Definition at line 289 of file health_check.cc.

Here is the call graph for this function:

HealthCheckInstanceService::DISALLOW_COPY_AND_ASSIGN ( HealthCheckInstanceService  )
private
void HealthCheckInstanceService::EnqueueMacIpLearningHCStatus ( const HealthCheckService service) const
bool HealthCheckInstanceService::is_multi_hop ( ) const
inline

Definition at line 233 of file health_check.h.

void HealthCheckInstanceService::ResyncTarget ( const HealthCheckService service) const
virtual

Reimplemented from HealthCheckInstanceBase.

Reimplemented in HealthCheckMacIpInstanceService.

Definition at line 344 of file health_check.cc.

Here is the call graph for this function:

bool HealthCheckInstanceService::RunInstanceTask ( )
virtual

Implements HealthCheckInstanceBase.

Definition at line 305 of file health_check.cc.

Here is the call graph for this function:

bool HealthCheckInstanceService::StopInstanceTask ( )
virtual

Implements HealthCheckInstanceBase.

Definition at line 318 of file health_check.cc.

Here is the call graph for this function:

bool HealthCheckInstanceService::UpdateInstanceTask ( )
virtual

Reimplemented from HealthCheckInstanceBase.

Definition at line 328 of file health_check.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class HealthCheckTable
friend

Definition at line 236 of file health_check.h.

Member Data Documentation

bool HealthCheckInstanceService::multi_hop_
private

Definition at line 244 of file health_check.h.

InterfaceRef HealthCheckInstanceService::other_intf_
private

Definition at line 240 of file health_check.h.


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