use of org.apache.bookkeeper.stream.storage.exceptions.StorageRuntimeException in project bookkeeper by apache.
the class HelixStorageContainerManager method doStart.
@Override
protected void doStart() {
// create the controller
try (HelixStorageController controller = new HelixStorageController(zkServers)) {
controller.addNode(clusterName, endpoint, endpointName);
}
StateMachineEngine sme = this.manager.getStateMachineEngine();
StateModelFactory<StateModel> smFactory = new WriteReadStateModelFactory(registry);
sme.registerStateModelFactory(WriteReadSMD.NAME, smFactory);
try {
manager.connect();
manager.addExternalViewChangeListener(rtProvider);
} catch (Exception e) {
throw new StorageRuntimeException(e);
}
}
Aggregations