org.rhq.plugins.hadoop
Class HadoopServiceComponent
java.lang.Object
org.rhq.plugins.jmx.JMXServerComponent
org.rhq.plugins.hadoop.HadoopServiceComponent
- All Implemented Interfaces:
- AvailabilityFacet, ResourceComponent, MeasurementFacet, OperationFacet, JMXComponent
public class HadoopServiceComponent
- extends JMXServerComponent
- implements JMXComponent, ResourceComponent, MeasurementFacet, OperationFacet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HadoopServiceComponent
public HadoopServiceComponent()
getAvailability
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
- Return availability of this resource
- Specified by:
getAvailability in interface AvailabilityFacet- Overrides:
getAvailability in class JMXServerComponent
- See Also:
AvailabilityFacet.getAvailability()
start
public void start(ResourceContext context)
throws InvalidPluginConfigurationException,
Exception
- Start the resource connection
- Specified by:
start in interface ResourceComponent- Overrides:
start in class JMXServerComponent
- Throws:
InvalidPluginConfigurationException
Exception- 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- Overrides:
stop in class JMXServerComponent
- See Also:
ResourceComponent.stop()
getEmsConnection
public org.mc4j.ems.connection.EmsConnection getEmsConnection()
- Specified by:
getEmsConnection in interface JMXComponent- Overrides:
getEmsConnection in class JMXServerComponent
getValues
public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.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)
startOperationFacet
public void startOperationFacet(OperationContext context)
invokeOperation
public OperationResult invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration params)
throws Exception
- Invokes the passed operation on the managed resource
- Specified by:
invokeOperation in interface OperationFacet
- Parameters:
name - Name of the operationparams - The method parameters
- Returns:
- An operation result
- Throws:
Exception- See Also:
OperationFacet
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.