org.rhq.plugins.snmptrapd
Class SnmpTrapdComponent

java.lang.Object
  extended by org.rhq.plugins.snmptrapd.SnmpTrapdComponent
All Implemented Interfaces:
AvailabilityFacet, ResourceComponent<ResourceComponent<?>>, MeasurementFacet

public class SnmpTrapdComponent
extends Object
implements ResourceComponent<ResourceComponent<?>>, MeasurementFacet

The actual implementation of the Snmp trapd

Author:
Heiko W. Rupp

Field Summary
static String TRAP_TYPE
           
static int trapCount
           
 
Constructor Summary
SnmpTrapdComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
           
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
           
 void start(ResourceContext context)
          Start the event polling mechanism and the actual trap listener.
 void stop()
          Tear down the trap listener and stop polling for events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRAP_TYPE

public static final String TRAP_TYPE
See Also:
Constant Field Values

trapCount

public static int trapCount
Constructor Detail

SnmpTrapdComponent

public SnmpTrapdComponent()
Method Detail

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet

start

public void start(ResourceContext context)
           throws InvalidPluginConfigurationException,
                  Exception
Start the event polling mechanism and the actual trap listener.

Specified by:
start in interface ResourceComponent<ResourceComponent<?>>
Throws:
InvalidPluginConfigurationException
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<ResourceComponent<?>>
See Also:
ResourceComponent.stop()

getValues

public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
                      Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
               throws Exception
Specified by:
getValues in interface MeasurementFacet
Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.