mirror of https://github.com/apache/druid.git
Merge pull request #1074 from druid-io/overlord-leader
Add an endpoint to return the overlord leader
This commit is contained in:
commit
a01a22dba1
|
@ -120,6 +120,14 @@ public class OverlordResource
|
|||
);
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/leader")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Response getLeader()
|
||||
{
|
||||
return Response.ok(taskMaster.getLeader()).build();
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/task/{taskid}")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
|
|
Loading…
Reference in New Issue