grinda.impl.tuplespace
Class TupleSpace

java.lang.Object
  extended by grinda.impl.tuplespace.TupleSpace

public class TupleSpace
extends java.lang.Object

This is the standard TupleSpace implementation. Warning: the methods that operate on this object are NOT synchronized. The implementor must provide the synchronization through the readLock and writeLock methods.


Constructor Summary
TupleSpace(java.lang.String name)
          Creates a new TupleSpace
TupleSpace(java.lang.String name, BlockingOperationProvider p)
           
 
Method Summary
 java.lang.String getName()
          Gets the name of thi tuple space
 boolean isEmpty()
           
 InternalTuple read(InternalTuple t)
           
 InternalTuple[] readAll(InternalTuple t)
           
 void setBlockingOperationProvider(BlockingOperationProvider p)
           
 int size()
           
 InternalTuple take(InternalTuple t)
           
 InternalTuple take(InternalTuple t, URI client)
           
 InternalTuple[] takeAll(InternalTuple t)
           
 void write(InternalTuple t)
          Inserts a InternalTuple in the space
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleSpace

public TupleSpace(java.lang.String name)
Creates a new TupleSpace

Parameters:
name - the name

TupleSpace

public TupleSpace(java.lang.String name,
                  BlockingOperationProvider p)
Method Detail

setBlockingOperationProvider

public void setBlockingOperationProvider(BlockingOperationProvider p)

getName

public java.lang.String getName()
Gets the name of thi tuple space

Returns:
the name

write

public void write(InternalTuple t)
Inserts a InternalTuple in the space

Parameters:
t - the InternalTuple

take

public InternalTuple take(InternalTuple t,
                          URI client)

take

public InternalTuple take(InternalTuple t)

read

public InternalTuple read(InternalTuple t)

takeAll

public InternalTuple[] takeAll(InternalTuple t)

readAll

public InternalTuple[] readAll(InternalTuple t)

isEmpty

public boolean isEmpty()

size

public int size()


Copyright © 2006 Sirio Capizzi. All Rights Reserved.