org.rhq.plugins.platform
Class PlatformComponent

java.lang.Object
  extended by org.rhq.plugins.platform.PlatformComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, ResourceComponent<PlatformComponent>, MeasurementFacet, OperationFacet
Direct Known Subclasses:
PosixPlatformComponent, WindowsPlatformComponent

public class PlatformComponent
extends Object
implements ResourceComponent<PlatformComponent>, ConfigurationFacet, MeasurementFacet, OperationFacet

Represents the platform resource which is the root resource for all other resources managed.

Author:
John Mazzitelli

Field Summary
protected  ResourceContext resourceContext
           
protected static String TRAIT_ARCH
           
protected static String TRAIT_HOSTNAME
           
protected static String TRAIT_OSNAME
           
protected static String TRAIT_OSVERSION
           
 
Constructor Summary
PlatformComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
           
protected  org.rhq.core.domain.measurement.MeasurementDataTrait getMeasurementDataTrait(org.rhq.core.domain.measurement.MeasurementScheduleRequest request)
           
 SystemInfo getSysinfo()
           
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
           
 OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration parameters)
           
 org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
           
 void start(ResourceContext context)
           
 void stop()
           
 void updateResourceConfiguration(ConfigurationUpdateReport report)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRAIT_HOSTNAME

protected static final String TRAIT_HOSTNAME
See Also:
Constant Field Values

TRAIT_OSNAME

protected static final String TRAIT_OSNAME
See Also:
Constant Field Values

TRAIT_OSVERSION

protected static final String TRAIT_OSVERSION
See Also:
Constant Field Values

TRAIT_ARCH

protected static final String TRAIT_ARCH
See Also:
Constant Field Values

resourceContext

protected ResourceContext resourceContext
Constructor Detail

PlatformComponent

public PlatformComponent()
Method Detail

start

public void start(ResourceContext context)
Specified by:
start in interface ResourceComponent<PlatformComponent>

stop

public void stop()
Specified by:
stop in interface ResourceComponent<PlatformComponent>

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet

loadResourceConfiguration

public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
Specified by:
loadResourceConfiguration in interface ConfigurationFacet

updateResourceConfiguration

public void updateResourceConfiguration(ConfigurationUpdateReport report)
Specified by:
updateResourceConfiguration in interface ConfigurationFacet

getValues

public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
                      Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
Specified by:
getValues in interface MeasurementFacet

getMeasurementDataTrait

protected org.rhq.core.domain.measurement.MeasurementDataTrait getMeasurementDataTrait(org.rhq.core.domain.measurement.MeasurementScheduleRequest request)

invokeOperation

public OperationResult invokeOperation(String name,
                                       org.rhq.core.domain.configuration.Configuration parameters)
                                throws Exception
Specified by:
invokeOperation in interface OperationFacet
Throws:
Exception

getSysinfo

public SystemInfo getSysinfo()


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