|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rhq.plugins.script.ScriptDiscoveryComponent
public class ScriptDiscoveryComponent
Discovery component that allows you to manually add your own CLI-managed resource, where the CLI is some executable binary or script. The CLI executable/script itself is not the managed resource, it is merely the management front end to the actual managed resource.
| Constructor Summary | |
|---|---|
ScriptDiscoveryComponent()
|
|
| Method Summary | |
|---|---|
protected String |
determineDescription(ResourceDiscoveryContext context,
Configuration pluginConfig)
Attempts to determine the description of the resource managed by the CLI. |
protected String |
determineVersion(ResourceDiscoveryContext context,
Configuration pluginConfig)
Attempts to determine the version of the resource managed by the CLI. |
DiscoveredResourceDetails |
discoverResource(Configuration pluginConfig,
ResourceDiscoveryContext discoveryContext)
|
Set<DiscoveredResourceDetails> |
discoverResources(ResourceDiscoveryContext context)
|
protected DiscoveredResourceDetails |
processAutoDiscoveredResource(ResourceDiscoveryContext context,
ProcessScanResult autoDiscoveryResult)
Subclasses should override this method if their plugin descriptors defined process scans. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptDiscoveryComponent()
| Method Detail |
|---|
public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext context)
discoverResources in interface ResourceDiscoveryComponent
public DiscoveredResourceDetails discoverResource(Configuration pluginConfig,
ResourceDiscoveryContext discoveryContext)
throws InvalidPluginConfigurationException
discoverResource in interface ManualAddFacetInvalidPluginConfigurationException
protected DiscoveredResourceDetails processAutoDiscoveredResource(ResourceDiscoveryContext context,
ProcessScanResult autoDiscoveryResult)
null, this process will be ignored and no resource will be discovered.
context - the discovery contextautoDiscoveryResult - information on the discovered process
protected String determineDescription(ResourceDiscoveryContext context,
Configuration pluginConfig)
context - pluginConfig -
null if it could not be determined
protected String determineVersion(ResourceDiscoveryContext context,
Configuration pluginConfig)
context - pluginConfig -
null if it could not be determined
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||