Class Example4a


public class Example4a
extends java.lang.Object

This class demonstrates the use of T Spaces to comunicate application defined objects using FieldPS instead of Field to specify the field in the Tuple. We will define a class "Example4Obj" and send it to the server using FieldPS to hold the value of Example4Obj. Under the covers on the client the value of Example3Obj will be serialized into an array of bytes and the byte[] value will be sent to the server. Now it does not matter if the server has a class definition for Example4Obj because it only sees the byte[] object. When a client, this one or any other, then reads back the tuple and retrieves the value, the byte array will automatically be deserialized. Of course, this means that the client must have a valid version of the Example4Obj class available.

John Thomas
See Also:
FieldPS, Field, Serializable

Constructor Summary
Method Summary
 void init()
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


public Example4a()
Method Detail


public void init()


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