|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
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, INSTALLPATH_MATCH, INSTALLPATH_NOMATCH, INVENTORY_ID, VERSION_FILE |
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 java.util.List |
discoverServices(ConfigResponse config)
Override to discover services for the server type of the plugin instance. |
protected java.util.List |
getFileResources(ConfigResponse platformConfig)
Check for installed files using the file-scan config without running a full file-scan. |
protected ConfigResponse |
getPlatformConfig()
|
protected java.lang.String |
getProcessQuery()
|
protected java.util.List |
getProcessResources(ConfigResponse platformConfig)
Process table scan |
protected java.util.Map |
getProcOpts(long pid)
Convert getopt-style process arguments into a Map. |
java.util.List |
getServerResources(ConfigResponse platformConfig)
|
java.util.List |
getServerResources(ConfigResponse platformConfig,
java.lang.String path)
This interface is used by the Auto-Discovery file system scan. |
protected boolean |
isSwitch(java.lang.String arg)
|
protected ServerResource |
newServerResource(long pid,
java.lang.String exe)
|
protected ServerResource |
newServerResource(java.lang.String exe)
|
protected void |
setPlatformConfig(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 java.lang.String getProcessQuery()
protected boolean isSwitch(java.lang.String arg)
protected java.util.Map getProcOpts(long pid)
pid
- Process id
protected void discoverServerConfig(ServerResource server, long pid)
server
- Auto-discovered serverpid
- Process idprotected ServerResource newServerResource(long pid, java.lang.String exe)
protected ServerResource newServerResource(java.lang.String exe)
protected void setPlatformConfig(ConfigResponse config)
protected ConfigResponse getPlatformConfig()
public java.util.List getServerResources(ConfigResponse platformConfig) throws PluginException
getServerResources
in interface AutoServerDetector
PluginException
public java.util.List getServerResources(ConfigResponse platformConfig, java.lang.String path) throws PluginException
FileServerDetector
getServerResources
in interface FileServerDetector
platformConfig
- Platform config properties.path
- The absolute path to the matched file or directory.
PluginException
- If an error occured during server detection.ServerResource
protected java.util.List discoverServices(ConfigResponse config) throws PluginException
ServerDetector
discoverServices
in class ServerDetector
config
- Configuration of the parent server resource.
PluginException
- If an error occured during discovery.protected java.util.List getFileResources(ConfigResponse platformConfig) throws PluginException
PluginException
protected java.util.List getProcessResources(ConfigResponse platformConfig) throws PluginException
PluginException
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |