Package rice.pastry.leafset

Examples of rice.pastry.leafset.LeafSet


  public void sendDirect(String nodeId, Message message) {
    if (nodeId == null) {
      throw new IllegalArgumentException("nodeId cannot be null");
    }
    LeafSet leafSet = node.getLeafSet();
    List leaves = leafSet.asList();
    boolean found = false;
    int size = leaves.size();
    for (int i = 0; i < size; i++) {
      NodeHandle nh = (NodeHandle) leaves.get(i);
      if (nodeId.equalsIgnoreCase(nh.getId().toStringFull())) {
View Full Code Here

TOP

Related Classes of rice.pastry.leafset.LeafSet

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.