dsukhoroslov / bagri

XML/Document DB on top of distributed cache
Apache License 2.0
41 stars 5 forks source link

[Core] add ability to run generic distributed tasks on documents #153

Open dsukhoroslov opened 6 years ago

dsukhoroslov commented 6 years ago

add methods to DocumentManagement interface:

    <T> T executeOnDocument(String uri, Callable<T> f, Properties props) throws BagriException;
    <T> ResultCursor<T> executeOnDocuments(Collection<String> uris, Callable<T> f, Properties props) throws BagriException;

also can add two more methods to run EntryProcessors. But it must be some standard interface, unrelated to HZ lib.

Implementation of the tasks passed by client to the methods must be supplied by client via registered in Bagri libraries.