@Path(value="/") @PermitAll public class DrillRoot extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DrillRoot.ClusterInfo |
static class |
DrillRoot.DrillbitInfo |
static class |
DrillRoot.QueueInfo
Pretty-printing wrapper class around the ZK-based queue summary.
|
| Constructor and Description |
|---|
DrillRoot() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
drillbitToQuiescentMode() |
org.glassfish.jersey.server.mvc.Viewable |
getClusterInfo() |
DrillRoot.ClusterInfo |
getClusterInfoJSON() |
javax.ws.rs.core.Response |
getDrillbitStatus() |
Map<String,Integer> |
getGracePeriod() |
Map<String,Integer> |
getPortNum() |
javax.ws.rs.core.Response |
getRemainingQueries() |
javax.ws.rs.core.Response |
shutdownDrillbit() |
String |
shutdownDrillbitByName(String hostname) |
javax.ws.rs.core.Response |
shutdownForcefully() |
@GET @Produces(value="text/html") public org.glassfish.jersey.server.mvc.Viewable getClusterInfo()
@GET @Path(value="/state") @Produces(value="application/json") public javax.ws.rs.core.Response getDrillbitStatus()
@GET @Path(value="/gracePeriod") @Produces(value="application/json") public Map<String,Integer> getGracePeriod()
@GET @Path(value="/portNum") @Produces(value="application/json") public Map<String,Integer> getPortNum()
@GET @Path(value="/queriesCount") @Produces(value="application/json") public javax.ws.rs.core.Response getRemainingQueries()
@POST @Path(value="/gracefulShutdown") @Produces(value="application/json") @RolesAllowed(value="admin") public javax.ws.rs.core.Response shutdownDrillbit() throws Exception
Exception@POST
@Path(value="/gracefulShutdown/{hostname}")
@Produces(value="application/json")
@RolesAllowed(value="admin")
public String shutdownDrillbitByName(@PathParam(value="hostname")
String hostname)
throws Exception
Exception@POST @Path(value="/shutdown") @Produces(value="application/json") @RolesAllowed(value="admin") public javax.ws.rs.core.Response shutdownForcefully() throws Exception
Exception@POST @Path(value="/quiescent") @Produces(value="application/json") @RolesAllowed(value="admin") public javax.ws.rs.core.Response drillbitToQuiescentMode() throws Exception
Exception@GET @Path(value="/cluster.json") @Produces(value="application/json") public DrillRoot.ClusterInfo getClusterInfoJSON()
Copyright © 2021 The Apache Software Foundation. All rights reserved.