|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.snmp.mibs.AgentCapabilities
This class represents a AGENT-CAPABILITIES macro in a module.
The AGENT-CAPABILITIES macro is used to specify the implementation characterstics of the agent sub-system.
The AGENT-CAPABILITIES construct consists of a header that is followed by a list of implementation specifications
The header consists of the PRODUCT-RELEASE, STATUS, DESCRIPTION and the REFERENCE clause. The implementation specification includes the SUPPORTS, INCLUDES clauses and list of variations.
The Agent Capabilties Variation includes the SYNTAX, WRITE SYNTAX, ACCESS, CREATION-REQUIRES, DEFVAL and DESCRIPTION clause.
The AGENT-CAPABILTIES macro definition is as follows lowerCaseName AGENT-CAPABILITIES PRODUCT-RELEASE <Text> STATUS <StatusV2> DESCRIPTION <Text> [REFERENCE <Text>] [<Module>]* ::= <oidValue>Where
The AgentCapabilities instance can be obtained using any one of the following methods, after loading the MIB containing the AGENT-CAPABILITIES macro.
MibOperations mibOps = new MibOperations();
try
{
mibOps.loadMibModules("mibFile");
}
catch(Exception ex)
{
System.out.println(ex);
}
Method 1
MibModule mod = mibops.getMibModule("moduleName");
AgentCapabilities ac = mod.getAgentCapabilities("AgentCapabilitiesName");
Method 2
MibModule mod = mibops.getMibModule("moduleName");
Enumeration en = mod.getDefinedAgentCapabilities();
while(en.hasMoreElements())
{
AgentCapabilities ac = (AgentCapabilities)en.nextElement();
}
| Field Summary | |
(package private) java.util.Vector |
agentCap
|
(package private) java.lang.String |
description
|
(package private) java.lang.String |
name
|
(package private) java.lang.String |
productrelease
|
(package private) java.lang.String |
reference
|
(package private) java.lang.String |
status
|
| Constructor Summary | |
(package private) |
AgentCapabilities()
|
| Method Summary | |
java.util.Vector |
getACModules()
Gets the acModules defined in this AgentCapabilties macro. |
java.lang.String |
getDescription()
Gets the DESCRIPTION value for this AgentCapabilities macro. |
java.lang.String |
getName()
Gets the name of this AgentCapabilities definition. |
java.lang.String |
getProductRelease()
Gets the PRODUCT-RELEASE of this AgentCapabilities macro. |
java.lang.String |
getReference()
Gets the REFERENCE value for this AgentCapabilities macro. |
java.lang.String |
getStatus()
Gets the STATUS value for this AgentCapabilities macro. |
java.lang.String |
toString()
Gives the name of this ObjectGroup object. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.lang.String name
java.lang.String status
java.lang.String description
java.lang.String reference
java.lang.String productrelease
java.util.Vector agentCap
| Constructor Detail |
AgentCapabilities()
| Method Detail |
public java.lang.String getName()
toString()public java.lang.String getProductRelease()
The purpose of the PRODUCT-RELEASE clause is to describe the product release which includes the implemented capabilities.
public java.util.Vector getACModules()
public java.lang.String getStatus()
public java.lang.String getDescription()
public java.lang.String getReference()
public java.lang.String toString()
getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||