use of com.palantir.atlasdb.todo.TodoClient in project atlasdb by palantir.
the class AtlasDbEteServer method run.
@Override
public void run(AtlasDbEteConfiguration config, final Environment environment) throws Exception {
TransactionManager transactionManager = tryToCreateTransactionManager(config, environment);
environment.jersey().register(new SimpleTodoResource(new TodoClient(transactionManager)));
environment.jersey().register(new SimpleCheckAndSetResource(new CheckAndSetClient(transactionManager)));
environment.jersey().register(HttpRemotingJerseyFeature.INSTANCE);
environment.jersey().register(new NotInitializedExceptionMapper());
environment.jersey().register(new CleanupMetadataResourceImpl(transactionManager, config.getAtlasDbConfig().initializeAsync()));
}
Aggregations