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
ConstructorsConstructorDescriptionSharedHelixReadOnlyZKSharedSchemaRepository(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, refreshMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.venice.meta.ReadOnlySchemaRepository
getLatestDerivedSchemaMethods inherited from interface com.linkedin.venice.meta.StoreDataChangedListener
handleStoreDeleted
-
Constructor Details
-
Method Details
-
clear
public void clear()Description copied from class:HelixReadOnlySchemaRepositoryClear local cache and watches- Specified by:
clearin interfaceVeniceResource- Overrides:
clearin classHelixReadOnlySchemaRepository
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-