public class HostConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MGMT_PORT |
| Constructor and Description |
|---|
HostConfiguration(File hostXmlFile) |
| Modifier and Type | Method and Description |
|---|---|
HostPort |
getDomainControllerHostPort(AS7CommandLine commandLine)
Try to obtain the domain controller's location from looking at host.xml
|
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 |
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.
|
public static final int DEFAULT_MGMT_PORT
public HostPort getManagementHostPort(AS7CommandLine commandLine, AS7Mode mode)
commandLine - Command line arguments of the process topublic String getHostName()
public HostPort getDomainControllerHostPort(AS7CommandLine commandLine)
public String getManagementSecurityRealm()
public File getSecurityPropertyFile(File baseDir, AS7Mode mode, String realm)
public String obtainXmlPropertyViaXPath(String xpathExpression)
xpathExpression - XPath Expression to evaluateIllegalArgumentException - if hostXml is nullprotected 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 valueCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.