org.rhq.plugins.snmptrapd
Class SnmpTrapdComponent
java.lang.Object
org.rhq.plugins.snmptrapd.SnmpTrapdComponent
- All Implemented Interfaces:
- AvailabilityFacet, ResourceComponent, MeasurementFacet
public class SnmpTrapdComponent
- extends java.lang.Object
- implements ResourceComponent, MeasurementFacet
The actual implementation of the Snmp trapd
- Author:
- Heiko W. Rupp
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRAP_TYPE
public static final java.lang.String TRAP_TYPE
- See Also:
- Constant Field Values
trapCount
public static int trapCount
SnmpTrapdComponent
public SnmpTrapdComponent()
getAvailability
public AvailabilityType getAvailability()
- Specified by:
getAvailability in interface AvailabilityFacet
start
public void start(ResourceContext context)
throws InvalidPluginConfigurationException,
java.lang.Exception
- Start the event polling mechanism and the actual trap listener.
- Specified by:
start in interface ResourceComponent
- Throws:
InvalidPluginConfigurationException
java.lang.Exception- See Also:
ResourceComponent.start(org.rhq.core.pluginapi.inventory.ResourceContext)
stop
public void stop()
- Tear down the trap listener and stop polling for events.
- Specified by:
stop in interface ResourceComponent
- See Also:
ResourceComponent.stop()
getValues
public void getValues(MeasurementReport report,
java.util.Set<MeasurementScheduleRequest> metrics)
throws java.lang.Exception
- Specified by:
getValues in interface MeasurementFacet
- Throws:
java.lang.Exception
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.