use of alluxio.wire.WorkerInfo in project alluxio by Alluxio.
the class AlluxioMasterRestApiTest method getWorkers.
@Test
public void getWorkers() throws Exception {
List<WorkerInfo> workerInfos = getInfo(NO_PARAMS).getWorkers();
assertEquals(1, workerInfos.size());
WorkerInfo workerInfo = workerInfos.get(0);
assertEquals(0, workerInfo.getUsedBytes());
long bytes = ServerConfiguration.getBytes(PropertyKey.WORKER_RAMDISK_SIZE);
assertEquals(bytes, workerInfo.getCapacityBytes());
}
Aggregations