Class SharedHelixReadOnlyZKSharedSchemaRepository

  • All Implemented Interfaces:
    ReadOnlySchemaRepository, StoreDataChangedListener, VeniceResource,, java.lang.AutoCloseable

    public class SharedHelixReadOnlyZKSharedSchemaRepository
    extends HelixReadOnlyZKSharedSchemaRepository
    This class is intended to only be used in Controller, which is sharing one instance across all the clusters. Since the leader->standby transition for a given cluster will clear all the resources, this implementation will do nothing in clear() since it will be shared across all the clusters, whose leader are in the same Controller node.
    • Constructor Detail

      • SharedHelixReadOnlyZKSharedSchemaRepository

        public SharedHelixReadOnlyZKSharedSchemaRepository​(HelixReadOnlyZKSharedSystemStoreRepository storeRepository,
                                                           org.apache.helix.zookeeper.impl.client.ZkClient zkClient,
                                                           HelixAdapterSerializer adapter,
                                                           java.lang.String systemStoreClusterName,
                                                           int refreshAttemptsForZkReconnect,
                                                           long refreshIntervalForZkReconnectInMs)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface