org.hyperic.hq.product.jmx
Class MxServerDetector
java.lang.Object
org.hyperic.hq.product.GenericPlugin
org.hyperic.hq.product.ServerDetector
org.hyperic.hq.product.DaemonDetector
org.hyperic.hq.product.jmx.MxServerDetector
- All Implemented Interfaces:
- AutoServerDetector, FileServerDetector, RuntimeDiscoverer
- Direct Known Subclasses:
- SunMxServerDetector
public class MxServerDetector
- extends DaemonDetector
- implements AutoServerDetector
Methods inherited from class org.hyperic.hq.product.DaemonDetector |
discoverServerConfig, getFileResources, getPlatformConfig, getProcessQuery, getProcessResources, getProcOpts, getServerResources, isSwitch, newServerResource, newServerResource, setPlatformConfig |
Methods inherited from class org.hyperic.hq.product.ServerDetector |
createServerResource, createServiceResource, discoverResources, discoverServers, findVersionFile, formatAutoInventoryName, formatName, getCanonicalPath, getConfigSchema, getConnectionProtocol, getDocument, getListenAddress, getListenAddress, getManager, getParentDir, getParentDir, getPids, getProcArgs, getProcCwd, getProcExe, getProcExe, getProcModules, getRegistryScanKeys, getRuntimeDiscoverer, getScanOrder, getServerSignature, getServiceConfigs, getServiceInventoryPlugins, getSigar, getTypeProperty, getXPathValue, getXPathValue, init, isInstallTypeVersion, isRuntimeDiscoverySupported, isSSLPort, isWin32ServiceRunning, setControlConfig, setControlConfig, setCustomProperties, setCustomProperties, setDescription, setMeasurementConfig, setMeasurementConfig, setProductConfig, setProductConfig |
Methods inherited from class org.hyperic.hq.product.GenericPlugin |
adjustClassPath, configure, getAbsoluteFiles, getConfig, getConfig, getConfigSchema, getCustomPropertiesSchema, getCustomPropertiesSchema, getCustomPropertiesSchema, getDefaultInstallPath, getLog, getLogName, getManagerProperty, getName, getPlatformName, getPluginClassName, getPluginData, getPluginProperty, getProductPlugin, getProperties, getScriptExtension, getScriptExtension, getScriptExtension, getTypeInfo, getTypeNameProperty, getTypeNameProperty, getTypeProperties, getTypeProperty, getTypeProperty, isNetStatEnabled, isWin32, openResource, setData, setName, setTypeInfo, shutdown, toFileList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROC_MAIN_CLASS
public static final String PROC_MAIN_CLASS
- See Also:
- Constant Field Values
PROC_HOME_PROPERTY
public static final String PROC_HOME_PROPERTY
- See Also:
- Constant Field Values
PROC_HOME_ENV
public static final String PROC_HOME_ENV
- See Also:
- Constant Field Values
PROP_PROCESS_QUERY
public static final String PROP_PROCESS_QUERY
- See Also:
- Constant Field Values
PROC_JAVA
protected static final String PROC_JAVA
- See Also:
- Constant Field Values
SUN_JMX_REMOTE
protected static final String SUN_JMX_REMOTE
- See Also:
- Constant Field Values
SUN_JMX_PORT
protected static final String SUN_JMX_PORT
- See Also:
- Constant Field Values
MxServerDetector
public MxServerDetector()
getMxURL
protected static String getMxURL(String port)
parseMxPort
protected String parseMxPort(String arg)
configureMxURL
protected boolean configureMxURL(org.hyperic.util.config.ConfigResponse config,
String arg)
configureLocalMxURL
protected boolean configureLocalMxURL(org.hyperic.util.config.ConfigResponse config,
String arg,
String query)
getProcMainClass
protected String getProcMainClass()
getProcHomeProperty
protected String getProcHomeProperty()
getProcHomeEnv
protected String getProcHomeEnv()
getProcQuery
protected String getProcQuery()
getProcQuery
protected String getProcQuery(String path)
getServerProcessList
protected List getServerProcessList()
isInstallTypeVersion
protected boolean isInstallTypeVersion(MxServerDetector.MxProcess process)
getServerResource
protected ServerResource getServerResource(MxServerDetector.MxProcess process)
getServerResources
public List getServerResources(org.hyperic.util.config.ConfigResponse platformConfig)
throws PluginException
- Specified by:
getServerResources
in interface AutoServerDetector
- Overrides:
getServerResources
in class DaemonDetector
- Throws:
PluginException
discoverMxServices
protected List discoverMxServices(MBeanServerConnection mServer,
org.hyperic.util.config.ConfigResponse serverConfig)
throws PluginException
- Throws:
PluginException
discoverServices
protected List discoverServices(org.hyperic.util.config.ConfigResponse serverConfig)
throws PluginException
- Description copied from class:
ServerDetector
- Override to discover services for the server type of
the plugin instance.
- Overrides:
discoverServices
in class DaemonDetector
- Parameters:
serverConfig
- Configuration of the parent server resource.
- Returns:
- List of type ServiceResource.
- Throws:
PluginException
- If an error occured during discovery.
discoverServiceTypes
public Set discoverServiceTypes(org.hyperic.util.config.ConfigResponse serverConfig)
throws PluginException
- Overrides:
discoverServiceTypes
in class ServerDetector
- Throws:
PluginException
Copyright © 2004-2010 Hyperic, Inc. support@hyperic.net, All Rights Reserved.