org.talend.esb.monitoring.hq
Class TomcatEmbeddedServerDetector

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

public class TomcatEmbeddedServerDetector
extends AbstractEmbeddedServerDetector


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.talend.esb.monitoring.hq.AbstractEmbeddedServerDetector
absentDomainPattern, log, targetDomainPattern, 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
TomcatEmbeddedServerDetector()
           
 
Method Summary
protected  File findVersionFile(File dir, Pattern pattern)
          This function returns the version file, assuring that it's exactly of expected version.
protected  File searchInDir(File libDir, Pattern pattern)
           
protected  File searchInWarFile(File warFile, Pattern pattern)
           
 
Methods inherited from class org.talend.esb.monitoring.hq.AbstractEmbeddedServerDetector
getServerResources, init, versionFileMatches
 
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
 

Constructor Detail

TomcatEmbeddedServerDetector

public TomcatEmbeddedServerDetector()
Method Detail

findVersionFile

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

Overrides:
findVersionFile in class AbstractEmbeddedServerDetector

searchInWarFile

protected File searchInWarFile(File warFile,
                               Pattern pattern)

searchInDir

protected File searchInDir(File libDir,
                           Pattern pattern)


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