public final class ScriptConstants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JMXREMOTE_ACCESS_HEADER
The header for the jmxremote.access file.
|
static String |
JMXREMOTE_PASSWORD_HEADER
The header for the jxmremote.password file.
|
Modifier and Type | Method and Description |
---|---|
static String |
doubleBackslashes(String path)
Changes a string into correct formatted style.
|
static String |
getLinuxPIDS(String totalName,
String path,
String id)
Creates the script for extracting the processes of a specific application, depending on the name of the
application and the settings file.
|
static String |
replaceWindowsDirSeparators(String path)
Changes a string into correct formatted style.
|
static String |
writeDashLine()
Function for creating dash lines in scripts.
|
static String |
writeInstallMachineHeader(String login)
The header for the install all script for the machine.
|
static String |
writeKillMachineHeader(String login)
The header for the kill all script for the machine.
|
static String |
writeSecurityPolicyDirPermission(String dir)
For giving readonly permission to a directory in the security policy.
|
static String |
writeStartMachineHeader(String login)
The header for the start all script for the machine.
|
public static final String JMXREMOTE_PASSWORD_HEADER
public static final String JMXREMOTE_ACCESS_HEADER
public static String writeDashLine()
public static String writeKillMachineHeader(String login) throws ArgumentNotValid
login
- The login to the machine (username@machinename)ArgumentNotValid
- If the login is null or the empty string.public static String writeStartMachineHeader(String login) throws ArgumentNotValid
login
- The login to the machine (username@machinename)ArgumentNotValid
- If the login is null or the empty string.public static String writeInstallMachineHeader(String login) throws ArgumentNotValid
login
- The login to the machine (username@machinename)ArgumentNotValid
- If the login is null or the empty string.public static String doubleBackslashes(String path) throws ArgumentNotValid
path
- The directory path to change to appropriate format.ArgumentNotValid
- If the path is null or the empty string.public static String replaceWindowsDirSeparators(String path) throws ArgumentNotValid
path
- The directory path to change to appropriate format.ArgumentNotValid
- If the path is null or the empty string.public static String writeSecurityPolicyDirPermission(String dir) throws ArgumentNotValid
dir
- The path to the directory. This has to be formatted to have the correct directory separator: '${/}',
instead of '/' or '\\' for Windows and Linux respectively.ArgumentNotValid
- If the dir is null or the empty string.public static String getLinuxPIDS(String totalName, String path, String id) throws ArgumentNotValid
totalName
- The total name of the application.path
- The path to the directory of the settings file (conf-dir).id
- The identification of the application (name + instanceId).ArgumentNotValid
- If the totalName, the path or the id is either null or the empty string.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.