|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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");
| Field Summary | |
(package private) java.lang.String |
description
|
(package private) java.lang.String |
name
|
(package private) java.util.Vector |
notifications
|
(package private) java.lang.String |
numOid
|
(package private) java.lang.String |
OIDString
|
(package private) java.lang.String |
reference
|
(package private) java.lang.String |
status
|
| Constructor Summary | |
(package private) |
NotificationGroup()
|
| 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 |
|
| Field Detail |
java.lang.String name
java.lang.String status
java.lang.String description
java.lang.String reference
java.lang.String OIDString
java.lang.String numOid
java.util.Vector notifications
| Constructor Detail |
NotificationGroup()
| 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()
getName()public java.lang.String getOIDString()
public java.lang.String getNumberedOIDString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||