diff --git a/server/src/main/java/com/metamx/druid/http/MasterResource.java b/server/src/main/java/com/metamx/druid/http/MasterResource.java index 7bbf045d732..9bb59d79d43 100644 --- a/server/src/main/java/com/metamx/druid/http/MasterResource.java +++ b/server/src/main/java/com/metamx/druid/http/MasterResource.java @@ -24,10 +24,13 @@ import com.metamx.druid.master.LoadPeonCallback; 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; import javax.ws.rs.core.Response; import java.util.List; +import java.util.Map; /** */ @@ -107,5 +110,11 @@ public class MasterResource return resp; } - + @GET + @Path("/loadstatus") + @Produces("application/json") + public Map getLoadStatus() + { + return master.getLoadStatus(); + } } \ No newline at end of file