|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.directory.FlatDirectory
A flat directory is a hashtable with name strands as the keys. TODO: name expiration
Nested Class Summary | |
(package private) class |
FlatDirectory.NameInfo
|
Field Summary | |
protected java.util.Hashtable |
_directory
|
Constructor Summary | |
FlatDirectory()
Constructs an empty flat name space. |
Method Summary | |
void |
addListener(Name pattern,
DirectoryListener listener)
Add a directory observer for the specified pattern. |
NameRecord |
advertise(Name name,
NameRecord rec)
Advertise a name to the name space. |
private java.util.List |
getAttributes(NameNode node)
|
java.util.List |
lookup(Name pattern)
Return a list of advertisement whose name matches the pattern. |
private Name |
mergeStrands(java.util.Set strands)
|
void |
removeListener(Name pattern,
DirectoryListener listener)
Remove a directory observer for the specified pattern. |
NameRecord |
unadvertise(Name name,
NameRecord rec)
Unadvertise a name from the name space. |
NameRecord |
update(Name oldname,
NameRecord oldrec,
Name newname,
NameRecord newrec)
Update a name advertisement in the name space. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Hashtable _directory
Constructor Detail |
public FlatDirectory()
Method Detail |
public void addListener(Name pattern, DirectoryListener listener)
Directory
addListener
in interface Directory
public void removeListener(Name pattern, DirectoryListener listener)
Directory
removeListener
in interface Directory
public java.util.List lookup(Name pattern)
Directory
lookup
in interface Directory
private Name mergeStrands(java.util.Set strands)
private java.util.List getAttributes(NameNode node)
public NameRecord advertise(Name name, NameRecord rec)
Directory
advertise
in interface Directory
public NameRecord unadvertise(Name name, NameRecord rec)
Directory
unadvertise
in interface Directory
public NameRecord update(Name oldname, NameRecord oldrec, Name newname, NameRecord newrec)
Directory
update
in interface Directory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |