GigaSpaces XAP 10.0.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.
 boolean equals(Object other)
           
 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 restartOnExit(com.gigaspaces.grid.gsa.GSProcessRestartOnExit restartOnExit)
          Sets the agent policy for be restart the container on exit.
 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, 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.


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

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.