Examples of VBucketNodeLocator


Examples of net.spy.memcached.vbucket.VBucketNodeLocator

    assert o.isCancelled() || placeIn != null
      : "No node found for key " + key;
    if(placeIn != null) {
      // add the vbucketIndex to the operation
      if (locator instanceof VBucketNodeLocator) {
        VBucketNodeLocator vbucketLocator = (VBucketNodeLocator) locator;
        int vbucketIndex = vbucketLocator.getVBucketIndex(key);
        if (o instanceof VBucketAware) {
          VBucketAware vbucketAwareOp = (VBucketAware) o;
          vbucketAwareOp.setVBucket(vbucketIndex);
          if (!vbucketAwareOp.getNotMyVbucketNodes().isEmpty()) {
            MemcachedNode alternative = vbucketLocator.
            getAlternative(key, vbucketAwareOp.getNotMyVbucketNodes());
              if (alternative != null) {
                placeIn = alternative;
              }
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.