Class ComponentInfoPublisher

java.lang.Object
org.apache.bookkeeper.common.component.ComponentInfoPublisher

public class ComponentInfoPublisher extends Object
Allows a component to publish information about the services it implements, the endpoints it exposes and other useful information for management tools and client.
  • Constructor Details

    • ComponentInfoPublisher

      public ComponentInfoPublisher()
  • Method Details

    • publishProperty

      public void publishProperty(String key, String value)
      Publish an information about the system, like an endpoint address.
      Parameters:
      key - the key
      value - the value, null values are not allowed.
    • publishEndpoint

      public void publishEndpoint(ComponentInfoPublisher.EndpointInfo endpoint)
    • getProperties

      public Map<String,String> getProperties()
    • getEndpoints

    • startupFinished

      public void startupFinished()
      Called by the framework to signal that preparation of startup is done, so we have gathered all of the available information.