Package org.opennms.netmgt.collection
Class EventMetricsCollector
- java.lang.Object
-
- org.opennms.netmgt.collection.EventMetricsCollector
-
- All Implemented Interfaces:
EventListener
public class EventMetricsCollector extends Object implements EventListener
This collector will convert event into time series data. It depends on eventconf.xsd's collection tag.
-
-
Field Summary
Fields Modifier and Type Field Description static String
INTERFACE_SNMP
static int
NAME_MAX_LENGTH
static String
NODE_SNMP
-
Constructor Summary
Constructors Constructor Description EventMetricsCollector(EventConfDao eventConfDao, EventSubscriptionService eventSubscriptionService, PersisterFactory persisterFactory, IpInterfaceDao ipInterfaceDao, SnmpInterfaceDao snmpInterfaceDao, CollectionAgentFactory collectionAgentFactory, ThresholdingService thresholdingService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Return the id of the listenervoid
onEvent(IEvent e)
Process a sent event.void
start()
void
stop()
-
-
-
Field Detail
-
NAME_MAX_LENGTH
public static final int NAME_MAX_LENGTH
- See Also:
- Constant Field Values
-
NODE_SNMP
public static final String NODE_SNMP
- See Also:
- Constant Field Values
-
INTERFACE_SNMP
public static final String INTERFACE_SNMP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EventMetricsCollector
public EventMetricsCollector(EventConfDao eventConfDao, EventSubscriptionService eventSubscriptionService, PersisterFactory persisterFactory, IpInterfaceDao ipInterfaceDao, SnmpInterfaceDao snmpInterfaceDao, CollectionAgentFactory collectionAgentFactory, ThresholdingService thresholdingService)
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
getName
public String getName()
Description copied from interface:EventListener
Return the id of the listener- Specified by:
getName
in interfaceEventListener
- Returns:
- a
String
object.
-
onEvent
public void onEvent(IEvent e)
Description copied from interface:EventListener
Process a sent event.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
e
- aIEvent
object.
-
-