grinda.client
Class TupleSpaceFactory

java.lang.Object
  extended by grinda.client.TupleSpaceFactory

public class TupleSpaceFactory
extends java.lang.Object

Used to communicate to the real service. Clients will typically use this class to get an instance of a Tuple Space as showed by the following example code: TupleSpaceFactory tsf=new TupleSpaceFactory(url); TupleSpace ts=tsf.getTupleSpace("my space)"; ... do something interesting with the space ...


Constructor Summary
TupleSpaceFactory()
          Creates a factory instance that uses the specified service
TupleSpaceFactory(java.lang.String serviceAddress)
          Creates a factory instance that uses the specified service
TupleSpaceFactory(java.net.URL serviceAddress)
          Creates a factory instance that uses the specified service
 
Method Summary
protected  void finalize()
           
 TupleSpace getTupleSpace(java.lang.String name)
          Create a tuple space instance used to communicate with the real service.
 TupleSpace getTupleSpace(java.lang.String name, TupleSpaceConfigurationParameter[] params)
          Create a tuple space instance used to communicate with the real service.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleSpaceFactory

public TupleSpaceFactory()
                  throws java.net.MalformedURLException,
                         java.net.UnknownHostException
Creates a factory instance that uses the specified service

Parameters:
serviceAddress - the address of the tuple space service to use
Throws:
java.net.MalformedURLException
java.net.UnknownHostException

TupleSpaceFactory

public TupleSpaceFactory(java.lang.String serviceAddress)
                  throws java.net.MalformedURLException
Creates a factory instance that uses the specified service

Parameters:
serviceAddress - the address of the tuple space service to use
Throws:
java.net.MalformedURLException

TupleSpaceFactory

public TupleSpaceFactory(java.net.URL serviceAddress)
Creates a factory instance that uses the specified service

Parameters:
serviceAddress - the address of the tuple space service to use
Throws:
java.net.MalformedURLException
Method Detail

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

getTupleSpace

public TupleSpace getTupleSpace(java.lang.String name,
                                TupleSpaceConfigurationParameter[] params)
                         throws java.lang.Exception
Create a tuple space instance used to communicate with the real service.

Parameters:
name - the name fo the tuple space
params - configuration parameters for the TupleSpace
Returns:
the tuple space instance
Throws:
java.lang.Exception

getTupleSpace

public TupleSpace getTupleSpace(java.lang.String name)
                         throws java.lang.Exception
Create a tuple space instance used to communicate with the real service.

Parameters:
name - the name fo the tuple space
Returns:
the tuple space instance
Throws:
java.lang.Exception


Copyright © 2006 Sirio Capizzi. All Rights Reserved.