public class GridServiceContainerConfig extends Object
Constructor and Description |
---|
GridServiceContainerConfig(Map<String,String> properties) |
Modifier and Type | Method and Description |
---|---|
void |
addCommandLineArgument(String argument) |
void |
addMaximumJavaHeapSizeInMBCommandLineArgument(long maximumMemoryCapacityInMB) |
void |
addMinimumJavaHeapSizeInMBCommandLineArgument(long minimumMemoryCapacityInMB) |
boolean |
equals(Object obj) |
String[] |
getCommandLineArguments() |
Map<String,String> |
getEnvironmentVariables() |
long |
getMaximumJavaHeapSizeInMB() |
long |
getMaximumMemoryCapacityInMB() |
long |
getMinimumJavaHeapSizeInMB() |
com.gigaspaces.grid.gsa.GSProcessOptions |
getOptions() |
boolean |
getOverrideCommandLineArguments() |
Map<String,String> |
getProperties() |
com.gigaspaces.grid.gsa.GSProcessRestartOnExit |
getRestartOnExit() |
boolean |
getUseScript() |
String[] |
getZones() |
int |
hashCode() |
void |
setCommandLineArguments(String[] commandLineArguments)
Will add a JVM level argument when the process is executed using pure JVM.
|
void |
setEnvironmentVariable(String name,
String value) |
void |
setEnvironmentVariables(Map<String,String> environmentVariables)
Sets an environment variable that will be passed to forked process.
|
void |
setMaximumMemoryCapacityInMB(long memoryInMB)
Sets the total expected memory being used by this process and any subprocesses it forks
(includes java heap, non-java heap, forked processes, etc...) or 0 if undefined
|
void |
setOverrideCommandLineArguments(boolean overrideCommandLineArguments)
Will cause JVM options added using
#setCommandLineArguments(String) to override all
the vm arguments that the JVM will start by default with. |
void |
setRestartOnExit(com.gigaspaces.grid.gsa.GSProcessRestartOnExit restartOnExit) |
void |
setUseScript(boolean useScript)
Will cause the
GridServiceContainer to be started using a
script and not a pure Java process. |
public boolean getUseScript()
public void setUseScript(boolean useScript)
GridServiceContainer
to be started using a
script and not a pure Java process.public String[] getCommandLineArguments()
public void setCommandLineArguments(String[] commandLineArguments)
-Xmx512m
.public void setEnvironmentVariables(Map<String,String> environmentVariables)
public boolean getOverrideCommandLineArguments()
public void setOverrideCommandLineArguments(boolean overrideCommandLineArguments)
#setCommandLineArguments(String)
to override all
the vm arguments that the JVM will start by default with.public long getMaximumJavaHeapSizeInMB()
public long getMinimumJavaHeapSizeInMB()
public void addMaximumJavaHeapSizeInMBCommandLineArgument(long maximumMemoryCapacityInMB)
public void addMinimumJavaHeapSizeInMBCommandLineArgument(long minimumMemoryCapacityInMB)
public long getMaximumMemoryCapacityInMB()
public void setMaximumMemoryCapacityInMB(long memoryInMB)
public String[] getZones()
public void addCommandLineArgument(String argument)
public com.gigaspaces.grid.gsa.GSProcessRestartOnExit getRestartOnExit()
public void setRestartOnExit(com.gigaspaces.grid.gsa.GSProcessRestartOnExit restartOnExit)
public com.gigaspaces.grid.gsa.GSProcessOptions getOptions()
Copyright © GigaSpaces.