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 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)
-
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:SnmpTrapSenderIfc
This version of SendTrap allows the user (the Logger) to specify all of the trap parameters.- Specified by:
SendTrap
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
AddClientStation
- Specified by:
AddClientStation
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
AddClientStationList
- Specified by:
AddClientStationList
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
DeleteClientStation
Description copied from interface:SnmpTrapSenderIfc
delete a station that is to recive traps- Specified by:
DeleteClientStation
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
DeleteAllClientStations
Description copied from interface:SnmpTrapSenderIfc
remove all trap clients- Specified by:
DeleteAllClientStations
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
getStationList
Description copied from interface:SnmpTrapSenderIfc
Returns a vector of TrapHost objects which represents all trap Clients- Specified by:
getStationList
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
isTrapListAvailable
Description copied from interface:SnmpTrapSenderIfc
Is the host table loaded- Specified by:
isTrapListAvailable
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
getConfigDir
- Specified by:
getConfigDir
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
setConfigDir
- Specified by:
setConfigDir
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
setHomeDir
- Specified by:
setHomeDir
in interfaceSnmpTrapSenderIfc
- Throws:
TrapException
-
isInitialized
public boolean isInitialized()Description copied from interface:SnmpTrapSenderIfc
The snmp interface can only be usable if the mibs are loaded- Specified by:
isInitialized
in interfaceSnmpTrapSenderIfc
-