|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.snmpadaptor4j.core.trap.SnmpManagers
public class SnmpManagers
Object representing all SNMP managers on the network to which SNMP traps should be sent.
Field Summary | |
---|---|
protected long |
closingTime
Closing time of connections to all SNMP managers (in milliseconds). |
protected org.apache.log4j.Logger |
logger
Logger. |
protected List<SnmpTrapSender> |
senderList
List of SNMP trap sender. |
protected Timer |
timer
Timer used to close connections to all SNMP managers. |
Constructor Summary | |
---|---|
|
SnmpManagers(SnmpApiFactory senderFactory)
Constructor. |
protected |
SnmpManagers(SnmpApiFactory senderFactory,
long connectionDuration)
Constructor (only for tests). |
Method Summary | |
---|---|
void |
initialize(List<SnmpManagerConfiguration> managerList)
Initializes the configuration for SNMP traps sending to SNMP managers. |
void |
send(SnmpTrap trap)
Sends a SNMP trap to all managers. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Logger logger
protected final List<SnmpTrapSender> senderList
protected Timer timer
protected long closingTime
Constructor Detail |
---|
public SnmpManagers(SnmpApiFactory senderFactory)
senderFactory
- Factory used for instantiate senders of SNMP traps to SNMP managers (must not be NULL
).protected SnmpManagers(SnmpApiFactory senderFactory, long connectionDuration)
senderFactory
- Factory used for instantiate senders of SNMP traps to SNMP managers (must not be NULL
).connectionDuration
- Connection duration after each sending of SNMP traps (in milliseconds).Method Detail |
---|
public final void initialize(List<SnmpManagerConfiguration> managerList) throws Exception
managerList
- Connection parameters to all SNMP managers (must not be NULL
).
Exception
- Exception if an error has occurred.public void send(SnmpTrap trap)
trap
- Object representing a specific or generic SNMP trap (must not be NULL
).public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |