Class NonPersistentTopics


  • @Path("/non-persistent")
    @Produces("application/json")
    public class NonPersistentTopics
    extends PersistentTopics
    • Constructor Detail

      • NonPersistentTopics

        public NonPersistentTopics()
    • Method Detail

      • getPartitionedMetadata

        @GET
        @Path("/{property}/{cluster}/{namespace}/{topic}/partitions")
        public void getPartitionedMetadata​(@Suspended
                                           javax.ws.rs.container.AsyncResponse asyncResponse,
                                           @PathParam("property")
                                           java.lang.String property,
                                           @PathParam("cluster")
                                           java.lang.String cluster,
                                           @PathParam("namespace")
                                           java.lang.String namespace,
                                           @PathParam("topic") @Encoded
                                           java.lang.String encodedTopic,
                                           @QueryParam("authoritative") @DefaultValue("false")
                                           boolean authoritative,
                                           @QueryParam("checkAllowAutoCreation") @DefaultValue("false")
                                           boolean checkAllowAutoCreation)
        Overrides:
        getPartitionedMetadata in class PersistentTopics
      • getStats

        @GET
        @Path("{property}/{cluster}/{namespace}/{topic}/stats")
        public org.apache.pulsar.common.policies.data.NonPersistentTopicStats getStats​(@PathParam("property")
                                                                                       java.lang.String property,
                                                                                       @PathParam("cluster")
                                                                                       java.lang.String cluster,
                                                                                       @PathParam("namespace")
                                                                                       java.lang.String namespace,
                                                                                       @PathParam("topic") @Encoded
                                                                                       java.lang.String encodedTopic,
                                                                                       @QueryParam("authoritative") @DefaultValue("false")
                                                                                       boolean authoritative,
                                                                                       @QueryParam("getPreciseBacklog") @DefaultValue("false")
                                                                                       boolean getPreciseBacklog)
        Overrides:
        getStats in class PersistentTopics
      • getInternalStats

        @GET
        @Path("{property}/{cluster}/{namespace}/{topic}/internalStats")
        public org.apache.pulsar.common.policies.data.PersistentTopicInternalStats getInternalStats​(@PathParam("property")
                                                                                                    java.lang.String property,
                                                                                                    @PathParam("cluster")
                                                                                                    java.lang.String cluster,
                                                                                                    @PathParam("namespace")
                                                                                                    java.lang.String namespace,
                                                                                                    @PathParam("topic") @Encoded
                                                                                                    java.lang.String encodedTopic,
                                                                                                    @QueryParam("authoritative") @DefaultValue("false")
                                                                                                    boolean authoritative,
                                                                                                    @QueryParam("metadata") @DefaultValue("false")
                                                                                                    boolean metadata)
        Overrides:
        getInternalStats in class PersistentTopics
      • createPartitionedTopic

        @PUT
        @Path("/{property}/{cluster}/{namespace}/{topic}/partitions")
        public void createPartitionedTopic​(@Suspended
                                           javax.ws.rs.container.AsyncResponse asyncResponse,
                                           @PathParam("property")
                                           java.lang.String property,
                                           @PathParam("cluster")
                                           java.lang.String cluster,
                                           @PathParam("namespace")
                                           java.lang.String namespace,
                                           @PathParam("topic") @Encoded
                                           java.lang.String encodedTopic,
                                           int numPartitions,
                                           @QueryParam("createLocalTopicOnly") @DefaultValue("false")
                                           boolean createLocalTopicOnly)
        Overrides:
        createPartitionedTopic in class PersistentTopics
      • unloadTopic

        @PUT
        @Path("/{property}/{cluster}/{namespace}/{topic}/unload")
        public void unloadTopic​(@Suspended
                                javax.ws.rs.container.AsyncResponse asyncResponse,
                                @PathParam("property")
                                java.lang.String property,
                                @PathParam("cluster")
                                java.lang.String cluster,
                                @PathParam("namespace")
                                java.lang.String namespace,
                                @PathParam("topic") @Encoded
                                java.lang.String encodedTopic,
                                @QueryParam("authoritative") @DefaultValue("false")
                                boolean authoritative)
        Overrides:
        unloadTopic in class PersistentTopics
      • getList

        @GET
        @Path("/{property}/{cluster}/{namespace}")
        public void getList​(@Suspended
                            javax.ws.rs.container.AsyncResponse asyncResponse,
                            @PathParam("property")
                            java.lang.String property,
                            @PathParam("cluster")
                            java.lang.String cluster,
                            @PathParam("namespace")
                            java.lang.String namespace,
                            @QueryParam("bundle")
                            java.lang.String nsBundle)
        Overrides:
        getList in class PersistentTopics
      • getListFromBundle

        @GET
        @Path("/{property}/{cluster}/{namespace}/{bundle}")
        public java.util.List<java.lang.String> getListFromBundle​(@PathParam("property")
                                                                  java.lang.String property,
                                                                  @PathParam("cluster")
                                                                  java.lang.String cluster,
                                                                  @PathParam("namespace")
                                                                  java.lang.String namespace,
                                                                  @PathParam("bundle")
                                                                  java.lang.String bundleRange)