public class ServerStartScriptDiscoveryUtility extends Object
StartScriptConfiguration plugin configuration wrapper.| Modifier and Type | Method and Description |
|---|---|
static File |
getStartScript(ProcessInfo serverParentProcess)
If the specified process is a script, return the path to the script - the returned path will be absolute and
canonical if possible, or, if it is not a script, return
null. |
static List<String> |
getStartScriptArgs(ProcessInfo serverParentProcess,
List<String> serverArgs,
Set<CommandLineOption> optionExcludes)
Returns the list of arguments that should be passed to the start script for the specified server (e.g.
|
static Map<String,String> |
getStartScriptEnv(ProcessInfo serverProcess,
ProcessInfo serverParentProcess,
Set<String> envVarNameIncludes)
Returns the set of environment variables that should be passed to the start script for the specified server
(e.g.
|
static String |
getStartScriptPrefix(ProcessInfo serverProcess,
ProcessInfo thisProcess)
Return the command line prefix that should be used when restarting the specified server process.
|
@Nullable public static File getStartScript(ProcessInfo serverParentProcess)
null.serverParentProcess - the parent process of a server (e.g. JBoss AS) processnull@Nullable public static String getStartScriptPrefix(ProcessInfo serverProcess, ProcessInfo thisProcess)
serverProcess - a server (e.g. JBoss AS) processthisProcess - this java process@NotNull public static List<String> getStartScriptArgs(ProcessInfo serverParentProcess, List<String> serverArgs, Set<CommandLineOption> optionExcludes)
serverParentProcess - the parent process of a server (e.g. JBoss AS) processserverArgs - the subset of arguments from the server (e.g. JBoss AS) process that should be used if the
parent process is not a scriptoptionExcludes - options that should be excluded from the returned arguments if the parent process is not a
script@NotNull public static Map<String,String> getStartScriptEnv(ProcessInfo serverProcess, ProcessInfo serverParentProcess, Set<String> envVarNameIncludes)
serverProcess - a server (e.g. JBoss AS) processserverParentProcess - the parent process of the server (e.g. JBoss AS) processenvVarNameIncludes - the names of the variables that should be included in the returned map, in addition to
a core set of OS-level variables (PATH, LD_LIBRARY_PATH, etc.)Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.