Add GET method to /v1/memory endpoint
@@ -17,6 +17,7 @@ import com.facebook.presto.execution.TaskManager;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@@ -48,4 +49,11 @@ public class MemoryResource
taskManager.updateMemoryPoolAssignments(request);
return memoryManager.getInfo();
}
+
+ @GET
+ @Produces(MediaType.APPLICATION_JSON)
+ public MemoryInfo getMemoryInfo()
+ {
+ return memoryManager.getInfo();
+ }
}
