space create - GigaSpaces CLI

  Search Here
Searching XAP 6.0 Documentation

                                               

Summary: Makes a space active on one or more machines.

Syntax

gs> space create [variable [value]]

Description

Makes a space active on one or more machines.

A space can be memory-based or persistent-based (memory space). A memory space keeps all its data in virtual memory and loses all data when it shuts down, whether normally or abnormally - unless it is clustered. A persistent space keeps its data in a persistent backend and can therefore survive crashes.

The gsInstance command loads a space container, one space, an embedded Reggie, and an embedded Webster. You can also enable an embedded Mahalo. For more details, see the [gsInstance] section.

Options

Option Description Value Format
url The URL of the container under which you want to create the space – mandatory option. jini://localhost/my_container
name The space name – mandatory option. mySpace – the space name can not include spaces.
schema Creates a space using a specific schema. cache
properties The name of the properties file used to overwrite default configuration properties. For more details, refer to the System Environment section. gs
cluster / c Creates a clustered space, using the path leading to the static cluster configuration file. <GigaSpaces Root>\config\myCluster.xml
persistent / p Creates a persistent space using the GenericPersistentAdapter or the JDBCStorageAdapter. com.j_spaces.sadapter.GenericPA.GenericPersistentAdapter
<GigaSpaces Root>\GenericPersistProperties – after the GenericPersistentAdapter class, specify your <GigaSpaces Root> directory, followed by the GenericPersistProperties directory.

com.j_spaces.sadapter.GenericJDBC.JDBCStorageAdapter /GenericJDBCProperties/HSQLProperties – after the JDBCStorageAdapter class, specify /GenericJDBCProperties/HSQLProperties (no need to specify the <GigaSpaces Root> directory).
help / h Prints help – the command's usage and options.  

Example

Creating a space named mySpace using the cache-space-schema.xml file:

space create -url jini://localhost/my_container -name mySpace -schema cache

Creating a clustered space named mySpace, using the gs.properties file:

space create -url jini://localhost/my_container -name mySpace -properties gs 
-c <GigaSpaces Root>\config\myCluster.xml

Creating a persistent space named mySpace using the GenericPersistentAdapter class:

space create -url jini://evgeny-lt/mySpace_container -name mySpace -p com.j_spaces.sadapter.GenericPA.GenericPersistentAdapter
<GigaSpaces Root>\GenericPersistProperties

Creating a persistent space named mySpace using the JDBCStorageAdapter class:

space create -url jini://evgeny-lt/mySpace_container -name mySpace 
-p com.j_spaces.sadapter.GenericJDBC.JDBCStorageAdapter /GenericJDBCProperties/HSQLProperties


GigaSpaces 6.0 Documentation Contents (Current Page in Bold)

    Java

    C++

    .NET

    Middleware Capabilities

    Configuration and Management

Add GigaSpaces wiki search to your browser search engines!
(works on Firefox 2 and Internet Explorer 7)

Labels

 
(None)