Package com.nt.udc.util
Interface SnmpTrapSenderIfc
- All Known Implementing Classes:
DummySNMPTrapSender,SnmpTrapSenderImpl
public interface SnmpTrapSenderIfc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intThese enumerated values must match the values defined in the UDC-R330-MIB module.static final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidAddClientStation(com.nt.udc.admin.TrapHost m) voidAddClientStationList(com.nt.udc.admin.TrapHostList v) voidremove all trap clientsvoidDeleteClientStation(com.nt.udc.admin.TrapHost m) delete a station that is to recive trapscom.nt.udc.admin.TrapHostListReturns a vector of TrapHost objects which represents all trap ClientsbooleanThe snmp interface can only be usable if the mibs are loadedbooleanIs the host table loadedvoidSendTrap(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.voidsetConfigDir(String absPath) voidsetHomeDir(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
-