Search in sources :

Example 1 with Idempotent

use of com.palantir.common.annotation.Idempotent in project atlasdb by palantir.

the class TransactionManagersInitializer method tryInitialize.

@Override
@Idempotent
public synchronized void tryInitialize() {
    TransactionTables.createTables(keyValueService);
    for (Schema schema : schemas) {
        Schemas.createTablesAndIndexes(schema, keyValueService);
        schemaMetadataService.putSchemaMetadata(schema.getName(), schema.getSchemaMetadata());
    }
    // Prime the key value service with logging information.
    // TODO (jkong): Needs to be changed if/when we support dynamic table creation.
    LoggingArgs.hydrate(keyValueService.getMetadataForTables());
}
Also used : Schema(com.palantir.atlasdb.table.description.Schema) Idempotent(com.palantir.common.annotation.Idempotent)

Aggregations

Schema (com.palantir.atlasdb.table.description.Schema)1 Idempotent (com.palantir.common.annotation.Idempotent)1