public class GFLauncherInfo extends Object
Modifier and Type | Method and Description |
---|---|
void |
addArgs(String... args)
Add the string arguments in the order given.
|
void |
addSecurityToken(String name,
String value)
Adds the given name value pair as a security token.
|
List<HostAndPort> |
getAdminAddresses() |
Map<String,String> |
getArgs() |
List<String> |
getArgsAsList() |
String[] |
getArgsAsStringArray()
TEMPORARY.
|
File |
getConfigDir() |
File |
getConfigFile() |
String |
getDomainName() |
File |
getDomainRootDir() |
String |
getInstanceName() |
File |
getInstanceRootDir() |
File |
getPostbootCommandsFile()
Returns the file that contains the commands to be executed postboot
|
File |
getPrebootCommandsFile() |
RuntimeType |
getType() |
boolean |
isDebug() |
boolean |
isDomain() |
boolean |
isDropInterruptedCommands() |
boolean |
isInstance() |
boolean |
isUpgrade() |
boolean |
isVerbose() |
boolean |
isWatchdog() |
void |
setDebug(boolean b)
Starts the server in debug mode
|
void |
setDomainName(String domainName)
Set the (optional) domain name.
|
void |
setDomainParentDir(String domainParentName)
Set the (optional) domain parent directory.
|
void |
setDomainRootDir(File f) |
void |
setDropInterruptedCommands(boolean dropInterruptedCommands) |
void |
setInstanceName(String name) |
void |
setInstanceRootDir(File f) |
void |
setpostbootCommandsFile(File file)
Sets the file containing commands to be run postboot.
|
void |
setpostbootCommandsFile(String file)
Sets the file containing commands to be run postboot.
|
void |
setPrebootCommandsFile(String file)
Sets the file containing commands to be run preboot.
|
void |
setRespawnInfo(String classname,
String classpath,
String[] args) |
void |
setUpgrade(boolean b)
Starts the server in upgrade mode
|
void |
setVerbose(boolean b)
Starts the server in verbose mode
|
void |
setWatchdog(boolean b)
Starts the server in watchdog mode.
|
public void addArgs(String... args)
args
- The string argumentspublic void setPrebootCommandsFile(String file)
file
- public void setpostbootCommandsFile(File file)
file
- public void setpostbootCommandsFile(String file)
file
- public void setDomainName(String domainName)
domainName
- public void setDomainParentDir(String domainParentName)
domainParentName
- The parent directory of the domainpublic void setVerbose(boolean b)
b
- public void setWatchdog(boolean b)
b
- public void setDebug(boolean b)
b
- public void setUpgrade(boolean b)
b
- public void setDomainRootDir(File f)
public void setInstanceName(String name)
public void setInstanceRootDir(File f)
public void setDropInterruptedCommands(boolean dropInterruptedCommands)
public final boolean isDomain()
public final boolean isInstance()
public boolean isVerbose()
public boolean isWatchdog()
public boolean isDebug()
public boolean isUpgrade()
public String getDomainName()
public File getPrebootCommandsFile()
public File getPostbootCommandsFile()
public File getConfigFile()
public File getDomainRootDir()
public String getInstanceName()
public List<HostAndPort> getAdminAddresses()
public RuntimeType getType()
public File getConfigDir()
public File getInstanceRootDir() throws GFLauncherException
GFLauncherException
public boolean isDropInterruptedCommands()
public String[] getArgsAsStringArray() throws GFLauncherException
GFLauncherException
public List<String> getArgsAsList() throws GFLauncherException
GFLauncherException
public Map<String,String> getArgs() throws GFLauncherException
GFLauncherException
public void addSecurityToken(String name, String value)
name
- String representing name of the tokenvalue
- String representing the value (should we call it a password?)NullPointerException
- if any of the parameters are nullCopyright © 2018. All rights reserved.