Class ZKMetadataStore

    • Field Detail

      • ZK_SCHEME_IDENTIFIER

        public static final java.lang.String ZK_SCHEME_IDENTIFIER
        See Also:
        Constant Field Values
    • Method Detail

      • existsFromStore

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> existsFromStore​(java.lang.String path)
        Specified by:
        existsFromStore in class AbstractMetadataStore
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class AbstractBatchedMetadataStore
        Throws:
        java.lang.Exception
      • getZkSessionId

        public long getZkSessionId()
      • getZkClient

        public org.apache.zookeeper.ZooKeeper getZkClient()
      • initializeCluster

        public java.util.concurrent.CompletableFuture<java.lang.Void> initializeCluster()
        Description copied from interface: MetadataStoreLifecycle
        Initialize the metadata store cluster if needed. For example, if the backend metadata store is a zookeeper cluster and the pulsar cluster is configured to access the zookeeper cluster in the chroot mode, then this method could be used to initialize the root node during pulsar cluster metadata setup.
        Specified by:
        initializeCluster in interface MetadataStoreLifecycle
        Returns:
        a future to track the async request.
      • getRootPath

        public java.lang.String getRootPath()