org.rhq.plugins.jbossas.script
Class ScriptComponent

java.lang.Object
  extended by org.rhq.plugins.jbossas.script.ScriptComponent
All Implemented Interfaces:
AvailabilityFacet, ResourceComponent<JBossASServerComponent<?>>, OperationFacet

public class ScriptComponent
extends Object
implements ResourceComponent<JBossASServerComponent<?>>, OperationFacet

A JON service that provides the ability to execute a script.

Author:
Ian Springer

Field Summary
static String COMMAND_LINE_ARGUMENTS_PARAM_PROP
           
static String ENVIRONMENT_VARIABLES_CONFIG_PROP
           
static String EXECUTE_OPERATION
           
static String PATH_CONFIG_PROP
           
 
Constructor Summary
ScriptComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
           
 OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration params)
           
 void start(ResourceContext<JBossASServerComponent<?>> resourceContext)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_CONFIG_PROP

public static final String PATH_CONFIG_PROP
See Also:
Constant Field Values

ENVIRONMENT_VARIABLES_CONFIG_PROP

public static final String ENVIRONMENT_VARIABLES_CONFIG_PROP
See Also:
Constant Field Values

EXECUTE_OPERATION

public static final String EXECUTE_OPERATION
See Also:
Constant Field Values

COMMAND_LINE_ARGUMENTS_PARAM_PROP

public static final String COMMAND_LINE_ARGUMENTS_PARAM_PROP
See Also:
Constant Field Values
Constructor Detail

ScriptComponent

public ScriptComponent()
Method Detail

start

public void start(ResourceContext<JBossASServerComponent<?>> resourceContext)
Specified by:
start in interface ResourceComponent<JBossASServerComponent<?>>

stop

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

getAvailability

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

invokeOperation

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


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