org.rhq.modules.plugins.jbossas7
Class ManagedASComponent

java.lang.Object
  extended by org.rhq.modules.plugins.jbossas7.BaseComponent
      extended by org.rhq.modules.plugins.jbossas7.ManagedASComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, CreateChildResourceFacet, DeleteResourceFacet, ResourceComponent, MeasurementFacet, OperationFacet
Direct Known Subclasses:
ServerGroupComponent

public class ManagedASComponent
extends BaseComponent

Common stuff for the Domain

Author:
Heiko W. Rupp

Constructor Summary
ManagedASComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
          Get the availability of the managed AS server.
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set metrics)
          Gather measurement data
 
Methods inherited from class org.rhq.modules.plugins.jbossas7.BaseComponent
createResource, deleteResource, deployContent, getAddress, getASConnection, getPath, invokeOperation, loadResourceConfiguration, runDeploymentMagicOnServer, setConnection, setPath, start, stop, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedASComponent

public ManagedASComponent()
Method Detail

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Get the availability of the managed AS server. We can't just check if a connection succeeds, as the check runs against the API/HostController and the managed server may still be down even if the connection succeeds.

Specified by:
getAvailability in interface AvailabilityFacet
Overrides:
getAvailability in class BaseComponent
Returns:
Availability of the managed AS instance.
See Also:
AvailabilityFacet.getAvailability()

getValues

public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
                      Set metrics)
               throws Exception
Description copied from class: BaseComponent
Gather measurement data

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


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