|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.snmp.mibs.AgentCapabilitiesModule
This class represents the implementation specification in an AGENT-CAPABILITIES macro. This class contains information about the SUPPORTS and INCLUDES clause in the AGENT-CAPABILITIES macro. In addition to that, this class contains the reference of the AcVariation object which corresponds to the Event variation or Object Variation. An AgentCapabilties Module contains the following definition
SUPPORTS <moduleIdentifier>
INCLUDES { <groups> }
[<variations>]*
where
The AgentCapabiltiesModule instance can be obtained using any one of 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");
Vector acVect = ac.getACModules();
AgentCapabilitiesModule acm = (AgentCapabilitiesModule)acVect.elementAt(0);
Method 2
MibModule mod = mibops.getMibModule("moduleName");
Enumeration en = mod.getDefinedAgentCapabilities();
while(en.hasMoreElements())
{
AgentCapabilities ac = (AgentCapabilities)en.nextElement();
Vector acVect = ac.getACModules();
AgentCapabilitiesModule acm = (AgentCapabilitiesModule)acVect.elementAt(0);
}
| Field Summary | |
(package private) java.util.Vector |
acAccess
|
(package private) java.util.Vector |
acDefval
|
(package private) java.util.Vector |
acSyntax
|
(package private) java.util.Vector |
acVariation
|
(package private) java.util.Vector |
acWriteSyntax
|
(package private) java.util.Vector |
creationRequires
|
(package private) java.util.Vector |
groups
|
(package private) java.lang.String |
supports
|
(package private) java.util.Vector |
variation
|
(package private) java.util.Vector |
variationDescription
|
| Constructor Summary | |
(package private) |
AgentCapabilitiesModule()
|
| Method Summary | |
java.util.Vector |
getAccess()
Deprecated. Since 3.0. Instead you can use getAccess() in ACVariation class. |
java.util.Vector |
getACVariations()
Gets the variations implemented by the AGENT-CAPABILITIES module. |
java.util.Vector |
getCreationRequires()
Deprecated. Since 3.0. Instead you can use getCreationObjects() in ACVariation class. |
java.util.Vector |
getDefval()
Deprecated. Since 3.0. Instead you can use getDefVal() in ACVariation class. |
java.lang.String |
getIncludes()
Gets the groups supported by this AgentCapabilties Module. |
java.lang.String |
getSupports()
Gets the name of the module that is being supported. |
java.util.Vector |
getSyntax()
Deprecated. Since 3.0. Instead you can use getSyntax() in ACVariation class |
java.util.Vector |
getVariation()
Deprecated. Since 3.0 |
java.util.Vector |
getVariationDescription()
Deprecated. Since 3.0. Instead you can use getDescription() in ACVariation class. |
java.util.Vector |
getWriteSyntax()
Deprecated. Since 3.0. Instead you can use getWriteSyntax() in ACVariation class. |
(package private) void |
readElements(ACModule synoid,
MibNode node,
MibModule module)
|
(package private) void |
readElements(java.io.DataInputStream inp,
MibNode node,
MibModule module)
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.lang.String supports
java.util.Vector groups
java.util.Vector variation
java.util.Vector acVariation
java.util.Vector acSyntax
java.util.Vector acWriteSyntax
java.util.Vector acAccess
java.util.Vector creationRequires
java.util.Vector acDefval
java.util.Vector variationDescription
| Constructor Detail |
AgentCapabilitiesModule()
| Method Detail |
public java.lang.String getIncludes()
public java.util.Vector getVariation()
public java.util.Vector getACVariations()
public java.lang.String getSupports()
public java.util.Vector getSyntax()
public java.util.Vector getWriteSyntax()
public java.util.Vector getAccess()
public java.util.Vector getCreationRequires()
public java.util.Vector getDefval()
public java.util.Vector getVariationDescription()
void readElements(java.io.DataInputStream inp,
MibNode node,
MibModule module)
throws java.io.IOException
void readElements(ACModule synoid,
MibNode node,
MibModule module)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||