use of com.linkedin.databus2.schemas.SchemaRegistryStaticConfig.RegistryType in project databus by linkedin.
the class SchemaRegistryConfigBuilder method build.
@Override
public SchemaRegistryStaticConfig build() throws InvalidConfigException {
RegistryType registryType = null;
try {
registryType = RegistryType.valueOf(_type);
} catch (Exception e) {
throw new InvalidConfigException("invalid schema registry type: " + _type);
}
_fileSystem.setEnabled(SchemaRegistryStaticConfig.RegistryType.FILE_SYSTEM == registryType);
// TODO Add config verification
return new SchemaRegistryStaticConfig(registryType, getFileSystem().build(), getExistingService());
}
Aggregations