|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object grinda.client.TupleSpaceFactory
public class TupleSpaceFactory
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 |
---|
public TupleSpaceFactory() throws java.net.MalformedURLException, java.net.UnknownHostException
serviceAddress
- the address of the tuple space service to use
java.net.MalformedURLException
java.net.UnknownHostException
public TupleSpaceFactory(java.lang.String serviceAddress) throws java.net.MalformedURLException
serviceAddress
- the address of the tuple space service to use
java.net.MalformedURLException
public TupleSpaceFactory(java.net.URL serviceAddress)
serviceAddress
- the address of the tuple space service to use
java.net.MalformedURLException
Method Detail |
---|
protected void finalize()
finalize
in class java.lang.Object
public TupleSpace getTupleSpace(java.lang.String name, TupleSpaceConfigurationParameter[] params) throws java.lang.Exception
name
- the name fo the tuple spaceparams
- configuration parameters for the TupleSpace
java.lang.Exception
public TupleSpace getTupleSpace(java.lang.String name) throws java.lang.Exception
name
- the name fo the tuple space
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |