OpenSDN source code
|
#include <physical_device.h>
Public Types | |
enum | ManagementProtocol { INVALID, OVS } |
![]() | |
typedef boost::intrusive_ptr < AgentDBEntry > | AgentDBEntyRef |
![]() | |
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 IpAddress & | ip () const |
const IpAddress & | management_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 |
![]() | |
AgentOperDBEntry () | |
virtual | ~AgentOperDBEntry () |
IFMapNode * | ifmap_node () const |
void | SetIFMapNodeState (IFMapDependencyManager::IFMapNodePtr sref) |
![]() | |
AgentDBEntry () | |
virtual | ~AgentDBEntry () |
void | SetRefState () const |
void | ClearRefState () const |
bool | IsActive () const |
DBState * | GetAgentDBEntryState (int listener_id) |
const DBState * | GetAgentDBEntryState (int listener_id) const |
virtual void | AllocateResources (ResourceManager *resource_manager) |
virtual void | FreeResources (ResourceManager *resource_manager) |
virtual void | PostAdd () |
![]() | |
DBEntry () | |
virtual | ~DBEntry () |
bool | operator< (const DBEntry &rhs) const |
![]() | |
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) |
DBState * | GetState (DBTableBase *tbl_base, ListenerId listener) const |
const DBState * | GetState (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 |
DBTablePartBase * | get_table_partition () const |
void | set_table_partition (DBTablePartBase *tpart) |
DBTableBase * | get_table () const |
void | Notify () |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (PhysicalDevice) | |
![]() | |
uint32_t | GetRefCount () const |
AgentRefCount () | |
AgentRefCount (const AgentRefCount &) | |
AgentRefCount & | operator= (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_ |
![]() | |
tbb::mutex | back_ref_mutex_ |
std::set< IntrusiveReferrer > | back_ref_set_ |
Friends | |
class | PhysicalDeviceTable |
Additional Inherited Members | |
![]() | |
boost::intrusive::list_member_hook | chg_list_ |
Definition at line 63 of file physical_device.h.
Enumerator | |
---|---|
INVALID | |
OVS |
Definition at line 65 of file physical_device.h.
|
inlineexplicit |
Definition at line 70 of file physical_device.h.
|
inlinevirtual |
Definition at line 73 of file physical_device.h.
bool PhysicalDevice::Copy | ( | PhysicalDeviceTable * | table, |
const PhysicalDeviceData * | data | ||
) |
|
virtual |
Implements AgentDBEntry.
Definition at line 280 of file physical_device.cc.
|
private |
|
inline |
Definition at line 85 of file physical_device.h.
|
virtual |
Implements DBEntryBase.
Definition at line 63 of file physical_device.cc.
|
inlinevirtual |
Implements AgentDBEntry.
Definition at line 79 of file physical_device.h.
|
inline |
Definition at line 88 of file physical_device.h.
|
virtual |
Implements DBEntry.
Definition at line 53 of file physical_device.cc.
|
inline |
Definition at line 89 of file physical_device.h.
|
inline |
Definition at line 91 of file physical_device.h.
|
inline |
Definition at line 86 of file physical_device.h.
|
inline |
Definition at line 90 of file physical_device.h.
void PhysicalDevice::SendObjectLog | ( | AgentLogEvent::type | event | ) | const |
|
inline |
Definition at line 92 of file physical_device.h.
|
virtual |
Implements DBEntry.
Definition at line 68 of file physical_device.cc.
|
virtual |
Implements DBEntryBase.
Definition at line 59 of file physical_device.cc.
|
inline |
Definition at line 84 of file physical_device.h.
|
inline |
Definition at line 87 of file physical_device.h.
|
friend |
Definition at line 98 of file physical_device.h.
|
private |
Definition at line 100 of file physical_device.h.
|
private |
Definition at line 103 of file physical_device.h.
|
private |
Definition at line 104 of file physical_device.h.
|
private |
Definition at line 106 of file physical_device.h.
|
private |
Definition at line 101 of file physical_device.h.
|
private |
Definition at line 105 of file physical_device.h.
|
private |
Definition at line 99 of file physical_device.h.
|
private |
Definition at line 102 of file physical_device.h.