setupSystemStore
public static void setupSystemStore(java.lang.String clusterName,
java.lang.String systemStoreName,
AvroProtocolDefinition protocolDefinition,
org.apache.avro.Schema keySchema,
java.util.function.Function<Store,java.lang.Boolean> updateStoreCheckSupplier,
UpdateStoreQueryParams updateStoreQueryParams,
Admin admin,
VeniceControllerMultiClusterConfig multiClusterConfigs)
The main function that initializes and configures shared system stores
- Parameters:
clusterName
- The cluster where the system store exists
systemStoreName
- The name of the system store
protocolDefinition
- The AvroProtocolDefinition
of the value schemas of the system store
keySchema
- The Key Schema of the system store. If it is null
, an int schema is used by default
updateStoreCheckSupplier
- A function that decides if an update store operation should be performed on the
system store
updateStoreQueryParams
- The update store operation that needs to be applied on the store. Can be null
admin
- VeniceParentHelixAdmin
if this is the parent controller. VeniceHelixAdmin
otherwise
multiClusterConfigs
- The controller configs