Package org.jredis.ri.cluster

Examples of org.jredis.ri.cluster.DefaultClusterNodeSpec


   
    // so far so good.
    // now lets add a node
    didRaiseEx = false;
    try {
      model.addNode(new DefaultClusterNodeSpec(DefaultConnectionSpec.newSpec()));
    }
    catch (NotSupportedException e) { didRaiseEx = true; }
    catch (RuntimeException whatsthis) { fail("unexpected exception raised during op", whatsthis); }
    assertTrue(didRaiseEx, "NotSupportedException raise is expected");
  }
View Full Code Here


    }
    model.removeNode(nodeSpec);
   
    // now lets add a node
    //
    model.addNode(new DefaultClusterNodeSpec(DefaultConnectionSpec.newSpec().setPort(9999)));
  }
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

  /* (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

TOP

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

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.