All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.astyanax.cql.test.RingDescribeTests Maven / Gradle / Ivy

package com.netflix.astyanax.cql.test;

import java.util.List;

import org.apache.log4j.Logger;
import org.junit.BeforeClass;
import org.junit.Test;

import com.netflix.astyanax.connectionpool.TokenRange;

public class RingDescribeTests extends KeyspaceTests {
	
	private static final Logger LOG = Logger.getLogger(RingDescribeTests.class);
	
    @BeforeClass
	public static void init() throws Exception {
		initContext();
	}
	
    @Test
    public void testDescribeRing() throws Exception {
    	// [TokenRangeImpl [startToken=0, endToken=0, endpoints=[127.0.0.1]]]
    	List ring = keyspace.describeRing();
    	LOG.info(ring.toString());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy