|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rhq.plugins.byteman.BytemanScriptComponent
public class BytemanScriptComponent
Component that represents a script that is deployed in a Byteman agent.
Constructor Summary | |
---|---|
BytemanScriptComponent()
|
Method Summary | |
---|---|
protected void |
addDeployedScript()
This method will attempt to ensure that the Byteman agent has the managed script loaded. |
void |
deleteResource()
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BytemanScriptComponent()
Method Detail |
---|
public void start(ResourceContext<BytemanAgentComponent> context)
start
in interface ResourceComponent<BytemanAgentComponent>
public void stop()
stop
in interface ResourceComponent<BytemanAgentComponent>
public AvailabilityType getAvailability()
getAvailability
in interface AvailabilityFacet
public void deleteResource() throws Exception
deleteResource
in interface DeleteResourceFacet
Exception
public 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 so
null
if the given path is not a managed scriptprotected void addDeployedScript() throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |