RDK Documentation (Open Sourced RDK Components)
hostIf_snmpAdapter Class Reference

This class provides the interface for getting device information. More...

#include <snmpAdapter.h>

Collaboration diagram for hostIf_snmpAdapter:
Collaboration graph

Public Member Functions

GHashTable * getNotifyHash ()
 
int get_ValueFromSNMPAdapter (HOSTIF_MsgData_t *)
 This function fetch the SNMP OID for the corresponding TR181 param, and run the snmpget command with the OID. The result will be return back as string. More...
 
int set_ValueToSNMPAdapter (HOSTIF_MsgData_t *)
 This function fetch the SNMP OID for the corresponding TR181 param, and run the snmpset command with the OID. More...
 

Static Public Member Functions

static void init (void)
 This function opens the RF_DocsIf_tr181_snmp map file, parse the TR181 parameter and its correspoinding OID, fill it in map container. More...
 
static void unInit (void)
 This function clear the TR181 OID map container. More...
 
static hostIf_snmpAdaptergetInstance (int dev_id)
 
static void closeInstance (hostIf_snmpAdapter *)
 
static GList * getAllInstances ()
 
static void closeAllInstances ()
 
static void getLock ()
 
static void releaseLock ()
 

Private Member Functions

 hostIf_snmpAdapter (int dev_id)
 Class Constructor of the class hostIf_snmpAdapter. More...
 
 ~hostIf_snmpAdapter ()
 Class Destructor of the class hostIf_snmpAdapter. More...
 

Private Attributes

int dev_id
 

Static Private Attributes

static GHashTable * ifHash = NULL
 
static GMutex * m_mutex = NULL
 
static GHashTable * m_notifyHash = NULL
 
static map< string, vector< pair< string, string > > > tr181Map
 

yes

This class provides the interface for getting device information.

Definition at line 94 of file snmpAdapter.h.


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