GigaSpaces XAP 9.0 API

org.openspaces.admin.gsa
Class ElasticServiceManagerOptions

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

public class ElasticServiceManagerOptions
extends Object

ElasticServiceManager process options to be started by the GridServiceAgent.

Author:
Moran Avigdor
See Also:
GridServiceAgent.startGridService(ElasticServiceManagerOptions)

Constructor Summary
ElasticServiceManagerOptions()
          Constructs a new elastic service manager options.
 
Method Summary
 ElasticServiceManagerOptions 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 ESM options.
 ElasticServiceManagerOptions overrideVmInputArguments()
          Will cause JVM options added using vmInputArgument(String) to override all the vm arguments that the JVM will start by default with.
 ElasticServiceManagerOptions useScript()
          Will cause the ElasticServiceManager to be started using a script and not a pure Java process.
 ElasticServiceManagerOptions 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

ElasticServiceManagerOptions

public ElasticServiceManagerOptions()
Constructs a new elastic service manager options. By default will use JVM process execution.

Method Detail

useScript

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


overrideVmInputArguments

public ElasticServiceManagerOptions 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 ElasticServiceManagerOptions 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 ElasticServiceManagerOptions 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 ESM options.


GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.