Package chord

Examples of chord.Peer


     * @throws RemoteException
     */
    @Override
    public Peer getPeer(String restaurant) throws RemoteException
    {
        Peer peer = this.tracker.getRandomPeer();
        if(peer.get(restaurant) != null)
        {
            return peer;
        }else if(peer.getReplicat(restaurant) != null)
        {
            return peer;
        }else return peer.findSuccessor(new Key(restaurant));
    }
View Full Code Here

TOP

Related Classes of chord.Peer

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.