Package org.jredis.ri.cluster

Examples of org.jredis.ri.cluster.DefaultClusterSpec


  }

  /* (non-Javadoc) @see org.jredis.cluster.ClusterModelProviderTestBase#newClusterSpec() */
  @Override
  protected ClusterSpec newClusterSpec () {
    ClusterSpec spec = new DefaultClusterSpec();
    for(int i=0; i<100; i++){
      ClusterNodeSpec node = new DefaultClusterNodeSpec(DefaultConnectionSpec.newSpec("localhost", 6379+i, 0, null));
      spec.addNode(node);
    }
    return spec;
  }
View Full Code Here


  }

  /* (non-Javadoc) @see org.jredis.cluster.ClusterModelProviderTestBase#newClusterSpec() */
  @Override
  protected ClusterSpec newClusterSpec () {
    ClusterSpec spec = new DefaultClusterSpec();
    for(int i=0; i<100; i++){
      ClusterNodeSpec node = new DefaultClusterNodeSpec(DefaultConnectionSpec.newSpec("localhost", 6379+i, 0, null));
      spec.addNode(node);
    }
    return spec;
  }
View Full Code Here

public class DefaultClusterSpecTest extends ClusterSpecProviderTestBase {
  /* (non-Javadoc) @see org.jredis.ri.ProviderTestBase#newProviderInstance() */
    @Override
    protected ClusterSpec newProviderInstance () {
      return new DefaultClusterSpec ();
    }
View Full Code Here

TOP

Related Classes of org.jredis.ri.cluster.DefaultClusterSpec

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.