Package org.apache.tuscany.sca.implementation.data.collection

Examples of org.apache.tuscany.sca.implementation.data.collection.ItemCollection


            } catch (NotFoundException e) {
                return new Entry[0];
            }
           
            // Dispatch the request to that host
            ItemCollection processCollection = processCollection(host);
            return processCollection.query(queryString);
           
        } else {
            throw new UnsupportedOperationException();
        }
    }
View Full Code Here


        Entry<String, Item>[] nodeEntries = cloudCollection.getAll();

        // Dispatch to the hosts hosting these nodes
        List<Entry<String, Item>> entries = new ArrayList<Entry<String,Item>>();
        for (String host: hosts(nodeEntries)) {
            ItemCollection processCollection = processCollection(host);
            for (Entry<String, Item> remoteEntry: processCollection.getAll()) {
                entries.add(remoteEntry);
            }
            break;
        }
       
View Full Code Here

       
        // Get the host hosting the given node
        String host = host(key);
       
        // Dispatch the request to that host
        ItemCollection processCollection = processCollection(host);
        return processCollection.get(key);
    }
View Full Code Here

        } catch (NotFoundException e) {
            throw new ServiceRuntimeException(e);
        }
       
        // Dispatch the request to that host
        ItemCollection processCollection = processCollection(host);
        return processCollection.post(key, item);
    }
View Full Code Here

       
        // Get the host hosting the given node
        String host = host(key);
       
        // Dispatch the request to that host
        ItemCollection processCollection = processCollection(host);
        processCollection.delete(key);
    }
View Full Code Here

        Entry<String, Item>[] nodeEntries = cloudCollection.getAll();

        // Dispatch to the hosts hosting these nodes
        List<Entry<String, Item>> entries = new ArrayList<Entry<String,Item>>();
        for (String host: hosts(nodeEntries)) {
            ItemCollection processCollection = processCollection(host);
            for (Entry<String, Item> remoteEntry: processCollection.getAll()) {
                entries.add(remoteEntry);
            }
            break;
        }
       
View Full Code Here

       
        // Get the host hosting the given node
        String host = host(key);
       
        // Dispatch the request to that host
        ItemCollection processCollection = processCollection(host);
        return processCollection.get(key);
    }
View Full Code Here

        } catch (NotFoundException e) {
            throw new ServiceRuntimeException(e);
        }
       
        // Dispatch the request to that host
        ItemCollection processCollection = processCollection(host);
        return processCollection.post(key, item);
    }
View Full Code Here

       
        // Get the host hosting the given node
        String host = host(key);
       
        // Dispatch the request to that host
        ItemCollection processCollection = processCollection(host);
        processCollection.delete(key);
    }
View Full Code Here

            } catch (NotFoundException e) {
                return new Entry[0];
            }
           
            // Dispatch the request to that host
            ItemCollection processCollection = processCollection(host);
            return processCollection.query(queryString);
           
        } else {
            throw new UnsupportedOperationException();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.implementation.data.collection.ItemCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.