Summary: Finding a space or a cluster of spaces using Space Url
OverviewFinding a space refers to creating an ISpaceProxy to a space or a cluster of spaces. Lookup ProcessThe space lookup process has two main approaches
MulticastThe most commonly used is the multicast which searches in the network for lookup services (Each space is usally started with an embedded lookup service), and is usally used in conjuctions with a lookup group. The following code find a space named mySpace with lookup group named myGroup and returns a proxy to that space: ISpaceProxy proxy = SpaceProxyProviderFactory.Instance.FindSpace("jini://*/*/mySpace?groups=myGroup");
Let's examine the space url that is used to find this space: jini:/ - Indicates jini protocol which is used to find spaces.
UnicastUnicast is using a specific lookup service, when using unicast lookup groups are ignored, which means if two spaces are registered within the lookup service under the same name but different lookup group, either one is a legitimet result. This behavior can be very confusing and therefore using unicast is discouraged.T ISpaceProxy proxy = SpaceProxyProviderFactory.Instance.FindSpace("jini://localhost:10098/*/mySpace");
Remote and Embedded SpaceWhen creating a proxy to a space there are two possible scenario:
This property of the proxy can be retrieved from ISpaceProxy.Embedded property. |
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |