Class SharedHelixReadOnlyZKSharedSchemaRepository
java.lang.Object
com.linkedin.venice.helix.HelixReadOnlySchemaRepository
com.linkedin.venice.helix.HelixReadOnlyZKSharedSchemaRepository
com.linkedin.venice.controller.helix.SharedHelixReadOnlyZKSharedSchemaRepository
- All Implemented Interfaces:
ReadOnlySchemaRepository
,StoreDataChangedListener
,VeniceResource
,Closeable
,AutoCloseable
public class SharedHelixReadOnlyZKSharedSchemaRepository
extends HelixReadOnlyZKSharedSchemaRepository
implements Closeable
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.-
Field Summary
Fields inherited from class com.linkedin.venice.helix.HelixReadOnlySchemaRepository
VALUE_SCHEMA_STARTING_ID
-
Constructor Summary
ConstructorDescriptionSharedHelixReadOnlyZKSharedSchemaRepository
(HelixReadOnlyZKSharedSystemStoreRepository storeRepository, org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapter, String systemStoreClusterName, int refreshAttemptsForZkReconnect, long refreshIntervalForZkReconnectInMs) -
Method Summary
Methods inherited from class com.linkedin.venice.helix.HelixReadOnlySchemaRepository
getDerivedSchema, getDerivedSchemaId, getDerivedSchemas, getKeySchema, getLatestDerivedSchema, getReplicationMetadataSchema, getReplicationMetadataSchemas, getSupersetOrLatestValueSchema, getSupersetSchema, getValueSchema, getValueSchemaId, getValueSchemas, handleStoreChanged, handleStoreCreated, handleStoreDeleted, hasValueSchema, refresh
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.venice.meta.ReadOnlySchemaRepository
getLatestDerivedSchema
Methods inherited from interface com.linkedin.venice.meta.StoreDataChangedListener
handleStoreDeleted
-
Constructor Details
-
Method Details
-
clear
public void clear()Description copied from class:HelixReadOnlySchemaRepository
Clear local cache and watches- Specified by:
clear
in interfaceVeniceResource
- Overrides:
clear
in classHelixReadOnlySchemaRepository
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-