AgentX++
2.0.5
|
#include <agentx_node.h>
Public Member Functions | |
AgentXNode (AgentXRegEntry *, const AgentXRegion &) | |
Create an AgentX registration. | |
AgentXNode (const AgentXNode &) | |
Copy constructor. | |
virtual | ~AgentXNode () |
Destructor. | |
virtual void | add_registration (AgentXRegEntry *) |
Add a registration for the same region but with different priority. | |
virtual bool | remove_registration (const AgentXRegEntry &) |
Remove a registration for the same region but with different priority. | |
virtual bool | shrink (const Oidx &) |
Shrink the registered region. | |
virtual bool | expand (const Oidx &) |
Expand the registered region. | |
virtual mib_type | type () const |
Return the type of the receiver MIB node. | |
virtual MibEntryPtr | clone () |
Return a clone of the receiver. | |
virtual void | get_request (Request *, int) |
Let the receiver process a SNMP GET subrequest. | |
virtual void | get_next_request (Request *, int) |
Let the receiver process a SNMP GETNEXT subrequest. | |
virtual int | commit_set_request (Request *, int) |
Let the receiver commit a SNMP SET subrequest. | |
virtual int | prepare_set_request (Request *, int &) |
Let the receiver prepare a SNMP SET subrequest. | |
virtual int | undo_set_request (Request *, int &) |
Let the receiver undo a SNMP SET subrequest. | |
virtual void | cleanup_set_request (Request *, int &) |
Set the receiver's value and backup its old value for a later undo. | |
virtual bool | is_empty () |
Check whether the reciever node contains any instance of a managed object. | |
virtual OidxPtr | max_key () |
Return the maximum object identifier the receiver is responsible for. | |
virtual Oidx | find_succ (const Oidx &, Request *req=0) |
Return the successor of a given object identifier within the receiver's scope and the context of a given Request. | |
u_int | registration_count () |
Get the number of registrations for this region. | |
AgentXRegEntry * | active_registration () |
Get active registration. | |
AgentXRegion | get_region () |
Get the region registered by this node. | |
Static Public Member Functions | |
static bool | is_agentx (const MibEntry &) |
Check whether a MibEntry is a AgentX entry or not. | |
Protected Member Functions | |
void | set_region (const AgentXRegion &) |
Set the region of the receiver. | |
virtual void | get_request (Request *, int, u_char) |
Let the receiver process a SNMP GET subrequest. | |
virtual void | set_request (Request *, int, u_char) |
Let the receiver process a SNMP GET subrequest. | |
void | set_back_reference (MasterAgentXMib *) |
Set back reference to MasterAgentXMib holding the receiver. | |
Protected Attributes | |
OrderedList< AgentXRegEntry > | origReg |
AgentXRegion | region |
bool | singleInstance |
MasterAgentXMib * | backReference |
Friends | |
class | MasterAgentXMib |
AgentXNode::AgentXNode | ( | AgentXRegEntry * | , |
const AgentXRegion & | |||
) |
Create an AgentX registration.
regEntry | the first registration entry associated with this region (includes the session that registrates the region) |
region | the region to registrate - can differ from the original region registration contained in regEntry (region splitting) |
AgentXNode::AgentXNode | ( | const AgentXNode & | ) |
Copy constructor.
other | another AgentXNode instane. |
|
virtual |
Destructor.
|
inline |
Get active registration.
|
virtual |
Add a registration for the same region but with different priority.
regEntry | a registration entry that also registrates exactly the receiver region |
|
virtual |
Set the receiver's value and backup its old value for a later undo.
vb | - The variable binding that holds the new value. |
|
virtual |
Return a clone of the receiver.
|
virtual |
Let the receiver commit a SNMP SET subrequest.
req | - A pointer to the whole SNMP SET request. |
ind | - The index of the subrequest to be processed. |
|
virtual |
Expand the registered region.
newUpperBound | an object identifier that denotes the new upper bound of the region |
|
virtual |
Return the successor of a given object identifier within the receiver's scope and the context of a given Request.
oid | an object identifier |
request | a pointer to a Request instance. |
|
virtual |
Let the receiver process a SNMP GETNEXT subrequest.
req | - A pointer to the whole SNMP GETNEXT request. |
ind | - The index of the subrequest to be processed. |
|
inline |
Get the region registered by this node.
|
virtual |
Let the receiver process a SNMP GET subrequest.
req | - A pointer to the whole SNMP GET request. |
ind | - The index of the subrequest to be processed. |
|
protectedvirtual |
Let the receiver process a SNMP GET subrequest.
req | - A pointer to the whole SNMP GET request. |
ind | - The index of the subrequest to be processed. |
getType | specifies if a GET, GETNEXT, or GETBULK request is processed. |
|
static |
|
inlinevirtual |
Check whether the reciever node contains any instance of a managed object.
|
virtual |
Return the maximum object identifier the receiver is responsible for.
|
virtual |
Let the receiver prepare a SNMP SET subrequest.
req | - A pointer to the whole SNMP SET request. |
ind | - The index of the subrequest to be processed. |
|
inline |
Get the number of registrations for this region.
|
virtual |
Remove a registration for the same region but with different priority.
regEntry | a registration entry |
|
protected |
Set back reference to MasterAgentXMib holding the receiver.
backReference | a pointer to a MasterAgentXMib instance. |
|
protected |
Set the region of the receiver.
Do not call this when the node has been registered within a MIB.
region | the new region |
|
protectedvirtual |
Let the receiver process a SNMP GET subrequest.
req | - A pointer to the whole SNMP GET request. |
ind | - The index of the subrequest to be processed. |
getType | specifies if a TESTSET, COMMITSET, UNDOSET, or CLEANUPSET request is processed. |
|
virtual |
Shrink the registered region.
newUpperBound | an object identifier that denotes the new upper bound of the region |
|
virtual |
Return the type of the receiver MIB node.
|
virtual |
Let the receiver undo a SNMP SET subrequest.
req | - A pointer to the whole SNMP SET request. |
ind | - The index of the subrequest to be processed. |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |