org.talend.esb.monitoring.hq
Class DynamicMxFieldServerDetector

java.lang.Object
  extended by org.hyperic.hq.product.GenericPlugin
      extended by org.hyperic.hq.product.ServerDetector
          extended by org.hyperic.hq.product.DaemonDetector
              extended by org.hyperic.hq.product.jmx.MxServerDetector
                  extended by org.talend.esb.monitoring.hq.DynamicMxFieldServerDetector
All Implemented Interfaces:
org.hyperic.hq.product.AutoServerDetector, org.hyperic.hq.product.FileServerDetector, org.hyperic.hq.product.RuntimeDiscoverer
Direct Known Subclasses:
AbstractEmbeddedServerDetector

public class DynamicMxFieldServerDetector
extends org.hyperic.hq.product.jmx.MxServerDetector

This class is a detector plug-in for Hyperic. It provides discovery of JMX servers with dynamic object names.

Author:
Eugene Tarasov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hyperic.hq.product.jmx.MxServerDetector
org.hyperic.hq.product.jmx.MxServerDetector.MxProcess
 
Field Summary
 
Fields inherited from class org.hyperic.hq.product.jmx.MxServerDetector
PROC_HOME_ENV, PROC_HOME_PROPERTY, PROC_JAVA, PROC_MAIN_CLASS, PROP_PROCESS_QUERY, SUN_JMX_PORT, SUN_JMX_REMOTE
 
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
DynamicMxFieldServerDetector()
           
 
Method Summary
protected  List discoverServices(org.hyperic.util.config.ConfigResponse serverConfig)
          
protected  String formatFieldValue(String targetFormat, String fieldValue)
           
 void init(org.hyperic.hq.product.PluginManager manager)
           
 
Methods inherited from class org.hyperic.hq.product.jmx.MxServerDetector
configureLocalMxURL, configureMxURL, discoverMxServices, discoverServiceTypes, findAndSetURL, getMxURL, getProcHomeEnv, getProcHomeProperty, getProcMainClass, getProcQuery, getProcQuery, getServerProcessList, getServerResource, getServerResources, isInstallTypeVersion, parseMxPort, setJmxUrl
 
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, 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, getPluginVersion, getProductPlugin, getProperties, getScriptExtension, getScriptExtension, getScriptExtension, getTypeInfo, getTypeNameProperty, getTypeNameProperty, getTypeProperties, getTypeProperty, getTypeProperty, isNetStatEnabled, isWin32, openResource, setData, setName, setPluginVersion, setTypeInfo, shutdown, toFileList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicMxFieldServerDetector

public DynamicMxFieldServerDetector()
Method Detail

init

public void init(org.hyperic.hq.product.PluginManager manager)
          throws org.hyperic.hq.product.PluginException
Overrides:
init in class org.hyperic.hq.product.ServerDetector
Throws:
org.hyperic.hq.product.PluginException

discoverServices

protected List discoverServices(org.hyperic.util.config.ConfigResponse serverConfig)
                         throws org.hyperic.hq.product.PluginException

Overrides:
discoverServices in class org.hyperic.hq.product.jmx.MxServerDetector
Throws:
org.hyperic.hq.product.PluginException

formatFieldValue

protected String formatFieldValue(String targetFormat,
                                  String fieldValue)


Copyright © 2011–2014 Talend Inc.. All rights reserved.