Package com.nt.udc.util.snmp
Class DummySNMPTrapSender
java.lang.Object
com.nt.udc.util.snmp.DummySNMPTrapSender
- All Implemented Interfaces:
SnmpTrapSenderIfc
-
Field Summary
Fields inherited from interface com.nt.udc.util.SnmpTrapSenderIfc
MIB_CLEAR, MIB_CRITICAL, MIB_MAJOR, MIB_MINOR, MIB_WARNING -
Constructor Summary
Constructors -
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)
-
Constructor Details
-
DummySNMPTrapSender
public DummySNMPTrapSender()
-
-
Method Details
-
SendTrap
public void SendTrap(int trapSeverity, String category, String alarmText, String additionalText, String componentName, String componentType, int alarmId, String alarmTime) throws TrapException Description copied from interface:SnmpTrapSenderIfcThis version of SendTrap allows the user (the Logger) to specify all of the trap parameters.- Specified by:
SendTrapin interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
AddClientStation
- Specified by:
AddClientStationin interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
AddClientStationList
- Specified by:
AddClientStationListin interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
DeleteClientStation
Description copied from interface:SnmpTrapSenderIfcdelete a station that is to recive traps- Specified by:
DeleteClientStationin interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
DeleteAllClientStations
Description copied from interface:SnmpTrapSenderIfcremove all trap clients- Specified by:
DeleteAllClientStationsin interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
getStationList
Description copied from interface:SnmpTrapSenderIfcReturns a vector of TrapHost objects which represents all trap Clients- Specified by:
getStationListin interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
isTrapListAvailable
Description copied from interface:SnmpTrapSenderIfcIs the host table loaded- Specified by:
isTrapListAvailablein interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
getConfigDir
- Specified by:
getConfigDirin interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
setConfigDir
- Specified by:
setConfigDirin interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
setHomeDir
- Specified by:
setHomeDirin interfaceSnmpTrapSenderIfc- Throws:
TrapException
-
isInitialized
public boolean isInitialized()Description copied from interface:SnmpTrapSenderIfcThe snmp interface can only be usable if the mibs are loaded- Specified by:
isInitializedin interfaceSnmpTrapSenderIfc
-