com.ibm.tspaces.examples.simple
Class Example5

java.lang.Object
  |
  +--com.ibm.tspaces.examples.simple.Example5

public class Example5
extends java.lang.Object
implements AclFactory.DefaultPermissions

This class is similar to Example1 but it specifies AccessControl and Configuration information when it creates the TupleSpace. Create a TupleSpace object for a TupleSpace named "Example5" at the Host specified as the 1st operand. (default localhost) - If this space does not already exist, it will be created. - We will specify that the Space should be made persistant - We will specify the groups/users that can read or write to the space. Write 2 tuples to "Example5" that each consists of 2 strings. "Key1" "Data1" "Key2" "Data2" First we read one of the tuples back This should work. Next we take (which reads and removes) a tuple which is selected based on the contents of the first field. This will fail because the user only had Read authority. It is setup so one can play with different userid and password combinations by specifing the host, TS name, userid and Passord on the command line.

Author:
John Thomas
See Also:
TupleSpace

Fields inherited from interface com.ibm.tspaces.ac.AclFactory.DefaultPermissions
P_ADMIN, P_ALL, P_CREATE, P_READ, P_RW, P_RWC, P_WRITE
 
Constructor Summary
Example5()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Example5

public Example5()
Method Detail

main

public static void main(java.lang.String[] argv)