Merge pull request #1074 from druid-io/overlord-leader

Add an endpoint to return the overlord leader
This commit is contained in:
Xavier Léauté 2015-01-30 13:44:49 -08:00
commit a01a22dba1
1 changed files with 8 additions and 0 deletions

View File

@ -120,6 +120,14 @@ public class OverlordResource
); );
} }
@GET
@Path("/leader")
@Produces(MediaType.APPLICATION_JSON)
public Response getLeader()
{
return Response.ok(taskMaster.getLeader()).build();
}
@GET @GET
@Path("/task/{taskid}") @Path("/task/{taskid}")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)