|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.resolver.AdvertisementCache
Constructor Summary | |
AdvertisementCache()
AdvertisementCache is used by resolver/discovery to store Advertisements of all types |
Method Summary | |
void |
checkPoint(java.lang.String filename)
Checkpoint the cache to disk This method should be used at the very most once, and at shutdown until it is improved it should be utilized differently |
void |
flush()
flush cache. |
net.jxta.id.ID |
get(java.lang.String id)
given the doc ID get returns the document associated with it |
void |
initialize(java.lang.String filename)
Initialize the cache from a checkpoint this method should only be used during boot |
java.util.Enumeration |
iterate()
Returns all the keys in the cache |
net.jxta.document.Advertisement |
readAdvertisement(java.lang.String filename)
Convenience method to aid in the functionality of reverse discovery One example of reverse discovery is peer invitation where a node would somehow get it's advertisement to another node, via e-mail etc. |
void |
remove(java.lang.String key)
remove an entry from cache, this useful in invalidating an advertisement |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AdvertisementCache()
Method Detail |
public void remove(java.lang.String key)
key
- public java.util.Enumeration iterate()
public net.jxta.id.ID get(java.lang.String id)
id
- public void flush()
public void checkPoint(java.lang.String filename) throws java.io.IOException
filename
- public void initialize(java.lang.String filename) throws java.lang.ClassNotFoundException, java.io.IOException
filename
- public net.jxta.document.Advertisement readAdvertisement(java.lang.String filename) throws java.io.IOException
filename
-
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |