mirror of https://github.com/apache/druid.git
revert removal of master loadstatus
This commit is contained in:
parent
761a411b16
commit
fc1018bc3f
|
@ -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<String, Double> getLoadStatus()
|
||||
{
|
||||
return master.getLoadStatus();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue