Package net.rubyeye.xmemcached.command

Examples of net.rubyeye.xmemcached.command.BinaryCommandFactory


  public MemcachedClientBuilder createBuilder() throws Exception {

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(AddrUtil
        .getAddresses(this.properties
            .getProperty("test.memcached.servers")));
    builder.setCommandFactory(new BinaryCommandFactory());
    ByteUtils.testing = true;
    return builder;
  }
View Full Code Here


      weights[i] = i + 1;
    }

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setCommandFactory(new BinaryCommandFactory());
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    ByteUtils.testing = true;
    return builder;
  }
View Full Code Here

  public MemcachedClientBuilder createBuilder() throws Exception {

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(AddrUtil
        .getAddresses(this.properties
            .getProperty("test.memcached.servers")));
    builder.setCommandFactory(new BinaryCommandFactory());
    ByteUtils.testing = true;
    return builder;
  }
View Full Code Here

    }

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setConnectionPoolSize(CONNECTION_POOL_SIZE);
    builder.setCommandFactory(new BinaryCommandFactory());
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    return builder;
  }
View Full Code Here

    }

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setConnectionPoolSize(CONNECTION_POOL_SIZE);
    builder.setCommandFactory(new BinaryCommandFactory());
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    return builder;
  }
View Full Code Here

  public MemcachedClientBuilder createBuilder() throws Exception {

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(AddrUtil
        .getAddresses(this.properties
            .getProperty("test.memcached.servers")));
    builder.setCommandFactory(new BinaryCommandFactory());
    ByteUtils.testing = true;
    return builder;
  }
View Full Code Here

      weights[i] = i + 1;
    }

    MemcachedClientBuilder builder = new XMemcachedClientBuilder(
        addressList, weights);
    builder.setCommandFactory(new BinaryCommandFactory());
    builder.setSessionLocator(new KetamaMemcachedSessionLocator());
    ByteUtils.testing = true;
    return builder;
  }
View Full Code Here

    if (commandFactoryNameEquals(TextCommandFactory.class)) {
      return new TextCommandFactory();
    }

    if (commandFactoryNameEquals(BinaryCommandFactory.class)) {
      return new BinaryCommandFactory();
    }

    throw new IllegalArgumentException("Unsupported "
        + PROP_COMMAND_FACTORY + " value: " + getCommandFactoryName());
  }
View Full Code Here

    this.currentCmd.encode();
  }

  public void testOptimiezeSetLimitBuffer() {
    this.optimiezer = new Optimizer(Protocol.Binary);
    this.commandFactory = new BinaryCommandFactory();
    this.writeQueue = new LinkedTransferQueue<Command>();
    this.executingCmds = new LinkedTransferQueue<Command>();
    SerializingTranscoder transcoder = new SerializingTranscoder();
    int oneBufferSize = 0;
    for (int i = 0; i < 10; i++) {
View Full Code Here

        Math.round((double) limit / oneBufferSize));
  }

  public void testOptimiezeSetAllBuffers() {
    this.optimiezer = new Optimizer(Protocol.Binary);
    this.commandFactory = new BinaryCommandFactory();
    this.writeQueue = new LinkedTransferQueue<Command>();
    this.executingCmds = new LinkedTransferQueue<Command>();
    SerializingTranscoder transcoder = new SerializingTranscoder();
    for (int i = 0; i < 10; i++) {
      Command cmd = this.commandFactory.createSetCommand(
View Full Code Here

TOP

Related Classes of net.rubyeye.xmemcached.command.BinaryCommandFactory

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.