public class HadoopServerComponent extends JMXServerComponent<ResourceComponent<?>> implements JMXComponent<ResourceComponent<?>>, MeasurementFacet, OperationFacet, ConfigurationFacet
| Modifier and Type | Field and Description |
|---|---|
static String |
LOG_EVENT_TYPE |
static String |
LOG_POLLING_INTERVAL_PROPERTY |
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP| Constructor and Description |
|---|
HadoopServerComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected EventPoller |
createNewEventPoller(EventContext eventContext,
File logFile) |
protected void |
discardPoller() |
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability()
Return availability of this resource
|
org.mc4j.ems.connection.EmsConnection |
getEmsConnection() |
protected File |
getHomeDir() |
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
Gather measurement data
|
protected void |
handleMetric(org.rhq.core.domain.measurement.MeasurementReport report,
org.rhq.core.domain.measurement.MeasurementScheduleRequest request) |
OperationResult |
invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration params)
Invokes the passed operation on the managed resource
|
org.rhq.core.domain.configuration.Configuration |
loadResourceConfiguration() |
void |
start(ResourceContext context) |
void |
stop() |
void |
updateResourceConfiguration(ConfigurationUpdateReport report) |
getResourceContext, internalStartpublic static final String LOG_EVENT_TYPE
public static final String LOG_POLLING_INTERVAL_PROPERTY
public void start(ResourceContext context) throws Exception
start in interface ResourceComponent<ResourceComponent<?>>start in class JMXServerComponent<ResourceComponent<?>>Exceptionpublic void stop()
stop in interface ResourceComponent<ResourceComponent<?>>stop in class JMXServerComponent<ResourceComponent<?>>public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacetgetAvailability in class JMXServerComponent<ResourceComponent<?>>AvailabilityFacet.getAvailability()public org.mc4j.ems.connection.EmsConnection getEmsConnection()
getEmsConnection in interface JMXComponent<ResourceComponent<?>>getEmsConnection in class JMXServerComponent<ResourceComponent<?>>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)protected void handleMetric(org.rhq.core.domain.measurement.MeasurementReport report,
org.rhq.core.domain.measurement.MeasurementScheduleRequest request)
throws Exception
Exceptionpublic org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
throws Exception
loadResourceConfiguration in interface ConfigurationFacetExceptionpublic void updateResourceConfiguration(ConfigurationUpdateReport report)
updateResourceConfiguration in interface ConfigurationFacetpublic OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration params) throws Exception
invokeOperation in interface OperationFacetname - Name of the operationparams - The method parametersExceptionOperationFacetprotected EventPoller createNewEventPoller(EventContext eventContext, File logFile)
protected void discardPoller()
protected File getHomeDir()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.