public abstract class ServerFeatureUtil extends AbstractContainerSupportUtil
| Modifier and Type | Field and Description |
|---|---|
static String |
INSTALL_MAP_ARTIFACT_ID |
static String |
OPEN_LIBERTY_GROUP_ID |
static String |
REPOSITORY_RESOLVER_ARTIFACT_ID |
static String |
SERVER_CONFIG_DIR |
static String |
SHARED_APP_DIR |
static String |
SHARED_CONFIG_DIR |
static String |
SHARED_RESOURCES_DIR |
static String |
SHARED_STACKGROUP_DIR |
protected boolean |
suppressLogs |
static String |
USR_EXTENSION_DIR |
static String |
WLP_INSTALL_DIR |
static String |
WLP_USER_DIR |
| Constructor and Description |
|---|
ServerFeatureUtil() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
debug(String msg)
Log debug
|
abstract void |
debug(String msg,
Throwable e)
Log debug
|
abstract void |
debug(Throwable e)
Log debug
|
Set<String> |
getServerFeatures(File serverDirectory,
File serverXmlFile,
Map<String,File> libertyDirPropFiles,
Set<String> dropinsFilesToIgnore)
Get the set of features defined in the server.xml
|
Set<String> |
getServerFeatures(File serverDirectory,
Map<String,File> libertyDirPropFiles)
Get the set of features defined in the server.xml
|
Set<String> |
getServerFeatures(File serverDirectory,
Map<String,File> libertyDirPropFiles,
Set<String> dropinsFilesToIgnore)
Get the set of features defined in the server.xml
|
Set<String> |
getServerXmlFeatures(Set<String> origResult,
File serverDirectory,
File serverFile,
Properties bootstrapProperties,
List<File> parsedXmls)
Adds features from the given server file into the origResult or a new set
if origResult is null.
|
abstract void |
info(String msg)
Log info
|
void |
setLowerCaseFeatures(boolean val)
Indicate whether the feature names should be converted to lower case.
|
void |
setSuppressLogs(boolean val)
Indicate whether the info and warning messages should not be displayed.
|
abstract void |
warn(String msg)
Log warning
|
error, execDockerCmd, readStdOutpublic static final String OPEN_LIBERTY_GROUP_ID
public static final String REPOSITORY_RESOLVER_ARTIFACT_ID
public static final String INSTALL_MAP_ARTIFACT_ID
public static final String WLP_INSTALL_DIR
public static final String WLP_USER_DIR
public static final String USR_EXTENSION_DIR
public static final String SHARED_APP_DIR
public static final String SHARED_CONFIG_DIR
public static final String SHARED_RESOURCES_DIR
public static final String SHARED_STACKGROUP_DIR
public static final String SERVER_CONFIG_DIR
protected boolean suppressLogs
public abstract void debug(String msg)
debug in class AbstractContainerSupportUtilmsg - public abstract void debug(Throwable e)
e - public abstract void warn(String msg)
msg - public abstract void info(String msg)
msg - public Set<String> getServerFeatures(File serverDirectory, File serverXmlFile, Map<String,File> libertyDirPropFiles, Set<String> dropinsFilesToIgnore)
serverDirectory - The server directory containing the server.xmlserverXmlFile - The server.xml filelibertyDirPropFiles - Map of Liberty directory properties to the actual File for each directorydropinsFilesToIgnore - A set of file names under configDropins/overrides or configDropins/defaults to ignorepublic Set<String> getServerFeatures(File serverDirectory, Map<String,File> libertyDirPropFiles, Set<String> dropinsFilesToIgnore)
serverDirectory - The server directory containing the server.xmllibertyDirPropFiles - Map of Liberty directory properties to the actual File for each directorydropinsFilesToIgnore - A set of file names under configDropins/overrides or configDropins/defaults to ignorepublic Set<String> getServerFeatures(File serverDirectory, Map<String,File> libertyDirPropFiles)
serverDirectory - The server directory containing the server.xmllibertyDirPropFiles - Map of Liberty directory properties to the actual File for each directorypublic void setLowerCaseFeatures(boolean val)
val - boolean false to indicate names should remain mixed case as defined in Liberty.
True indicates the names will be folded to lower case.public void setSuppressLogs(boolean val)
val - boolean true to indicate that info and warning log messages should be not displayed.public Set<String> getServerXmlFeatures(Set<String> origResult, File serverDirectory, File serverFile, Properties bootstrapProperties, List<File> parsedXmls)
origResult - The features that have been parsed so far.serverDirectory - The server directory containing the server.xml.serverFile - The server XML file.bootstrapProperties - The properties defined in bootstrap.properties.parsedXmls - The list of XML files that have been parsed so far.Copyright © 2022 the original author or authors.