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

#include <physical_device.h>

Inheritance diagram for PhysicalDevice:
Collaboration diagram for PhysicalDevice:

Public Types

enum  ManagementProtocol { INVALID, OVS }
 
- Public Types inherited from AgentDBEntry
typedef boost::intrusive_ptr
< AgentDBEntry
AgentDBEntyRef
 
- Public Types inherited from DBEntryBase
typedef DBTableBase::ListenerId ListenerId
 
typedef std::unique_ptr
< DBRequestKey
KeyPtr
 

Public Member Functions

 PhysicalDevice (const boost::uuids::uuid &id)
 
virtual ~PhysicalDevice ()
 
virtual bool IsLess (const DBEntry &rhs) const
 
virtual KeyPtr GetDBRequestKey () const
 
virtual void SetKey (const DBRequestKey *key)
 
virtual std::string ToString () const
 
uint32_t GetRefCount () const
 
bool Copy (PhysicalDeviceTable *table, const PhysicalDeviceData *data)
 
const boost::uuids::uuid & uuid () const
 
const std::string & fq_name () const
 
const std::string & name () const
 
const std::string & vendor () const
 
const IpAddressip () const
 
const IpAddressmanagement_ip () const
 
ManagementProtocol protocol () const
 
bool master () const
 
void set_master (bool value)
 
void SendObjectLog (AgentLogEvent::type event) const
 
bool DBEntrySandesh (Sandesh *resp, std::string &name) const
 
- Public Member Functions inherited from AgentOperDBEntry
 AgentOperDBEntry ()
 
virtual ~AgentOperDBEntry ()
 
IFMapNodeifmap_node () const
 
void SetIFMapNodeState (IFMapDependencyManager::IFMapNodePtr sref)
 
- Public Member Functions inherited from AgentDBEntry
 AgentDBEntry ()
 
virtual ~AgentDBEntry ()
 
void SetRefState () const
 
void ClearRefState () const
 
bool IsActive () const
 
DBStateGetAgentDBEntryState (int listener_id)
 
const DBStateGetAgentDBEntryState (int listener_id) const
 
virtual void AllocateResources (ResourceManager *resource_manager)
 
virtual void FreeResources (ResourceManager *resource_manager)
 
virtual void PostAdd ()
 
- Public Member Functions inherited from DBEntry
 DBEntry ()
 
virtual ~DBEntry ()
 
bool operator< (const DBEntry &rhs) const
 
- Public Member Functions inherited from DBEntryBase
 DBEntryBase ()
 
virtual ~DBEntryBase ()
 
virtual bool IsMoreSpecific (const std::string &match) const
 
virtual bool IsLessSpecific (const std::string &match) const
 
void SetState (DBTableBase *tbl_base, ListenerId listener, DBState *state)
 
void ClearState (DBTableBase *tbl_base, ListenerId listener)
 
DBStateGetState (DBTableBase *tbl_base, ListenerId listener) const
 
const DBStateGetState (const DBTableBase *tbl_base, ListenerId listener) const
 
bool is_state_empty (DBTablePartBase *tpart)
 
bool is_state_empty_unlocked (DBTablePartBase *tpart)
 
void Delete ()
 
void MarkDelete ()
 
void ClearDelete ()
 
bool IsDeleted () const
 
void set_onlist ()
 
void clear_onlist ()
 
bool is_onlist ()
 
void SetOnRemoveQ ()
 
bool IsOnRemoveQ ()
 
void ClearOnRemoveQ ()
 
void set_last_change_at (uint64_t time)
 
void set_last_change_at_to_now ()
 
const uint64_t last_change_at () const
 
const std::string last_change_at_str () const
 
void set_last_update_at (uint64_t time)
 
void set_last_update_at_to_now ()
 
const uint64_t last_update_at () const
 
DBTablePartBaseget_table_partition () const
 
void set_table_partition (DBTablePartBase *tpart)
 
DBTableBaseget_table () const
 
void Notify ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (PhysicalDevice)
 
- Private Member Functions inherited from AgentRefCount< PhysicalDevice >
uint32_t GetRefCount () const
 
 AgentRefCount ()
 
 AgentRefCount (const AgentRefCount &)
 
AgentRefCountoperator= (const AgentRefCount &)
 
virtual ~AgentRefCount ()
 
void swap (AgentRefCount &)
 

Private Attributes

boost::uuids::uuid uuid_
 
std::string fq_name_
 
std::string name_
 
std::string vendor_
 
