Package com.nt.udc.util
Interface SnmpTrapSenderIfc
- All Known Implementing Classes:
DummySNMPTrapSender
,SnmpTrapSenderImpl
public interface SnmpTrapSenderIfc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
These enumerated values must match the values defined in the UDC-R330-MIB module.static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddClientStation
(com.nt.udc.admin.TrapHost m) void
AddClientStationList
(com.nt.udc.admin.TrapHostList v) void
remove all trap clientsvoid
DeleteClientStation
(com.nt.udc.admin.TrapHost m) delete a station that is to recive trapscom.nt.udc.admin.TrapHostList
Returns a vector of TrapHost objects which represents all trap Clientsboolean
The snmp interface can only be usable if the mibs are loadedboolean
Is the host table loadedvoid
SendTrap
(int trapSeverity, String category, String alarmText, String additionalText, String componentName, String componentType, int alarmId, String alarmTime) This version of SendTrap allows the user (the Logger) to specify all of the trap parameters.void
setConfigDir
(String absPath) void
setHomeDir
(String home)
-
Field Details
-
MIB_CRITICAL
static final int MIB_CRITICALThese enumerated values must match the values defined in the UDC-R330-MIB module.- See Also:
-
MIB_MAJOR
static final int MIB_MAJOR- See Also:
-
MIB_MINOR
static final int MIB_MINOR- See Also:
-
MIB_WARNING
static final int MIB_WARNING- See Also:
-
MIB_CLEAR
static final int MIB_CLEAR- See Also:
-
-
Method Details
-
SendTrap
void SendTrap(int trapSeverity, String category, String alarmText, String additionalText, String componentName, String componentType, int alarmId, String alarmTime) throws TrapException This version of SendTrap allows the user (the Logger) to specify all of the trap parameters.- Throws:
TrapException
-
AddClientStation
- Throws:
TrapException
-
AddClientStationList
- Throws:
TrapException
-
DeleteClientStation
delete a station that is to recive traps- Throws:
TrapException
-
DeleteAllClientStations
remove all trap clients- Throws:
TrapException
-
getStationList
Returns a vector of TrapHost objects which represents all trap Clients- Throws:
TrapException
-
isTrapListAvailable
Is the host table loaded- Throws:
TrapException
-
getConfigDir
- Throws:
TrapException
-
setConfigDir
- Throws:
TrapException
-
setHomeDir
- Throws:
TrapException
-
isInitialized
boolean isInitialized()The snmp interface can only be usable if the mibs are loaded
-