|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.mibs.NotificationGroup
This class represents a NOTIFICATION-GROUP macro in a module.
The NOTIFICATION-GROUP macro will look as follows
<lowerCaseName> NOTIFICATION-GROUP NOTIFICATIONS { <Notifications> } STATUS <StatusV2> DESCRIPTION <Text> [REFERENCE <Text>]
where,
The NOTIFICATION-GROUP object can be obtained using any one of the following methods after loading the MIB module that contains the NOTIFICATION-GROUP macro.
MibOperations mibOps = new MibOperations(); mibOps.loadMibModule("mibFile");
Method 1 MibModule module = mibOps.getMibModule("moduleName"); Enumeration en = module.getDefinedNotificationGroups(); while(en.hasMoreElements()) { NotificationGroup ng = (NotificationGroup)en.nextElement(); }Method 2 MibModule module = mibOps.getMibModule("moduleName"); NotificationGroup ng = module.getNotificationGroup("notificationGroupName");
Method Summary | |
java.lang.String |
getDescription()
Gets the description for this NotififcationGroup object. |
java.lang.String |
getName()
Gets the name of this NotificationGroup object. |
java.util.Vector |
getNotifications()
Gets the notifications defined in this NOTIFICATION-GROUP macro. |
java.lang.String |
getNumberedOIDString()
Gets the numbered oid String of this NotificationGroup. |
java.lang.String |
getOIDString()
Gets the named oid String of this NotificationGroup. |
java.lang.String |
getReference()
Gets the REFERENCE string for this NotificationGroup object. |
java.lang.String |
getStatus()
Gets the status value for this NotificationGroup object. |
java.lang.String |
toString()
Returns the name of this NotificationGroup object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getName()
toString()
public java.util.Vector getNotifications()
The method return the value of NOTIFICATIONS clause as a Vector.
public java.lang.String getStatus()
public java.lang.String getDescription()
public java.lang.String getReference()
public java.lang.String toString()
toString
in class java.lang.Object
getName()
public java.lang.String getOIDString()
public java.lang.String getNumberedOIDString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |