|
Hyperic HQ Plugin API v. 5.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hyperic.hq.product.GenericPlugin
org.hyperic.hq.product.ServerDetector
org.hyperic.hq.product.DaemonDetector
public class DaemonDetector
Generic detector for use by pure-xml plugins.
| Field Summary |
|---|
| Fields inherited from class org.hyperic.hq.product.ServerDetector |
|---|
AUTOINVENTORY_NAME, INSTALLPATH, INVENTORY_ID |
| Fields inherited from class org.hyperic.hq.product.GenericPlugin |
|---|
config, FILE_DELIM, FILE_DELIM_ESC, PROP_NAME |
| Constructor Summary | |
|---|---|
DaemonDetector()
|
|
| Method Summary | |
|---|---|
protected void |
discoverServerConfig(ServerResource server,
long pid)
Auto-discover server configuration |
protected List |
discoverServices(org.hyperic.util.config.ConfigResponse config)
Override to discover services for the server type of the plugin instance. |
protected List |
getFileResources(org.hyperic.util.config.ConfigResponse platformConfig)
Check for installed files using the file-scan config without running a full file-scan. |
protected org.hyperic.util.config.ConfigResponse |
getPlatformConfig()
|
protected String |
getProcessQuery()
|
protected List |
getProcessResources(org.hyperic.util.config.ConfigResponse platformConfig)
Process table scan |
protected Map |
getProcOpts(long pid)
Convert getopt-style process arguments into a Map. |
List |
getServerResources(org.hyperic.util.config.ConfigResponse platformConfig)
|
List |
getServerResources(org.hyperic.util.config.ConfigResponse platformConfig,
String path)
This interface is used by the Auto-Discovery file system scan. |
protected boolean |
isSwitch(String arg)
|
protected ServerResource |
newServerResource(long pid,
String exe)
|
protected ServerResource |
newServerResource(String exe)
|
protected void |
setPlatformConfig(org.hyperic.util.config.ConfigResponse config)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DaemonDetector()
| Method Detail |
|---|
protected String getProcessQuery()
protected boolean isSwitch(String arg)
protected Map getProcOpts(long pid)
pid - Process id
protected void discoverServerConfig(ServerResource server,
long pid)
server - Auto-discovered serverpid - Process id
protected ServerResource newServerResource(long pid,
String exe)
protected ServerResource newServerResource(String exe)
protected void setPlatformConfig(org.hyperic.util.config.ConfigResponse config)
protected org.hyperic.util.config.ConfigResponse getPlatformConfig()
public List getServerResources(org.hyperic.util.config.ConfigResponse platformConfig)
throws PluginException
getServerResources in interface AutoServerDetectorPluginException
public List getServerResources(org.hyperic.util.config.ConfigResponse platformConfig,
String path)
throws PluginException
FileServerDetector
getServerResources in interface FileServerDetectorplatformConfig - Platform config properties.path - The absolute path to the matched file or directory.
PluginException - If an error occured during server detection.ServerResource
protected List discoverServices(org.hyperic.util.config.ConfigResponse config)
throws PluginException
ServerDetector
discoverServices in class ServerDetectorconfig - Configuration of the parent server resource.
PluginException - If an error occured during discovery.
protected List getFileResources(org.hyperic.util.config.ConfigResponse platformConfig)
throws PluginException
PluginException
protected List getProcessResources(org.hyperic.util.config.ConfigResponse platformConfig)
throws PluginException
PluginException
|
Hyperic HQ Plugin API v. 5.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||