Search in sources :

Example 1 with CleanupMetadataResourceImpl

use of com.palantir.atlasdb.schema.CleanupMetadataResourceImpl 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()));
}
Also used : CleanupMetadataResourceImpl(com.palantir.atlasdb.schema.CleanupMetadataResourceImpl) NotInitializedExceptionMapper(com.palantir.atlasdb.http.NotInitializedExceptionMapper) TransactionManager(com.palantir.atlasdb.transaction.api.TransactionManager) TodoClient(com.palantir.atlasdb.todo.TodoClient) SimpleCheckAndSetResource(com.palantir.atlasdb.cas.SimpleCheckAndSetResource) CheckAndSetClient(com.palantir.atlasdb.cas.CheckAndSetClient) SimpleTodoResource(com.palantir.atlasdb.todo.SimpleTodoResource)

Aggregations

CheckAndSetClient (com.palantir.atlasdb.cas.CheckAndSetClient)1 SimpleCheckAndSetResource (com.palantir.atlasdb.cas.SimpleCheckAndSetResource)1 NotInitializedExceptionMapper (com.palantir.atlasdb.http.NotInitializedExceptionMapper)1 CleanupMetadataResourceImpl (com.palantir.atlasdb.schema.CleanupMetadataResourceImpl)1 SimpleTodoResource (com.palantir.atlasdb.todo.SimpleTodoResource)1 TodoClient (com.palantir.atlasdb.todo.TodoClient)1 TransactionManager (com.palantir.atlasdb.transaction.api.TransactionManager)1