public class SnmpTrapSenderImpl extends java.lang.Object implements SnmpTrapSenderIfc, java.io.Serializable
MIB_CLEAR, MIB_CRITICAL, MIB_MAJOR, MIB_MINOR, MIB_WARNING| Modifier and Type | Method and Description |
|---|---|
void |
AddClientStation(com.nt.udc.admin.TrapHost m)
Add a station that is to recive traps
|
void |
AddClientStationList(com.nt.udc.admin.TrapHostList v) |
void |
DeleteAllClientStations()
remove all trap clients
|
void |
DeleteClientStation(com.nt.udc.admin.TrapHost m)
delete a station that is to recive traps
|
void |
dispose()
I found I needed this method to clean-up between test cases in JUnit.
|
protected void |
finalize() |
static SnmpTrapSenderImpl |
get_instance(LoggerIfc logger)
As logical as this was - the singleton did not work ...
|
java.lang.String |
getConfigDir() |
com.nt.udc.admin.TrapHostList |
getStationList()
Returns a vector of MgtStation objects which represents all trap Clients
|
boolean |
isInitialized()
Use this method to see if this snmp interface has been fully initialized.
|
boolean |
isTrapListAvailable()
Is the host table loaded
|
void |
SendTrap(int trapSeverity,
java.lang.String category,
java.lang.String alarmText,
java.lang.String additionalText,
java.lang.String componentName,
java.lang.String componentType,
int alarmId,
java.lang.String alarmTime)
If all the fault information is modeled in the logger, we still have to
communicate the information with the outside world via the SNMP
interface.
|
void |
setConfigDir(java.lang.String absPath) |
void |
setHomeDir(java.lang.String home) |
public static SnmpTrapSenderImpl get_instance(LoggerIfc logger)
protected void finalize()
finalize in class java.lang.Objectpublic void SendTrap(int trapSeverity,
java.lang.String category,
java.lang.String alarmText,
java.lang.String additionalText,
java.lang.String componentName,
java.lang.String componentType,
int alarmId,
java.lang.String alarmTime)
throws TrapException
SendTrap in interface SnmpTrapSenderIfcTrapExceptionpublic void AddClientStation(com.nt.udc.admin.TrapHost m)
throws TrapException
AddClientStation in interface SnmpTrapSenderIfcTrapExceptionpublic void AddClientStationList(com.nt.udc.admin.TrapHostList v)
throws TrapException
AddClientStationList in interface SnmpTrapSenderIfcTrapExceptionpublic void DeleteClientStation(com.nt.udc.admin.TrapHost m)
throws TrapException
DeleteClientStation in interface SnmpTrapSenderIfcTrapExceptionpublic void DeleteAllClientStations()
throws TrapException
DeleteAllClientStations in interface SnmpTrapSenderIfcTrapExceptionpublic com.nt.udc.admin.TrapHostList getStationList()
throws TrapException
getStationList in interface SnmpTrapSenderIfcTrapExceptionpublic boolean isTrapListAvailable()
throws TrapException
SnmpTrapSenderIfcisTrapListAvailable in interface SnmpTrapSenderIfcTrapExceptionpublic java.lang.String getConfigDir()
throws TrapException
getConfigDir in interface SnmpTrapSenderIfcTrapExceptionpublic void setConfigDir(java.lang.String absPath)
throws TrapException
setConfigDir in interface SnmpTrapSenderIfcTrapExceptionpublic void setHomeDir(java.lang.String home)
throws TrapException
setHomeDir in interface SnmpTrapSenderIfcTrapExceptionpublic boolean isInitialized()
isInitialized in interface SnmpTrapSenderIfcpublic void dispose()