|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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); }
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |