Class DrillRoot

java.lang.Object
org.apache.drill.exec.server.rest.DrillRoot

@Path("/") @PermitAll public class DrillRoot extends Object
  • 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

      @GET @Path("/gracePeriod") @Produces("application/json") public Map<String,Integer> getGracePeriod()
    • getPortNum

      @GET @Path("/portNum") @Produces("application/json") public Map<String,Integer> 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()