TOC, 1, 2, 3, 4

3) MULTIPLE PARADISE SERVERS

3.1) Can a paradise tuple space be distributed across multiple Paradise servers?


No, not yet. Currently, Paradise servers are completely independent processes. In the future, there will probably be some kind of coordination between servers, perhaps using a master/slave
relationship.

3.2) How do I access two Paradise servers from a single Paradise client?


Get tuple space handles that point to different Paradise servers.

3.3) How do I get tuple space handles that point to the root tuple space of different Paradise servers?


The following program will open the default root tuple space handle, but also handles to Paradise servers running on a set of different hosts:

  #include <paradise.h>
		  #define NHOSTS 3
		   char buf[1024];
		   char *h[NHOSTS] = { "host1", "host2", "host3" };

		   int main()
		  {
		     int i;
		    TSHANDLE save, r[NHOSTS];

		     save = rootts;
		     open @ rootts();

		     for (i = 0; i < NHOSTS; i++) {
		        sprintf(buf, "PARADISE_HOST=", h[i]);
		        putenv(buf);
		        r[i] = save;
		        open @ (r[i])();
		     }
		  }


TOC, 1, 2, 3, 4

 
Copyright © 2024 Scientific Computing Associates, Inc.