revert removal of master loadstatus

This commit is contained in:
fjy 2013-08-14 14:02:47 -07:00
parent 761a411b16
commit fc1018bc3f
1 changed files with 10 additions and 1 deletions

View File

@ -24,10 +24,13 @@ import com.metamx.druid.master.LoadPeonCallback;
import javax.inject.Inject; import javax.inject.Inject;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST; import javax.ws.rs.POST;
import javax.ws.rs.Path; import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
*/ */
@ -107,5 +110,11 @@ public class MasterResource
return resp; return resp;
} }
@GET
@Path("/loadstatus")
@Produces("application/json")
public Map<String, Double> getLoadStatus()
{
return master.getLoadStatus();
}
} }