@ GET @ Path ( "/mode" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response getMode ( @ Context final HttpServletRequest req ) { IndexTaskUtils . datasourceAuthorizationCheck ( req , Action . READ , getDataSource ( ) , authorizerMapper ) ; return Response . ok ( isParallelMode ( ) ? "parallel" : "sequential" ) . build ( ) ; }
External APIs to get running status