private class TestStochasticLoadBalancer.MockCluster extends Object
Modifier and Type | Field and Description |
---|---|
private int[][] |
localities |
Constructor and Description |
---|
MockCluster(int[][] regions) |
Modifier and Type | Method and Description |
---|---|
(package private) float |
getLocalityOfRegion(int region,
int server) |
int |
getRegionSizeMB(int region) |
private int[][] localities
public MockCluster(int[][] regions)
float getLocalityOfRegion(int region, int server)
public int getRegionSizeMB(int region)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.