Class GridServiceContainerOptions

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

public class GridServiceContainerOptions extends Object
GridServiceContainer process options to be started by the GridServiceAgent.
Author:
kimchy
See Also:
  • Constructor Details

    • GridServiceContainerOptions

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

    • 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.
    • vmInputArguments

      public GridServiceContainerOptions vmInputArguments(Collection<String> vmInputArguments)
      Will add a JVM level arguments 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.
    • restartOnExit

      public GridServiceContainerOptions restartOnExit(com.gigaspaces.grid.gsa.GSProcessRestartOnExit restartOnExit)
      Sets the agent policy for be restart the container on exit.
    • getOptions

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • builder

      public static GridServiceContainerOptions.Builder builder()