org.rhq.plugins.pattern
Class PatternComponent

java.lang.Object
  extended by org.rhq.plugins.pattern.PatternComponent
All Implemented Interfaces:
AvailabilityFacet, ResourceComponent, MeasurementFacet

public class PatternComponent
extends Object
implements ResourceComponent, MeasurementFacet


Constructor Summary
PatternComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
          Return availability of this resource
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
          Gather "measurement" data - actually a series of 1s and 0s starting with 0.
 void start(ResourceContext context)
          Start the resource connection
 void stop()
          Tear down the resource connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternComponent

public PatternComponent()
Method Detail

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Return availability of this resource

Specified by:
getAvailability in interface AvailabilityFacet
See Also:
AvailabilityFacet.getAvailability()

start

public void start(ResourceContext context)
           throws InvalidPluginConfigurationException
Start the resource connection

Specified by:
start in interface ResourceComponent
Throws:
InvalidPluginConfigurationException
See Also:
ResourceComponent.start(org.rhq.core.pluginapi.inventory.ResourceContext)

stop

public void stop()
Tear down the resource connection

Specified by:
stop in interface ResourceComponent
See Also:
ResourceComponent.stop()

getValues

public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
                      Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
               throws Exception
Gather "measurement" data - actually a series of 1s and 0s starting with 0.

Specified by:
getValues in interface MeasurementFacet
Throws:
Exception
See Also:
MeasurementFacet.getValues(org.rhq.core.domain.measurement.MeasurementReport, java.util.Set)


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