public class BytemanScriptComponent extends Object implements ResourceComponent<BytemanAgentComponent>, DeleteResourceFacet
| Constructor and Description |
|---|
BytemanScriptComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDeployedScript()
This method will attempt to ensure that the Byteman agent has the managed script
loaded.
|
void |
deleteResource() |
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability() |
org.jboss.byteman.agent.submit.Submit |
getBytemanClient() |
protected File |
getManagedScriptFile(String scriptPath)
This returns a File representation of a managed script found at the given path.
|
List<String> |
getRules()
Returns a cached copy of all known rules for the script since the last availability check was made.
|
void |
start(ResourceContext<BytemanAgentComponent> context) |
void |
stop() |
public void start(ResourceContext<BytemanAgentComponent> context)
start in interface ResourceComponent<BytemanAgentComponent>public void stop()
stop in interface ResourceComponent<BytemanAgentComponent>public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacetpublic void deleteResource()
throws Exception
deleteResource in interface DeleteResourceFacetExceptionpublic List<String> getRules()
null
if a problem occurred attempting to get the scriptspublic org.jboss.byteman.agent.submit.Submit getBytemanClient()
protected File getManagedScriptFile(String scriptPath)
null if the given script path is not a script managed by this plugin.
Even if scriptPath points to a valid script file, if it is not managed by this plugin,
null will be returned.scriptPath - path to check to see if its a managed script, to be converted to a File if sonull if the given path is not a managed scriptprotected void addDeployedScript()
throws Exception
ExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.