org.talend.esb.monitoring.hq
Class AbstractEmbeddedServerDetector

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
                      extended by org.talend.esb.monitoring.hq.AbstractEmbeddedServerDetector
All Implemented Interfaces:
org.hyperic.hq.product.AutoServerDetector, org.hyperic.hq.product.FileServerDetector, org.hyperic.hq.product.RuntimeDiscoverer
Direct Known Subclasses:
KarafEmbeddedServerDetector, TomcatEmbeddedServerDetector

public abstract class AbstractEmbeddedServerDetector
extends DynamicMxFieldServerDetector


Nested Class Summary
 
Nested classes/interfaces inherited from class org.hyperic.hq.product.jmx.MxServerDetector
org.hyperic.hq.product.jmx.MxServerDetector.MxProcess
 
Field Summary
protected  ObjectName absentDomainPattern
           
protected  org.apache.commons.logging.Log log
           
protected  ObjectName targetDomainPattern
           
protected  String title
           
 
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
AbstractEmbeddedServerDetector()
           
 
Method Summary
protected  File findVersionFile(File dir, Pattern pattern)
          This function returns the version file, assuring that it's exactly of expected version.
 List getServerResources(org.hyperic.util.config.ConfigResponse platformConfig)
           
 void init(org.hyperic.hq.product.PluginManager manager)
           
protected  boolean versionFileMatches(String fileName, Pattern pattern)
           
 
Methods inherited from class org.talend.esb.monitoring.hq.DynamicMxFieldServerDetector
discoverServices, formatFieldValue
 
Methods inherited from class org.hyperic.hq.product.jmx.MxServerDetector
configureLocalMxURL, configureMxURL, discoverMxServices, discoverServiceTypes, findAndSetURL, getMxURL, getProcHomeEnv, getProcHomeProperty, getProcMainClass, getProcQuery, getProcQuery, getServerProcessList, getServerResource, 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, 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
 

Field Detail

log

protected final org.apache.commons.logging.Log log

targetDomainPattern

protected ObjectName targetDomainPattern

absentDomainPattern

protected ObjectName absentDomainPattern

title

protected String title
Constructor Detail

AbstractEmbeddedServerDetector

public AbstractEmbeddedServerDetector()
Method Detail

init

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

findVersionFile

protected File findVersionFile(File dir,
                               Pattern pattern)
This function returns the version file, assuring that it's exactly of expected version.

Overrides:
findVersionFile in class org.hyperic.hq.product.ServerDetector

versionFileMatches

protected boolean versionFileMatches(String fileName,
                                     Pattern pattern)

getServerResources

public List getServerResources(org.hyperic.util.config.ConfigResponse platformConfig)
                        throws org.hyperic.hq.product.PluginException
Specified by:
getServerResources in interface org.hyperic.hq.product.AutoServerDetector
Overrides:
getServerResources in class org.hyperic.hq.product.jmx.MxServerDetector
Throws:
org.hyperic.hq.product.PluginException


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