Class StormApiResource


  • @Path("/")
    public class StormApiResource
    extends Object
    Root resource (exposed at "storm" path).
    • Constructor Detail

    • Method Detail

      • getClusterConfiguration

        @GET
        @Path("/cluster/configuration")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getClusterConfiguration​(@QueryParam("callback")
                                                                   String callback)
                                                            throws org.apache.storm.thrift.TException
        /api/v1/cluster/configuration -> nimbus configuration.
        Throws:
        org.apache.storm.thrift.TException
      • getClusterSummary

        @GET
        @Path("/cluster/summary")
        @AuthNimbusOp("getClusterInfo")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getClusterSummary​(@QueryParam("callback")
                                                             String callback)
                                                      throws org.apache.storm.thrift.TException
        /api/v1/cluster/summary -> cluster summary.
        Throws:
        org.apache.storm.thrift.TException
      • getNimbusSummary

        @GET
        @Path("/nimbus/summary")
        @AuthNimbusOp("getClusterInfo")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getNimbusSummary​(@QueryParam("callback")
                                                            String callback)
                                                     throws org.apache.storm.thrift.TException
        /api/v1/nimbus/summary -> nimbus summary.
        Throws:
        org.apache.storm.thrift.TException
      • getOwnerResources

        @GET
        @Path("/owner-resources")
        @AuthNimbusOp("getOwnerResourceSummaries")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getOwnerResources​(@QueryParam("callback")
                                                             String callback)
                                                      throws org.apache.storm.thrift.TException
        /api/v1/owner-resources -> owner resources.
        Throws:
        org.apache.storm.thrift.TException
      • getOwnerResource

        @GET
        @Path("/owner-resources/{id}")
        @AuthNimbusOp("getOwnerResourceSummaries")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getOwnerResource​(@PathParam("id")
                                                            String id,
                                                            @QueryParam("callback")
                                                            String callback)
                                                     throws org.apache.storm.thrift.TException
        /api/v1/owner-resources/:id -> owner resources.
        Throws:
        org.apache.storm.thrift.TException
      • getHistorySummary

        @GET
        @Path("/history/summary")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getHistorySummary​(@QueryParam("callback")
                                                             String callback)
                                                      throws org.apache.storm.thrift.TException
        /api/v1/history/summary -> topo history.
        Throws:
        org.apache.storm.thrift.TException
      • getSupervisorSummary

        @GET
        @Path("/supervisor/summary")
        @AuthNimbusOp("getClusterInfo")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getSupervisorSummary​(@Context
                                                                jakarta.ws.rs.core.SecurityContext securityContext,
                                                                @QueryParam("callback")
                                                                String callback)
                                                         throws org.apache.storm.thrift.TException
        /api/v1/supervisor/summary -> supervisor summary.
        Throws:
        org.apache.storm.thrift.TException
      • getSupervisor

        @GET
        @Path("/supervisor")
        @AuthNimbusOp("getSupervisorPageInfo")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getSupervisor​(@QueryParam("id")
                                                         String id,
                                                         @QueryParam("host")
                                                         String host,
                                                         @QueryParam("sys")
                                                         boolean sys,
                                                         @QueryParam("callback")
                                                         String callback)
                                                  throws org.apache.storm.thrift.TException
        /api/v1/supervisor -> topo history.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologySummary

        @GET
        @Path("/topology/summary")
        @AuthNimbusOp("getClusterInfo")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologySummary​(@Context
                                                              jakarta.ws.rs.core.SecurityContext securityContext,
                                                              @QueryParam("callback")
                                                              String callback)
                                                       throws org.apache.storm.thrift.TException
        /api/v1/topology/summary -> topo history.
        Throws:
        org.apache.storm.thrift.TException
      • getTopology

        @GET
        @Path("/topology/{id}")
        @AuthNimbusOp(value="getTopology",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopology​(@PathParam("id")
                                                       String id,
                                                       @DefaultValue(":all-time") @QueryParam("window")
                                                       String window,
                                                       @QueryParam("sys")
                                                       boolean sys,
                                                       @QueryParam("callback")
                                                       String callback)
                                                throws org.apache.storm.thrift.TException
        /api/v1/topology -> topo.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyWorkers

        @GET
        @Path("/topology-workers/{id}")
        @AuthNimbusOp(value="getTopology",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyWorkers​(@PathParam("id")
                                                              String id,
                                                              @QueryParam("callback")
                                                              String callback)
                                                       throws org.apache.storm.thrift.TException
        /api/v1/topology-workers/:id -> topo workers.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyMetrics

        @GET
        @Path("/topology/{id}/metrics")
        @AuthNimbusOp(value="getTopology",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyMetrics​(@PathParam("id")
                                                              String id,
                                                              @DefaultValue(":all-time") @QueryParam("window")
                                                              String window,
                                                              @QueryParam("sys")
                                                              boolean sys,
                                                              @QueryParam("callback")
                                                              String callback)
                                                       throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/metrics -> metrics.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyLag

        @GET
        @Path("/topology/{id}/lag")
        @AuthNimbusOp(value="getTopology",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyLag​(@PathParam("id")
                                                          String id,
                                                          @QueryParam("callback")
                                                          String callback)
                                                   throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/lag -> lag.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyVisializationInit

        @GET
        @Path("/topology/{id}/visualization-init")
        @AuthNimbusOp(value="getTopology",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyVisializationInit​(@PathParam("id")
                                                                        String id,
                                                                        @QueryParam("sys")
                                                                        boolean sys,
                                                                        @QueryParam("callback")
                                                                        String callback,
                                                                        @DefaultValue(":all-time") @QueryParam("window")
                                                                        String window)
                                                                 throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/visualization-init -> visualization-init.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyVisualization

        @GET
        @Path("/topology/{id}/visualization")
        @AuthNimbusOp(value="getTopology",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyVisualization​(@PathParam("id")
                                                                    String id,
                                                                    @QueryParam("sys")
                                                                    boolean sys,
                                                                    @QueryParam("callback")
                                                                    String callback,
                                                                    @DefaultValue(":all-time") @QueryParam("window")
                                                                    String window)
                                                             throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/visualization -> visualization.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyComponent

        @GET
        @Path("/topology/{id}/component/{component}")
        @AuthNimbusOp(value="getTopology",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyComponent​(@PathParam("id")
                                                                String id,
                                                                @PathParam("component")
                                                                String component,
                                                                @QueryParam("sys")
                                                                boolean sys,
                                                                @QueryParam("callback")
                                                                String callback,
                                                                @DefaultValue(":all-time") @QueryParam("window")
                                                                String window)
                                                         throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/component/:component -> component.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyLogconfig

        @GET
        @Path("/topology/{id}/logconfig")
        @AuthNimbusOp(value="getTopology",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyLogconfig​(@PathParam("id")
                                                                String id,
                                                                @QueryParam("callback")
                                                                String callback)
                                                         throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/logconfig -> logconfig.
        Throws:
        org.apache.storm.thrift.TException
      • putTopologyLogconfig

        @POST
        @Path("/topology/{id}/logconfig")
        @AuthNimbusOp(value="setLogConfig",
                      needsTopoId=true)
        @Produces("application/json")
        @Consumes("application/json")
        public jakarta.ws.rs.core.Response putTopologyLogconfig​(@PathParam("id")
                                                                String id,
                                                                String body,
                                                                @QueryParam("callback")
                                                                String callback)
                                                         throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/logconfig -> logconfig.
        Throws:
        org.apache.storm.thrift.TException
      • putTopologyActivate

        @POST
        @Path("/topology/{id}/activate")
        @AuthNimbusOp(value="activate",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response putTopologyActivate​(@PathParam("id")
                                                               String id,
                                                               @QueryParam("callback")
                                                               String callback)
                                                        throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/activate -> topology activate.
        Throws:
        org.apache.storm.thrift.TException
      • putTopologyDeactivate

        @POST
        @Path("/topology/{id}/deactivate")
        @AuthNimbusOp(value="deactivate",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response putTopologyDeactivate​(@PathParam("id")
                                                                 String id,
                                                                 @QueryParam("callback")
                                                                 String callback)
                                                          throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/deactivate -> topology deactivate.
        Throws:
        org.apache.storm.thrift.TException
      • putTopologyDebugActionSpct

        @POST
        @Path("/topology/{id}/debug/{action}/{spct}")
        @AuthNimbusOp(value="debug",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response putTopologyDebugActionSpct​(@PathParam("id")
                                                                      String id,
                                                                      @PathParam("action")
                                                                      String action,
                                                                      @PathParam("spct")
                                                                      String spct,
                                                                      @QueryParam("callback")
                                                                      String callback)
                                                               throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/debug/:action/:spct -> debug action.
        Throws:
        org.apache.storm.thrift.TException
      • putTopologyComponentDebugActionSpct

        @POST
        @Path("/topology/{id}/component/{component}/debug/{action}/{spct}")
        @AuthNimbusOp(value="debug",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response putTopologyComponentDebugActionSpct​(@PathParam("id")
                                                                               String id,
                                                                               @PathParam("component")
                                                                               String component,
                                                                               @PathParam("action")
                                                                               String action,
                                                                               @PathParam("spct")
                                                                               String spct,
                                                                               @QueryParam("callback")
                                                                               String callback)
                                                                        throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/component/:component/debug/:action/:spct -> debug component action.
        Throws:
        org.apache.storm.thrift.TException
      • putTopologyRebalance

        @POST
        @Path("/topology/{id}/rebalance/{wait-time}")
        @AuthNimbusOp(value="rebalance",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response putTopologyRebalance​(@PathParam("id")
                                                                String id,
                                                                @PathParam("wait-time")
                                                                String waitTime,
                                                                @QueryParam("callback")
                                                                String callback)
                                                         throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/rebalance/:wait-time -> topology rebalance.
        Throws:
        org.apache.storm.thrift.TException
      • putTopologyKill

        @POST
        @Path("/topology/{id}/kill/{wait-time}")
        @AuthNimbusOp(value="killTopology",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response putTopologyKill​(@PathParam("id")
                                                           String id,
                                                           @PathParam("wait-time")
                                                           String waitTime,
                                                           @QueryParam("callback")
                                                           String callback)
                                                    throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/kill/:wait-time -> topology kill.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyProfilingStart

        @GET
        @Path("/topology/{id}/profiling/start/{host-port}/{timeout}")
        @AuthNimbusOp(value="setWorkerProfiler",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyProfilingStart​(@PathParam("id")
                                                                     String id,
                                                                     @PathParam("host-port")
                                                                     String hostPort,
                                                                     @PathParam("timeout")
                                                                     String timeout,
                                                                     @QueryParam("callback")
                                                                     String callback)
                                                              throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/profiling/start/:host-port/:timeout -> profiling start.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyProfilingStop

        @GET
        @Path("/topology/{id}/profiling/stop/{host-port}")
        @AuthNimbusOp(value="setWorkerProfiler",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyProfilingStop​(@PathParam("id")
                                                                    String id,
                                                                    @PathParam("host-port")
                                                                    String hostPort,
                                                                    @QueryParam("callback")
                                                                    String callback)
                                                             throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/profiling/stop/:host-port -> profiling stop.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyProfilingDumpProfile

        @GET
        @Path("/topology/{id}/profiling/dumpprofile/{host-port}")
        @AuthNimbusOp(value="setWorkerProfiler",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyProfilingDumpProfile​(@PathParam("id")
                                                                           String id,
                                                                           @PathParam("host-port")
                                                                           String hostPort,
                                                                           @QueryParam("callback")
                                                                           String callback)
                                                                    throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/profiling/dumpprofile/:host-port -> dump profile.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyProfilingDumpJstack

        @GET
        @Path("/topology/{id}/profiling/dumpjstack/{host-port}")
        @AuthNimbusOp(value="setWorkerProfiler",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyProfilingDumpJstack​(@PathParam("id")
                                                                          String id,
                                                                          @PathParam("host-port")
                                                                          String hostPort,
                                                                          @QueryParam("callback")
                                                                          String callback)
                                                                   throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/profiling/dumpjstack/:host-port -> dump jstack.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyProfilingRestartWorker

        @GET
        @Path("/topology/{id}/profiling/restartworker/{host-port}")
        @AuthNimbusOp(value="setWorkerProfiler",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyProfilingRestartWorker​(@PathParam("id")
                                                                             String id,
                                                                             @PathParam("host-port")
                                                                             String hostPort,
                                                                             @QueryParam("callback")
                                                                             String callback)
                                                                      throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/profiling/restartworker/:host-port -> restart worker.
        Throws:
        org.apache.storm.thrift.TException
      • getTopologyProfilingDumpheap

        @GET
        @Path("/topology/{id}/profiling/dumpheap/{host-port}")
        @AuthNimbusOp(value="setWorkerProfiler",
                      needsTopoId=true)
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getTopologyProfilingDumpheap​(@PathParam("id")
                                                                        String id,
                                                                        @PathParam("host-port")
                                                                        String hostPort,
                                                                        @QueryParam("callback")
                                                                        String callback)
                                                                 throws org.apache.storm.thrift.TException
        /api/v1/topology/:id/profiling/dumpheap/:host-port -> dump heap.
        Throws:
        org.apache.storm.thrift.TException