Class WebUiPageTree.CancelDrillbitPage

java.lang.Object
org.apache.drill.yarn.appMaster.http.WebUiPageTree.CancelDrillbitPage
Enclosing class:
WebUiPageTree

@Path("/cancel/") @RolesAllowed("admin") public static class WebUiPageTree.CancelDrillbitPage extends Object
Displays a warning page to ask the user if they want to cancel a Drillbit. This is a bit old-school; we display this as a separate page. A good future enhancement is to do this as a pop-up in Javascript. The GET request display the confirmation page, the PUT request confirms cancellation and does the deed. The task to be cancelled appears as a query parameter:
.../cancel?id=<task id>
  • Constructor Details

    • CancelDrillbitPage

      public CancelDrillbitPage()
  • Method Details

    • getPage

      @GET @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable getPage()
    • postPage

      @POST @Produces("text/html") public org.glassfish.jersey.server.mvc.Viewable postPage()