Summary: Creating a space using Space Url

Overview

A space is created using SpaceProxyProviderFactory.FindSpace and a Space Url. The difference between creating a space and finding a space is the space url that is used in conjuction with the SpaceProxyProviderFactory.FindSpace method, once the space is created an ISpaceProxy to that space is returned.

Embedded Space

Embedded space refers to a space that coexists with the proxy in the same process, creation of a space always refers to creating an embedded space. When a space starts it is registered with in a specific lookup group, this space will be found when a space of that name is being looked for with the same lookup group.

The following code creates an embedded space with lookup group named myGroup and returns a proxy to that embedded space:

ISpaceProxy proxy = SpaceProxyProviderFactory.Instance.FindSpace("/./mySpace?groups=myGroup");

Let's examine the space url that is used to create this space:
"/./mySpace?groups=myGroup"

/./ - Indicates construction url, lookup is done in process without a lookup service.
mySpace - The space name.
groups=myGroup - Search for spaces that are registered under the lookup groups named "myGroup".

If a space of that name already exists in process, a proxy to that space will be returned and no other space will be created.

For details about space url refer to Space Url page.

GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence