|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.mibs.NotificationType
This class contains the information about the NOTIFICATION-TYPE macro in a MIB module. The NOTIFICATION-TYPE macro is used in an SMIv2 MIB to specify the notifications that can be sent to the SNMP managers.
The NOTIFICATION-TYPE macro will look as follows
<lowerCaseName> NOTIFICATION-TYPE [OBJECTS { <Objects> }] STATUS <StatusV2> DESCRIPTION <Text> [REFERENCE <Text>]where
The NotificationType object can be obtained using any one of the following methods after loading the MIB file containing the NOTIFICATION-TYPE macro.
MibOperations mibOps = new MibOperations(); mibOps.loadMibModule("mibFile");Method 1 MibModule module = mibOps.getMibModule("moduleName"); Enumeration en = module.getDefinedNotificationTypes(); while(en.hasMoreElements()) { NotificationType nt = (NotificationType)en.nextElement(); }
Method 2 MibModule module = mibOps.getMibModule("moduleName"); NotificationType nt = module.getNotificationType("notificationName");
Method Summary | |
java.lang.String |
getDescription()
Gets the DESCRIPTION string for this NotificationType object. |
java.lang.String |
getName()
Gets the name of this NotificationType object. |
java.lang.String |
getNumberedOIDString()
Gets the numbered oid String of this NotificationType. |
java.util.Vector |
getObjects()
Gets the OBJECT clause names in this NOTIFICATION-TYPE macro. |
java.lang.String |
getOIDString()
Gets the named oid String of this NotificationType. |
java.lang.String |
getReference()
Gets the REFERENCE string for this NotificationType object. |
java.lang.String |
getStatus()
Gets the STATUS value of this NotificationType object. |
java.lang.String |
toString()
Gives the name of this NotificationType 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 getObjects()
public java.lang.String getStatus()
The status of the objects defined in the OBJECTS clause must conform with the status of the event definition.
i.e. if the status value of the event definition is "current", then all the objects in the OBJECTS clause should have a status value of "current". If the status value of the event definition is "deprecated", then the objects can have a status value of "deprecated" or "current". If the status value of event definition is "obsolete", then the objects can have a status value of "current", "deprecated" or "obsolete".
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 |