GigaSpaces XAP 7.1 API

org.openspaces.admin.gsa
Class GridServiceContainerOptions

java.lang.Object
  extended by org.openspaces.admin.gsa.GridServiceContainerOptions

public class GridServiceContainerOptions
extends Object

GridServiceContainer process options to be started by the GridServiceAgent.

Author:
kimchy
See Also:
GridServiceAgent.startGridService(GridServiceContainerOptions)

Constructor Summary
GridServiceContainerOptions()
          Constructs a new grid service container options.
 
Method Summary
 GridServiceContainerOptions environmentVariable(String name, String value)
          Sets an environment variable that will be passed to forked process.
 com.gigaspaces.grid.gsa.GSProcessOptions getOptions()
          Returns the agent process options that represents what was set on this GSC options.
 GridServiceContainerOptions overrideVmInputArguments()
          Will cause JVM options added using vmInputArgument(String) to override all the vm arguments that the JVM will start by default with.
 GridServiceContainerOptions useScript()
          Will cause the GridServiceContainer to be started using a script and not a pure Java process.
 GridServiceContainerOptions vmInputArgument(String vmInputArgument)
          Will add a JVM level argument when the process is executed using pure JVM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridServiceContainerOptions

public GridServiceContainerOptions()
Constructs a new grid service container options. By default will use JVM process execution.

Method Detail

useScript

public GridServiceContainerOptions useScript()
Will cause the GridServiceContainer to be started using a script and not a pure Java process.


overrideVmInputArguments

public GridServiceContainerOptions overrideVmInputArguments()
Will cause JVM options added using vmInputArgument(String) to override all the vm arguments that the JVM will start by default with.


vmInputArgument

public GridServiceContainerOptions vmInputArgument(String vmInputArgument)
Will add a JVM level argument when the process is executed using pure JVM. For example, the memory can be controlled using -Xmx512m.


environmentVariable

public GridServiceContainerOptions environmentVariable(String name,
                                                       String value)
Sets an environment variable that will be passed to forked process.


getOptions

public com.gigaspaces.grid.gsa.GSProcessOptions getOptions()
Returns the agent process options that represents what was set on this GSC options.


GigaSpaces XAP 7.1 API

Copyright © GigaSpaces.