public class TwitterComponent extends Object implements ResourceComponent<ResourceComponent<?>>, OperationFacet, MeasurementFacet
| Constructor and Description |
|---|
TwitterComponent() |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability()
Return availability of this resource
|
protected String |
getSearchUrl() |
protected String |
getServerUrl() |
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
Gather measurement data
|
OperationResult |
invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration configuration)
Implementation of the OperationFacet
Sends a tweet
|
void |
start(ResourceContext context)
Start the resource connection
|
void |
stop()
Tear down the rescource connection
|
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacetAvailabilityFacet.getAvailability()public void start(ResourceContext context) throws Exception
start in interface ResourceComponent<ResourceComponent<?>>ExceptionResourceComponent.start(org.rhq.core.pluginapi.inventory.ResourceContext)public void stop()
stop in interface ResourceComponent<ResourceComponent<?>>ResourceComponent.stop()public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
throws Exception
getValues in interface MeasurementFacetExceptionMeasurementFacet.getValues(org.rhq.core.domain.measurement.MeasurementReport, java.util.Set)public OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration configuration) throws Exception
invokeOperation in interface OperationFacetname - the name of the operationconfiguration - parameters of the operationException - If anything goes wrongprotected String getServerUrl()
protected String getSearchUrl()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.