IpAddress ip_
 
IpAddress management_ip_
 
ManagementProtocol protocol_
 
bool master_
 
- Private Attributes inherited from AgentRefCount< PhysicalDevice >
tbb::mutex back_ref_mutex_
 
std::set< IntrusiveReferrerback_ref_set_
 

Friends

class PhysicalDeviceTable
 

Additional Inherited Members

- Public Attributes inherited from DBEntryBase
boost::intrusive::list_member_hook chg_list_
 

Detailed Description

Definition at line 63 of file physical_device.h.

Member Enumeration Documentation

Enumerator
INVALID 
OVS 

Definition at line 65 of file physical_device.h.

Constructor & Destructor Documentation

PhysicalDevice::PhysicalDevice ( const boost::uuids::uuid id)
inlineexplicit

Definition at line 70 of file physical_device.h.

virtual PhysicalDevice::~PhysicalDevice ( )
inlinevirtual

Definition at line 73 of file physical_device.h.

Member Function Documentation

bool PhysicalDevice::Copy ( PhysicalDeviceTable table,
const PhysicalDeviceData data 
)

Definition at line 73 of file physical_device.cc.

Here is the call graph for this function:

bool PhysicalDevice::DBEntrySandesh ( Sandesh resp,
std::string &  name 
) const
virtual

Implements AgentDBEntry.

Definition at line 280 of file physical_device.cc.

Here is the call graph for this function:

PhysicalDevice::DISALLOW_COPY_AND_ASSIGN ( PhysicalDevice  )
private
const std::string& PhysicalDevice::fq_name ( ) const
inline

Definition at line 85 of file physical_device.h.

DBEntryBase::KeyPtr PhysicalDevice::GetDBRequestKey ( ) const
virtual

Implements DBEntryBase.

Definition at line 63 of file physical_device.cc.

uint32_t PhysicalDevice::GetRefCount ( ) const
inlinevirtual

Implements AgentDBEntry.

Definition at line 79 of file physical_device.h.

Here is the call graph for this function:

const IpAddress& PhysicalDevice::ip ( ) const
inline

Definition at line 88 of file physical_device.h.

bool PhysicalDevice::IsLess ( const DBEntry rhs) const
virtual

Implements DBEntry.

Definition at line 53 of file physical_device.cc.

const IpAddress& PhysicalDevice::management_ip ( ) const
inline

Definition at line 89 of file physical_device.h.

bool PhysicalDevice::master ( ) const
inline

Definition at line 91 of file physical_device.h.

const std::string& PhysicalDevice::name ( ) const
inline

Definition at line 86 of file physical_device.h.

ManagementProtocol PhysicalDevice::protocol ( ) const
inline

Definition at line 90 of file physical_device.h.

void PhysicalDevice::SendObjectLog ( AgentLogEvent::type  event) const

Definition at line 309 of file physical_device.cc.

Here is the call graph for this function:

void PhysicalDevice::set_master ( bool  value)
inline

Definition at line 92 of file physical_device.h.

void PhysicalDevice::SetKey ( const DBRequestKey key)
virtual

Implements DBEntry.

Definition at line 68 of file physical_device.cc.

string PhysicalDevice::ToString ( ) const
virtual

Implements DBEntryBase.

Definition at line 59 of file physical_device.cc.

Here is the call graph for this function:

const boost::uuids::uuid& PhysicalDevice::uuid ( ) const
inline

Definition at line 84 of file physical_device.h.

const std::string& PhysicalDevice::vendor ( ) const
inline

Definition at line 87 of file physical_device.h.

Friends And Related Function Documentation

friend class PhysicalDeviceTable
friend

Definition at line 98 of file physical_device.h.

Member Data Documentation

std::string PhysicalDevice::fq_name_
private

Definition at line 100 of file physical_device.h.

IpAddress PhysicalDevice::ip_
private

Definition at line 103 of file physical_device.h.

IpAddress PhysicalDevice::management_ip_
private

Definition at line 104 of file physical_device.h.

bool PhysicalDevice::master_
private

Definition at line 106 of file physical_device.h.

std::string PhysicalDevice::name_
private

Definition at line 101 of file physical_device.h.

ManagementProtocol PhysicalDevice::protocol_
private

Definition at line 105 of file physical_device.h.

boost::uuids::uuid PhysicalDevice::uuid_
private

Definition at line 99 of file physical_device.h.

std::string PhysicalDevice::vendor_
private

Definition at line 102 of file physical_device.h.


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