Search in sources :

Example 1 with PropertyFileSnitch

use of org.apache.cassandra.locator.PropertyFileSnitch in project cassandra by apache.

the class StorageServiceServerTest method setUp.

@BeforeClass
public static void setUp() throws ConfigurationException {
    DatabaseDescriptor.daemonInitialization();
    IEndpointSnitch snitch = new PropertyFileSnitch();
    DatabaseDescriptor.setEndpointSnitch(snitch);
    Keyspace.setInitialized();
}
Also used : PropertyFileSnitch(org.apache.cassandra.locator.PropertyFileSnitch) IEndpointSnitch(org.apache.cassandra.locator.IEndpointSnitch) BeforeClass(org.junit.BeforeClass)

Example 2 with PropertyFileSnitch

use of org.apache.cassandra.locator.PropertyFileSnitch in project cassandra by apache.

the class ViewUtilsTest method setUp.

@BeforeClass
public static void setUp() throws ConfigurationException {
    DatabaseDescriptor.daemonInitialization();
    IEndpointSnitch snitch = new PropertyFileSnitch();
    DatabaseDescriptor.setEndpointSnitch(snitch);
    Keyspace.setInitialized();
}
Also used : PropertyFileSnitch(org.apache.cassandra.locator.PropertyFileSnitch) IEndpointSnitch(org.apache.cassandra.locator.IEndpointSnitch) BeforeClass(org.junit.BeforeClass)

Aggregations

IEndpointSnitch (org.apache.cassandra.locator.IEndpointSnitch)2 PropertyFileSnitch (org.apache.cassandra.locator.PropertyFileSnitch)2 BeforeClass (org.junit.BeforeClass)2