|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides access to the service that manages indexes of pictures. Methods defined in this interface are supposed to allow insertion of new picture entries into an existing index of picture entries.
Entries in the index that have the same URL and picture name as a given entry should be replaced by the given one by any implementing service. Implementing classes need to synchronize with services that perform searches on the index in order to prevent inconsistencies.
A good strategy is to create a service that implements both
PicsFinder
and PicsIndex
.
This service should be wrapped into two additional services
serving as proxys. One proxy should implement PicsFinder and
the other one should implement PicsIndex. The proxys then may
be registered on the appropriate service levels such that
only privileged agents can access the PicsIndex while any
search agent can access the PicsFinder.
Method Summary | |
void |
delete(Iterator entries)
Deletes the given picture entries
from the picture index. |
void |
put(Iterator entries)
Inserts the given picture entries
into the existing index. |
Method Detail |
public void put(Iterator entries) throws IOException
picture entries
into the existing index. The distance value is ignored
but all other fields should be provided.
Implementations should implement an atomic transaction
for updating the index file. If an IOException
is thrown then the general contract is that the
index file remains unmodified.
entries
- The iterator that iterates over the picture entries
that shall be inserted into
the index.
IOException
public void delete(Iterator entries) throws IOException
picture entries
from the picture index. Only the name and URL fields
of the pictures to be removed need to be present in
the entries.
Implementations should implement an atomic transaction
for updating the index file. If an IOException
is thrown then the general contract is that the
index file remains unmodified.
entries
- The iterator that iterates over the picture entries
that shall be deleted from
the index.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |