Class DrillRoot
java.lang.Object
org.apache.drill.exec.server.rest.DrillRoot
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
Pretty-printing wrapper class around the ZK-based queue summary. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
org.glassfish.jersey.server.mvc.Viewable
javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
shutdownDrillbitByName
(String hostname) javax.ws.rs.core.Response
-
Constructor Details
-
DrillRoot
public DrillRoot()
-
-
Method Details
-
getClusterInfo
@GET @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable getClusterInfo() -
getDrillbitStatus
@GET @Path("/state") @Produces("application/json") public javax.ws.rs.core.Response getDrillbitStatus() -
getGracePeriod
-
getPortNum
-
getRemainingQueries
@GET @Path("/queriesCount") @Produces("application/json") public javax.ws.rs.core.Response getRemainingQueries() -
shutdownDrillbit
@POST @Path("/gracefulShutdown") @Produces("application/json") @RolesAllowed("admin") public javax.ws.rs.core.Response shutdownDrillbit() throws Exception- Throws:
Exception
-
shutdownDrillbitByName
@POST @Path("/gracefulShutdown/{hostname}") @Produces("application/json") @RolesAllowed("admin") public String shutdownDrillbitByName(@PathParam("hostname") String hostname) throws Exception - Throws:
Exception
-
shutdownForcefully
@POST @Path("/shutdown") @Produces("application/json") @RolesAllowed("admin") public javax.ws.rs.core.Response shutdownForcefully() throws Exception- Throws:
Exception
-
drillbitToQuiescentMode
@POST @Path("/quiescent") @Produces("application/json") @RolesAllowed("admin") public javax.ws.rs.core.Response drillbitToQuiescentMode() throws Exception- Throws:
Exception
-
getClusterInfoJSON
@GET @Path("/cluster.json") @Produces("application/json") public DrillRoot.ClusterInfo getClusterInfoJSON()
-