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.Object
public 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 SnmpTrapSenderIfc
TrapException
public void AddClientStation(com.nt.udc.admin.TrapHost m) throws TrapException
AddClientStation
in interface SnmpTrapSenderIfc
TrapException
public void AddClientStationList(com.nt.udc.admin.TrapHostList v) throws TrapException
AddClientStationList
in interface SnmpTrapSenderIfc
TrapException
public void DeleteClientStation(com.nt.udc.admin.TrapHost m) throws TrapException
DeleteClientStation
in interface SnmpTrapSenderIfc
TrapException
public void DeleteAllClientStations() throws TrapException
DeleteAllClientStations
in interface SnmpTrapSenderIfc
TrapException
public com.nt.udc.admin.TrapHostList getStationList() throws TrapException
getStationList
in interface SnmpTrapSenderIfc
TrapException
public boolean isTrapListAvailable() throws TrapException
SnmpTrapSenderIfc
isTrapListAvailable
in interface SnmpTrapSenderIfc
TrapException
public java.lang.String getConfigDir() throws TrapException
getConfigDir
in interface SnmpTrapSenderIfc
TrapException
public void setConfigDir(java.lang.String absPath) throws TrapException
setConfigDir
in interface SnmpTrapSenderIfc
TrapException
public void setHomeDir(java.lang.String home) throws TrapException
setHomeDir
in interface SnmpTrapSenderIfc
TrapException
public boolean isInitialized()
isInitialized
in interface SnmpTrapSenderIfc
public void dispose()