|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.modules.plugins.jbossas7.AbstractBaseDiscovery
public class AbstractBaseDiscovery
Abstract base class for some discovery related functionality - especially in the area of processes and host.xml
| Nested Class Summary | |
|---|---|
protected static class |
AbstractBaseDiscovery.HostPort
Helper class that holds information about the host,port tuple |
| Field Summary | |
|---|---|
protected Document |
hostXml
|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
protected |
AbstractBaseDiscovery()
|
| Method Summary | |
|---|---|
protected String |
determineServerVersionFromHomeDir(String homeDir)
|
protected String |
findHostName()
Try to determine the host name - that is the name of a standalone server or a host in domain mode by looking at the standalone.xml/host.xml files |
protected AbstractBaseDiscovery.HostPort |
getDomainControllerFromHostXml()
Try to obtain the domain controller's location from looking at host.xml |
protected String |
getHostXmlFileLocation(ProcessInfo processInfo,
boolean isDomain)
Get the location of the host definition file (host.xml in domain mode, standalone.xml in standalone mode. |
protected AbstractBaseDiscovery.HostPort |
getManagementPortFromHostXml(String[] commandLine)
Try to obtain the management IP and port from the already parsed host.xml or standalone.xml |
protected String |
obtainXmlPropertyViaXPath(String xpathExpression)
Run the passed xpathExpression on the prepopulated hostXml document and return the target element or attribute as a String. |
protected void |
readStandaloneOrHostXml(ProcessInfo processInfo,
boolean isDomainMode)
Read the host.xml or standalone.xml file depending on isDomainMode. |
protected void |
readStandaloneOrHostXmlFromFile(String hostXmlFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Document hostXml
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
protected AbstractBaseDiscovery()
| Method Detail |
|---|
protected void readStandaloneOrHostXml(ProcessInfo processInfo,
boolean isDomainMode)
processInfo - Process info to determine the base file locationisDomainMode - Indiates if host.xml should be read (true) or standalone.xml (false)protected void readStandaloneOrHostXmlFromFile(String hostXmlFile)
protected AbstractBaseDiscovery.HostPort getManagementPortFromHostXml(String[] commandLine)
commandLine - Command line arguments of the process to
on how to obtain the parsed xmlprotected String findHostName()
protected AbstractBaseDiscovery.HostPort getDomainControllerFromHostXml()
protected String getHostXmlFileLocation(ProcessInfo processInfo,
boolean isDomain)
processInfo - ProcessInfo structure containing the ENV variablesisDomain - Are we looking for host.xml (=isDomain) or not
protected String determineServerVersionFromHomeDir(String homeDir)
protected String obtainXmlPropertyViaXPath(String xpathExpression)
xpathExpression - XPath Expression to evaluate
IllegalArgumentException - if hostXml is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||