org.rhq.plugins.snmptrapd
Class SnmpTrapdComponent

java.lang.Object
  extended by 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

Field Summary
static java.lang.String TRAP_TYPE
           
static int trapCount
           
 
Constructor Summary
SnmpTrapdComponent()
           
 
Method Summary
 AvailabilityType getAvailability()
           
 void getValues(MeasurementReport report, java.util.Set<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 java.lang.String TRAP_TYPE
See Also:
Constant Field Values

trapCount

public static int trapCount
Constructor Detail

SnmpTrapdComponent

public SnmpTrapdComponent()
Method Detail

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.