Class GFLauncherInfo
java.lang.Object
com.sun.enterprise.admin.launcher.GFLauncherInfo
- Author:
- Byron Nevins
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the string arguments in the order given.voidaddSecurityToken(String name, String value) Adds the given name value pair as a security token.List<com.sun.enterprise.util.HostAndPort>getArgs()String[]TEMPORARY.org.glassfish.api.admin.RuntimeTypegetType()booleanisDebug()final booleanisDomain()booleanfinal booleanbooleanbooleanbooleanbooleanvoidsetDebug(boolean b) Starts the server in debug modevoidsetDomainName(String domainName) Set the (optional) domain name.voidsetDomainParentDir(String domainParentName) Set the (optional) domain parent directory.voidvoidsetDropInterruptedCommands(boolean dropInterruptedCommands) voidsetInstanceName(String name) voidvoidsetRespawnInfo(String classname, String classpath, String[] args) voidsetSuspend(boolean suspend) Starts the server in suspended debug modevoidsetUpgrade(boolean b) Starts the server in upgrade modevoidsetVerbose(boolean b) Starts the server in verbose modevoidsetWatchdog(boolean b) Starts the server in watchdog mode.
-
Method Details
-
addArgs
Add the string arguments in the order given.- Parameters:
args- The string arguments
-
setDomainName
Set the (optional) domain name. This can also be sent in as a String arg like so: "-domainname" "theName"- Parameters:
domainName-
-
setDomainParentDir
Set the (optional) domain parent directory. This can also be sent in as a String arg like so: "-domaindir" "parentDirPath"- Parameters:
domainParentName- The parent directory of the domain
-
setVerbose
public void setVerbose(boolean b) Starts the server in verbose mode- Parameters:
b-
-
setWatchdog
public void setWatchdog(boolean b) Starts the server in watchdog mode. This is only useful if verbose is false. It does the same thing as verbose -- except without the dumping of output to standard out and err streams.- Parameters:
b-- Since:
- 3.2
-
setDebug
public void setDebug(boolean b) Starts the server in debug mode- Parameters:
b-
-
isDebug
public boolean isDebug()- Returns:
- true if debug mode is on.
-
setSuspend
public void setSuspend(boolean suspend) Starts the server in suspended debug mode- Parameters:
suspend-
-
isSuspend
public boolean isSuspend()- Returns:
- true if suspend debug mode is on.
-
setUpgrade
public void setUpgrade(boolean b) Starts the server in upgrade mode- Parameters:
b-
-
setDomainRootDir
-
setInstanceName
-
setInstanceRootDir
-
setDropInterruptedCommands
public void setDropInterruptedCommands(boolean dropInterruptedCommands) -
isDomain
public final boolean isDomain() -
isInstance
public final boolean isInstance() -
isVerbose
public boolean isVerbose()- Returns:
- true if verbose mode is on.
-
isWatchdog
public boolean isWatchdog()- Returns:
- true if watchdog mode is on.
-
isUpgrade
public boolean isUpgrade()- Returns:
- true if upgrade mode is on.
-
getDomainName
- Returns:
- The domain name
-
getConfigFile
-
getDomainRootDir
-
getInstanceName
-
getAdminAddresses
-
getType
public org.glassfish.api.admin.RuntimeType getType() -
getConfigDir
-
getInstanceRootDir
- Throws:
GFLauncherException
-
isDropInterruptedCommands
public boolean isDropInterruptedCommands() -
getArgsAsStringArray
TEMPORARY. The guts of HK2 and V3 bootstrapping wants String[] -- this will be changed soon, but it is messy to change it right now. so temporarily we will humor HK2 by sending in String[]- Returns:
- an array of String arguments
- Throws:
GFLauncherException
-
getArgsAsList
- Throws:
GFLauncherException
-
getArgs
- Returns:
- a Map<String,String> of processed and packaged args
- Throws:
GFLauncherException
-
setRespawnInfo
-
addSecurityToken
Adds the given name value pair as a security token. This is what will be put on the launched process's stdin to securely pass it on. The value is accepted as a String and it may be insecure. A string formed by concatenating name, '=' and value is written to the stdin as a single line delimited by newline character. To get the value of the token, the server should parse the line knowing this. None of the parameters may be null.- Parameters:
name- String representing name of the tokenvalue- String representing the value (should we call it a password?)- Throws:
NullPointerException- if any of the parameters are null
-