use of org.apache.pulsar.common.protocol.schema.SchemaStorage in project incubator-pulsar by apache.
the class PulsarService method createAndStartSchemaStorage.
private SchemaStorage createAndStartSchemaStorage() throws Exception {
final Class<?> storageClass = Class.forName(config.getSchemaRegistryStorageClassName());
Object factoryInstance = storageClass.getDeclaredConstructor().newInstance();
Method createMethod = storageClass.getMethod("create", PulsarService.class);
SchemaStorage schemaStorage = (SchemaStorage) createMethod.invoke(factoryInstance, this);
schemaStorage.start();
return schemaStorage;
}
use of org.apache.pulsar.common.protocol.schema.SchemaStorage in project pulsar by apache.
the class PulsarService method createAndStartSchemaStorage.
private SchemaStorage createAndStartSchemaStorage() throws Exception {
final Class<?> storageClass = Class.forName(config.getSchemaRegistryStorageClassName());
Object factoryInstance = storageClass.getDeclaredConstructor().newInstance();
Method createMethod = storageClass.getMethod("create", PulsarService.class);
SchemaStorage schemaStorage = (SchemaStorage) createMethod.invoke(factoryInstance, this);
schemaStorage.start();
return schemaStorage;
}
use of org.apache.pulsar.common.protocol.schema.SchemaStorage in project pulsar by yahoo.
the class PulsarService method createAndStartSchemaStorage.
private SchemaStorage createAndStartSchemaStorage() throws Exception {
final Class<?> storageClass = Class.forName(config.getSchemaRegistryStorageClassName());
Object factoryInstance = storageClass.getDeclaredConstructor().newInstance();
Method createMethod = storageClass.getMethod("create", PulsarService.class);
SchemaStorage schemaStorage = (SchemaStorage) createMethod.invoke(factoryInstance, this);
schemaStorage.start();
return schemaStorage;
}
Aggregations