Search in sources :

Example 1 with AlluxioWorkerInfo

use of alluxio.wire.AlluxioWorkerInfo in project alluxio by Alluxio.

the class AlluxioWorkerRestApiTest method getInfo.

private AlluxioWorkerInfo getInfo() throws Exception {
    String result = new TestCase(mHostname, mPort, getEndpoint(AlluxioWorkerRestServiceHandler.GET_INFO), NO_PARAMS, HttpMethod.GET, null).call();
    AlluxioWorkerInfo info = new ObjectMapper().readValue(result, AlluxioWorkerInfo.class);
    return info;
}
Also used : TestCase(alluxio.rest.TestCase) AlluxioWorkerInfo(alluxio.wire.AlluxioWorkerInfo) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

TestCase (alluxio.rest.TestCase)1 AlluxioWorkerInfo (alluxio.wire.AlluxioWorkerInfo)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1