Interface WAConfigService

    • Method Detail

      • list

        @GET
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        List<Attr> list()
      • get

        @GET
        @Path("{schema}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        Attr get​(@NotNull @PathParam("schema")
                 @NotNull String schema)
        Returns configuration parameter with matching schema.
        Parameters:
        schema - identifier of configuration to be read
        Returns:
        configuration parameter with matching schema
      • set

        @PUT
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        @Path("{schema}")
        void set​(@NotNull
                 @NotNull Attr value)
        Creates / updates the configuration parameter with the given schema.
        Parameters:
        value - parameter value
      • delete

        @DELETE
        @Path("{schema}")
        @Produces({"application/json","application/yaml","application/xml"})
        void delete​(@NotNull @PathParam("schema")
                    @NotNull String schema)
        Deletes the configuration parameter with matching schema.
        Parameters:
        schema - configuration parameter schema
      • pushToWA

        @POST
        @Path("push/{subject}")
        @Produces({"application/json","application/yaml","application/xml"})
        void pushToWA​(@NotNull @PathParam("subject")
                      @NotNull WAConfigService.PushSubject subject,
                      @QueryParam("service")
                      List<String> services)
        Push to WA according to the provided parameters.
        Parameters:
        subject - what is to be triggered for refresh on WA
        services - WA instances to trigger; all if none specified