Class ZookeeperRepository

  • All Implemented Interfaces:
    org.apache.shardingsphere.infra.instance.InstanceContextAware, org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI, ClusterPersistRepository, org.apache.shardingsphere.mode.spi.PersistRepository

    public final class ZookeeperRepository
    extends Object
    implements ClusterPersistRepository, org.apache.shardingsphere.infra.instance.InstanceContextAware
    Registry repository of ZooKeeper.
    • Constructor Detail

      • ZookeeperRepository

        public ZookeeperRepository()
    • Method Detail

      • getChildrenKeys

        public List<String> getChildrenKeys​(String key)
        Specified by:
        getChildrenKeys in interface org.apache.shardingsphere.mode.spi.PersistRepository
      • persist

        public void persist​(String key,
                            String value)
        Specified by:
        persist in interface org.apache.shardingsphere.mode.spi.PersistRepository
      • update

        public void update​(String key,
                           String value)
        Specified by:
        update in interface org.apache.shardingsphere.mode.spi.PersistRepository
      • getDirectly

        public String getDirectly​(String key)
        Specified by:
        getDirectly in interface org.apache.shardingsphere.mode.spi.PersistRepository
      • isExisted

        public boolean isExisted​(String key)
        Specified by:
        isExisted in interface org.apache.shardingsphere.mode.spi.PersistRepository
      • delete

        public void delete​(String key)
        Specified by:
        delete in interface org.apache.shardingsphere.mode.spi.PersistRepository
      • close

        public void close()
        Specified by:
        close in interface org.apache.shardingsphere.mode.spi.PersistRepository
      • setInstanceContext

        public void setInstanceContext​(org.apache.shardingsphere.infra.instance.InstanceContext instanceContext)
        Specified by:
        setInstanceContext in interface org.apache.shardingsphere.infra.instance.InstanceContextAware
      • getType

        public String getType()
        Specified by:
        getType in interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI