Package com.xwiki.admintools
Interface ServerInfo
-
@Unstable @Role public interface ServerInfoExposes methods for accessing server specific information, like configurations, logs or other XWiki and server files.- Since:
- 1.1
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanfoundServerPath()Verify if the path to a specific server is found.StringgetComponentHint()Extract the hint of a component.StringgetLastLogFilePath()Get path to server last updated main log file.StringgetLogsFolderPath()Get path to server logs folder.StringgetLogsHint()Get server logs common identifier.PatterngetLogsPattern()Get server pattern for identifying log files date.StringgetServerCfgPath()Access the path to the server configuration file.StringgetServerPath()Get path to server.StringgetXwikiCfgFolderPath()Access the path to the XWiki configuration folder.StringgetXWikiInstallFolderPath()Access the path to the XWiki installation folder.voidupdatePossiblePaths()Update the possible paths to the configuration files.
-
-
-
Method Detail
-
foundServerPath
boolean foundServerPath()
Verify if the path to a specific server is found. If a server path is provided in the XWiki configurations, it verifies if the path corresponds to a server. Otherwise, it searches the server location in system properties and system environment.- Returns:
trueif the server is used,falseotherwise.
-
getComponentHint
String getComponentHint()
Extract the hint of a component.- Returns:
- component hint.
-
getServerCfgPath
String getServerCfgPath()
Access the path to the server configuration file.- Returns:
- the path to the server configuration file.
-
getXwikiCfgFolderPath
String getXwikiCfgFolderPath()
Access the path to the XWiki configuration folder.- Returns:
- the path to the XWiki configuration folder.
-
getXWikiInstallFolderPath
String getXWikiInstallFolderPath()
Access the path to the XWiki installation folder.- Returns:
- the path to the XWiki installation folder.
-
updatePossiblePaths
void updatePossiblePaths()
Update the possible paths to the configuration files.
-
getLogsFolderPath
String getLogsFolderPath()
Get path to server logs folder.- Returns:
Stringwith server logs folder path.
-
getLastLogFilePath
String getLastLogFilePath()
Get path to server last updated main log file.- Returns:
Stringpath to server log file.
-
getLogsPattern
Pattern getLogsPattern()
Get server pattern for identifying log files date.- Returns:
Patternrepresenting the date format in server log files names.
-
-