|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.modules.plugins.jbossas7.helper.HostConfiguration
public class HostConfiguration
A host configuration - loaded from either standalone.xml or host.xml.
| Field Summary | |
|---|---|
static int |
DEFAULT_MGMT_PORT
|
| Constructor Summary | |
|---|---|
HostConfiguration(File hostXmlFile)
|
|
| Method Summary | |
|---|---|
String |
getHostName()
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 |
HostPort |
getHostPort(AS7CommandLine commandLine)
Try to obtain the domain controller's location from looking at host.xml |
HostPort |
getManagementHostPort(AS7CommandLine commandLine,
AS7Mode mode)
Try to obtain the management IP and port from the already parsed host.xml or standalone.xml |
String |
getManagementSecurityRealm()
|
File |
getSecurityPropertyFile(File baseDir,
AS7Mode mode,
String realm)
|
String |
obtainXmlPropertyViaXPath(String xpathExpression)
Run the passed xpathExpression on the prepopulated hostXml document and return the target element or attribute as a String. |
protected String |
replaceDollarExpression(String value,
AS7CommandLine commandLine,
String lastResort)
Check if the passed value has an expression in the form of ${var} or ${var:default}, try to resolve it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MGMT_PORT
| Constructor Detail |
|---|
public HostConfiguration(File hostXmlFile)
throws Exception
hostXmlFile - absolute path to standalone.xml or host.xml file
Exception| Method Detail |
|---|
public HostPort getManagementHostPort(AS7CommandLine commandLine,
AS7Mode mode)
commandLine - Command line arguments of the process to
public String getHostName()
public HostPort getHostPort(AS7CommandLine commandLine)
public String getManagementSecurityRealm()
public File getSecurityPropertyFile(File baseDir,
AS7Mode mode,
String realm)
public String obtainXmlPropertyViaXPath(String xpathExpression)
xpathExpression - XPath Expression to evaluate
IllegalArgumentException - if hostXml is null
protected String replaceDollarExpression(String value,
AS7CommandLine commandLine,
String lastResort)
value - a hostname or hostname expressioncommandLine - The command line from the processlastResort - fall back to this value if the value could not be found on the command line and
the expression did not specify a default value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||