|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rhq.modules.plugins.script2.ScriptComponent
public class ScriptComponent
Run the show for the script2 plugin. We eval() the script for each call to getAvailability and getValues , as otherwise we may see failures, when evaluated script was evaluated on a different thread than the execution of invokeFunction.
| Constructor Summary | |
|---|---|
ScriptComponent()
|
|
| Method Summary | |
|---|---|
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability()
Return availability of this resource |
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 params)
Invokes the passed operation on the managed resource |
void |
start(ResourceContext context)
Start the resource connection |
void |
startOperationFacet(OperationContext context)
|
void |
stop()
Tear down the rescource connection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptComponent()
| Method Detail |
|---|
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacetAvailabilityFacet.getAvailability()
public void start(ResourceContext context)
throws InvalidPluginConfigurationException,
Exception
start in interface ResourceComponentInvalidPluginConfigurationException
ExceptionResourceComponent.start(org.rhq.core.pluginapi.inventory.ResourceContext)public void stop()
stop in interface ResourceComponentResourceComponent.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 void startOperationFacet(OperationContext context)
public OperationResult invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration params)
throws Exception
invokeOperation in interface OperationFacetname - Name of the operationparams - The method parameters
ExceptionOperationFacet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||