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


Classes | |
| struct | Properties |
Public Types | |
| enum | ServiceType { Other = 1 , SourceNAT , LoadBalancer } |
| enum | VirtualizationType { VirtualMachine = 1 , NetworkNamespace , VRouterInstance } |
| enum | VRouterInstanceType { KVM = 1 , Docker } |
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 | |
| ServiceInstance () | |
| virtual bool | IsLess (const DBEntry &rhs) const |
| virtual std::string | ToString () const |
| virtual void | SetKey (const DBRequestKey *key) |
| virtual KeyPtr | GetDBRequestKey () const |
| bool | DBEntrySandesh (Sandesh *sresp, std::string &name) const |
| virtual uint32_t | GetRefCount () const |
| void | set_properties (const Properties &properties) |
| const Properties & | properties () const |
| const boost::uuids::uuid & | uuid () const |
| bool | IsUsable () const |
| void | SetIFMapNodeState (IFMapDependencyManager::IFMapNodePtr ref) |
| IFMapNode * | ifmap_node () |
Public Member Functions inherited from AgentRefCount< ServiceInstance > | |
| uint32_t | GetRefCount () const |
Public Member Functions inherited from AgentDBEntry | |
| 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 () |
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) |
| 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 (ServiceInstance) | |
Private Attributes | |
| boost::uuids::uuid | uuid_ |
| Properties | properties_ |
| IFMapDependencyManager::IFMapNodePtr | ifmap_node_state_ref_ |
Additional Inherited Members | |
Public Attributes inherited from DBEntryBase | |
| boost::intrusive::list_member_hook | chg_list_ |
Protected Member Functions inherited from AgentRefCount< ServiceInstance > | |
| AgentRefCount () | |
| AgentRefCount (const AgentRefCount &) | |
| AgentRefCount & | operator= (const AgentRefCount &) |
| virtual | ~AgentRefCount () |
| void | swap (AgentRefCount &) |
Protected Attributes inherited from AgentRefCount< ServiceInstance > | |
| tbb::mutex | back_ref_mutex_ |
| std::set< IntrusiveReferrer > | back_ref_set_ |
Definition at line 32 of file service_instance.h.
| Enumerator | |
|---|---|
| Other | |
| SourceNAT | |
| LoadBalancer | |
Definition at line 35 of file service_instance.h.
| Enumerator | |
|---|---|
| VirtualMachine | |
| NetworkNamespace | |
| VRouterInstance | |
Definition at line 40 of file service_instance.h.
| Enumerator | |
|---|---|
| KVM | |
| Docker | |
Definition at line 45 of file service_instance.h.
| ServiceInstance::ServiceInstance | ( | ) |
|
virtual |
Implements AgentDBEntry.
Definition at line 675 of file service_instance.cc.

|
private |
|
virtual |
Implements DBEntryBase.
Definition at line 670 of file service_instance.cc.
|
inlinevirtual |
Implements AgentDBEntry.
Definition at line 108 of file service_instance.h.

|
inline |
|
virtual |
Implements DBEntry.
Definition at line 655 of file service_instance.cc.
| bool ServiceInstance::IsUsable | ( | ) | const |
|
inline |
Definition at line 116 of file service_instance.h.
|
inline |
|
inline |
Definition at line 122 of file service_instance.h.
|
virtual |
Implements DBEntry.
Definition at line 664 of file service_instance.cc.

|
virtual |
Implements DBEntryBase.
Definition at line 660 of file service_instance.cc.

|
inline |
Definition at line 118 of file service_instance.h.
|
private |
Definition at line 135 of file service_instance.h.
|
private |
Definition at line 134 of file service_instance.h.
|
private |
Definition at line 133 of file service_instance.h.