org.rhq.modules.plugins.jbossas7
Class BaseProcessDiscovery
java.lang.Object
org.rhq.modules.plugins.jbossas7.BaseProcessDiscovery
- All Implemented Interfaces:
- ManualAddFacet, ResourceDiscoveryComponent
- Direct Known Subclasses:
- HostControllerDiscovery, StandaloneASDiscovery
public abstract class BaseProcessDiscovery
- extends Object
- implements ResourceDiscoveryComponent, ManualAddFacet
Abstract base discovery component for the two server types - "JBossAS7 Host Controller" and
"JBossAS7 Standalone Server".
|
Method Summary |
protected abstract String |
buildDefaultResourceDescription(HostPort hostPort,
JBossProductType productType)
|
protected abstract String |
buildDefaultResourceName(HostPort hostPort,
HostPort managementHostPort,
JBossProductType productType)
|
protected DiscoveredResourceDetails |
buildResourceDetails(ResourceDiscoveryContext discoveryContext,
ProcessInfo process,
AS7CommandLine commandLine)
|
protected String |
determineServerVersionFromHomeDir(File homeDir)
|
DiscoveredResourceDetails |
discoverResource(org.rhq.core.domain.configuration.Configuration pluginConfig,
ResourceDiscoveryContext context)
|
Set<DiscoveredResourceDetails> |
discoverResources(ResourceDiscoveryContext discoveryContext)
|
protected File |
getBaseDir(ProcessInfo process,
JavaCommandLine javaCommandLine,
File homeDir)
|
protected abstract String |
getBaseDirSystemPropertyName()
|
protected File |
getConfigDir(ProcessInfo process,
JavaCommandLine javaCommandLine,
File baseDir)
|
protected abstract String |
getConfigDirSystemPropertyName()
|
protected abstract String |
getDefaultBaseDirName()
|
protected String |
getDefaultConfigDirName()
|
protected String |
getDefaultLogDirName()
|
protected File |
getHomeDir(ProcessInfo processInfo,
JavaCommandLine javaCommandLine)
|
protected File |
getHostXmlFile(AS7CommandLine commandLine,
File configDir)
|
protected String |
getHostXmlFileName(AS7CommandLine commandLine)
|
protected File |
getLogDir(ProcessInfo process,
AS7CommandLine commandLine,
File baseDir)
|
protected abstract String |
getLogDirSystemPropertyName()
|
protected File |
getLogFile(File logDir)
|
protected abstract String |
getLogFileName()
|
protected abstract AS7Mode |
getMode()
|
protected abstract ProcessInfo |
getPotentialStartScriptProcess(ProcessInfo process)
|
protected HostConfiguration |
loadHostConfiguration(File hostXmlFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseProcessDiscovery
public BaseProcessDiscovery()
discoverResources
public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext discoveryContext)
throws Exception
- Specified by:
discoverResources in interface ResourceDiscoveryComponent
- Throws:
Exception
buildResourceDetails
protected DiscoveredResourceDetails buildResourceDetails(ResourceDiscoveryContext discoveryContext,
ProcessInfo process,
AS7CommandLine commandLine)
throws Exception
- Throws:
Exception
loadHostConfiguration
protected HostConfiguration loadHostConfiguration(File hostXmlFile)
throws Exception
- Throws:
Exception
getHomeDir
protected File getHomeDir(ProcessInfo processInfo,
JavaCommandLine javaCommandLine)
getPotentialStartScriptProcess
protected abstract ProcessInfo getPotentialStartScriptProcess(ProcessInfo process)
getBaseDir
protected File getBaseDir(ProcessInfo process,
JavaCommandLine javaCommandLine,
File homeDir)
getConfigDir
protected File getConfigDir(ProcessInfo process,
JavaCommandLine javaCommandLine,
File baseDir)
getLogDir
protected File getLogDir(ProcessInfo process,
AS7CommandLine commandLine,
File baseDir)
getHostXmlFileName
protected String getHostXmlFileName(AS7CommandLine commandLine)
getHostXmlFile
protected File getHostXmlFile(AS7CommandLine commandLine,
File configDir)
getDefaultConfigDirName
protected String getDefaultConfigDirName()
getDefaultLogDirName
protected String getDefaultLogDirName()
getMode
protected abstract AS7Mode getMode()
getLogFile
protected File getLogFile(File logDir)
getBaseDirSystemPropertyName
protected abstract String getBaseDirSystemPropertyName()
getConfigDirSystemPropertyName
protected abstract String getConfigDirSystemPropertyName()
getLogDirSystemPropertyName
protected abstract String getLogDirSystemPropertyName()
getDefaultBaseDirName
protected abstract String getDefaultBaseDirName()
getLogFileName
protected abstract String getLogFileName()
buildDefaultResourceName
protected abstract String buildDefaultResourceName(HostPort hostPort,
HostPort managementHostPort,
JBossProductType productType)
buildDefaultResourceDescription
protected abstract String buildDefaultResourceDescription(HostPort hostPort,
JBossProductType productType)
discoverResource
public DiscoveredResourceDetails discoverResource(org.rhq.core.domain.configuration.Configuration pluginConfig,
ResourceDiscoveryContext context)
throws InvalidPluginConfigurationException
- Specified by:
discoverResource in interface ManualAddFacet
- Throws:
InvalidPluginConfigurationException
determineServerVersionFromHomeDir
protected String determineServerVersionFromHomeDir(File homeDir)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.