public class JavaArguments extends Object
| Constructor and Description | 
|---|
JavaArguments()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o) | 
String[] | 
getAdditionalArguments()
Returns the additional arguments to be used when executing the
 command-line. 
 | 
int | 
getInitialMemory()
Returns the initial memory allowed to execute the command-line. 
 | 
static String | 
getInitialMemoryArgument(int value)
Returns the java argument to specify the initial memory to be used. 
 | 
static String | 
getInitialMemoryGenericArgument()
Returns a generic initial memory argument (to be used in messages). 
 | 
int | 
getMaxMemory()
Returns the maximum memory allowed to execute the command-line. 
 | 
static String | 
getMaxMemoryArgument(int value)
Returns the java argument to specify the maximum memory that can be used. 
 | 
static String | 
getMaxMemoryGenericArgument()
Returns a generic maximum memory argument (to be used in messages). 
 | 
static LocalizableMessage | 
getMessage(JavaArguments javaArguments,
                    JavaArguments defaultJavaArguments)
Returns the message in HTML format to be used in a representing a
 java arguments object. 
 | 
static LocalizableMessage | 
getMessageForJLabel(JavaArguments javaArguments,
                                      JavaArguments defaultJavaArguments,
                                      Font font)
Returns the message in HTML format to be used in a JLabel representing a
 java arguments object. 
 | 
String | 
getStringArguments()
Returns a String representation of the arguments (the String that must
 be passed when invoking java). 
 | 
int | 
hashCode() | 
void | 
setAdditionalArguments(String[] additionalArguments)
Sets the additional arguments to be used when executing the
 command-line. 
 | 
void | 
setInitialMemory(int initialMemory)
Sets the initial memory allowed to execute the command-line. 
 | 
void | 
setMaxMemory(int maxMemory)
Sets the maximum memory allowed to execute the command-line. 
 | 
String | 
toString() | 
public JavaArguments()
public int getMaxMemory()
public void setMaxMemory(int maxMemory)
maxMemory - the maximum memory allowed to execute the command-line.public int getInitialMemory()
public void setInitialMemory(int initialMemory)
initialMemory - the initial memory allowed to execute the
 command-line.public String[] getAdditionalArguments()
public void setAdditionalArguments(String[] additionalArguments)
additionalArguments - the additional arguments to be used when
 executing the command-line.  It cannot be null.public static LocalizableMessage getMessageForJLabel(JavaArguments javaArguments, JavaArguments defaultJavaArguments, Font font)
javaArguments - the java arguments to be represented.defaultJavaArguments - the default values for the java arguments.font - the font to be used.public static LocalizableMessage getMessage(JavaArguments javaArguments, JavaArguments defaultJavaArguments)
javaArguments - the java arguments to be represented.defaultJavaArguments - the default values for the java arguments.public String getStringArguments()
public static String getInitialMemoryArgument(int value)
value - the value in megabytes to be specified.public static String getInitialMemoryGenericArgument()
public static String getMaxMemoryArgument(int value)
value - the value in megabytes to be specified.public static String getMaxMemoryGenericArgument()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.