public class TrapListener extends Object implements TrapNotificationListener
Constructor and Description |
---|
TrapListener(TrapdConfig config) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
hasConfigurationChanged(TrapdConfig newConfig) |
boolean |
hasSnmpV3UsersChanged(TrapdConfig newConfig) |
void |
setDistPollerDao(DistPollerDao distPollerDao) |
void |
setMessageDispatcherFactory(MessageDispatcherFactory messageDispatcherFactory) |
void |
setSnmpV3Users(TrapdConfiguration newTrapdConfig) |
void |
setTrapdConfig(TrapdConfiguration newTrapdConfig) |
void |
start() |
void |
stop() |
void |
trapError(int error,
String msg) |
void |
trapReceived(TrapInformation trapInformation) |
public TrapListener(TrapdConfig config) throws SocketException
SocketException
public void trapReceived(TrapInformation trapInformation)
trapReceived
in interface TrapNotificationListener
public void trapError(int error, String msg)
trapError
in interface TrapNotificationListener
public void start()
public void stop()
public void setTrapdConfig(TrapdConfiguration newTrapdConfig)
public void setSnmpV3Users(TrapdConfiguration newTrapdConfig)
public void setMessageDispatcherFactory(MessageDispatcherFactory messageDispatcherFactory)
public void setDistPollerDao(DistPollerDao distPollerDao)
protected boolean hasConfigurationChanged(TrapdConfig newConfig)
public boolean hasSnmpV3UsersChanged(TrapdConfig newConfig)
Copyright © 2017. All rights reserved.