|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.isam.exehda.services.cc.HashTreeSpace
This class implements a tuple space using a hash tree for the first hashlevel levels and then linked lists to store the tuples.
Field Summary | |
(package private) int |
hashlevel
number of hashtree levels to be used |
Constructor Summary | |
HashTreeSpace(int hashlevel,
java.lang.String name)
Builds a hash tree space that will be at most hashlevel
height, above which linked lists will be used for leaf nodes; |
Method Summary | |
void |
put(CCManager.Tuple t)
Inserts the given tuple into the space. |
CCManager.Tuple |
read(CCManager.Tuple pattern,
long timeout)
Gets a tuple that matches the given pattern from the tuple space. |
CCManager.Tuple |
take(CCManager.Tuple pattern,
long timeout)
Gets a tuple that matches the given pattern from the TupleSpace. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
int hashlevel
Constructor Detail |
public HashTreeSpace(int hashlevel, java.lang.String name)
hashlevel
height, above which linked lists will be used for leaf nodes;
hashlevel
- an int
valuename
- a String
valueMethod Detail |
public CCManager.Tuple take(CCManager.Tuple pattern, long timeout)
pattern
- the pattern to which the returned tuple must adhere.
public CCManager.Tuple read(CCManager.Tuple pattern, long timeout)
pattern
- the pattern to which the returned tuple must adhere.
public void put(CCManager.Tuple t)
t
- a Tuple
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |