Class BrokersBase

    • Field Detail

      • HEALTH_CHECK_TOPIC_SUFFIX

        public static final java.lang.String HEALTH_CHECK_TOPIC_SUFFIX
        See Also:
        Constant Field Values
    • Constructor Detail

      • BrokersBase

        public BrokersBase()
    • Method Detail

      • getActiveBrokers

        @GET
        @Path("/{cluster}")
        public void getActiveBrokers​(@Suspended
                                     javax.ws.rs.container.AsyncResponse asyncResponse,
                                     @PathParam("cluster")
                                     java.lang.String cluster)
      • getLeaderBroker

        @GET
        @Path("/leaderBroker")
        public void getLeaderBroker​(@Suspended
                                    javax.ws.rs.container.AsyncResponse asyncResponse)
      • getOwnedNamespaces

        @GET
        @Path("/{clusterName}/{broker-webserviceurl}/ownedNamespaces")
        public java.util.Map<java.lang.String,​org.apache.pulsar.common.policies.data.NamespaceOwnershipStatus> getOwnedNamespaces​(@PathParam("clusterName")
                                                                                                                                        java.lang.String cluster,
                                                                                                                                        @PathParam("broker-webserviceurl")
                                                                                                                                        java.lang.String broker)
                                                                                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • updateDynamicConfiguration

        @POST
        @Path("/configuration/{configName}/{configValue}")
        public void updateDynamicConfiguration​(@Suspended
                                               javax.ws.rs.container.AsyncResponse asyncResponse,
                                               @PathParam("configName")
                                               java.lang.String configName,
                                               @PathParam("configValue")
                                               java.lang.String configValue)
      • deleteDynamicConfiguration

        @DELETE
        @Path("/configuration/{configName}")
        public void deleteDynamicConfiguration​(@Suspended
                                               javax.ws.rs.container.AsyncResponse asyncResponse,
                                               @PathParam("configName")
                                               java.lang.String configName)
      • getAllDynamicConfigurations

        @GET
        @Path("/configuration/values")
        public java.util.Map<java.lang.String,​java.lang.String> getAllDynamicConfigurations()
                                                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDynamicConfigurationName

        @GET
        @Path("/configuration")
        public java.util.List<java.lang.String> getDynamicConfigurationName()
      • getRuntimeConfiguration

        @GET
        @Path("/configuration/runtime")
        public java.util.Map<java.lang.String,​java.lang.String> getRuntimeConfiguration()
      • getInternalConfigurationData

        @GET
        @Path("/internal-configuration")
        public org.apache.pulsar.common.conf.InternalConfigurationData getInternalConfigurationData()
      • backlogQuotaCheck

        @GET
        @Path("/backlog-quota-check")
        public void backlogQuotaCheck​(@Suspended
                                      javax.ws.rs.container.AsyncResponse asyncResponse)
      • isReady

        @GET
        @Path("/ready")
        public void isReady​(@Suspended
                            javax.ws.rs.container.AsyncResponse asyncResponse)
      • healthCheck

        @GET
        @Path("/health")
        public void healthCheck​(@Suspended
                                javax.ws.rs.container.AsyncResponse asyncResponse,
                                @QueryParam("topicVersion")
                                org.apache.pulsar.common.naming.TopicVersion topicVersion)
      • version

        @GET
        @Path("/version")
        public java.lang.String version()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shutDownBrokerGracefully

        @POST
        @Path("/shutdown")
        public void shutDownBrokerGracefully​(@QueryParam("maxConcurrentUnloadPerSec")
                                             int maxConcurrentUnloadPerSec,
                                             @QueryParam("forcedTerminateTopic") @DefaultValue("true")
                                             boolean forcedTerminateTopic)