org.rhq.plugins.twitter
Class FeedComponent

java.lang.Object
  extended by org.rhq.plugins.twitter.FeedComponent
All Implemented Interfaces:
AvailabilityFacet, DeleteResourceFacet, ResourceComponent<TwitterComponent>, MeasurementFacet

public class FeedComponent
extends Object
implements ResourceComponent<TwitterComponent>, MeasurementFacet, DeleteResourceFacet

This class represents the resource component for one individual twitter feed - meaning either a search or a users timeline.

Author:
Heiko W. Rupp

Field Summary
static String TOPIC_EVENT
           
 
Constructor Summary
FeedComponent()
           
 
Method Summary
 void deleteResource()
          Used to uninventoy children -- this is not really deleting physical resources and so nothing really to do.
 AvailabilityType getAvailability()
          Return availability of this resource
 void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics)
          Gather measurement data
 void start(ResourceContext<TwitterComponent> context)
          Start the resource connection
 void stop()
          Tear down the rescource connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOPIC_EVENT

public static final String TOPIC_EVENT
See Also:
Constant Field Values
Constructor Detail

FeedComponent

public FeedComponent()
Method Detail

getAvailability

public AvailabilityType getAvailability()
Return availability of this resource

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

start

public void start(ResourceContext<TwitterComponent> context)
           throws InvalidPluginConfigurationException,
                  Exception
Start the resource connection

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

stop

public void stop()
Tear down the rescource connection

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

getValues

public void getValues(MeasurementReport report,
                      Set<MeasurementScheduleRequest> metrics)
               throws Exception
Gather measurement data

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

deleteResource

public void deleteResource()
                    throws Exception
Used to uninventoy children -- this is not really deleting physical resources and so nothing really to do.

Specified by:
deleteResource in interface DeleteResourceFacet
Throws:
Exception


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