Search in sources :

Example 1 with DefaultShardMigrationResult

use of com.ctrip.xpipe.redis.console.migration.model.impl.DefaultShardMigrationResult in project x-pipe by ctripcorp.

the class MigrationEventDaoTest method randomResult.

private ShardMigrationResult randomResult() {
    DefaultShardMigrationResult result = new DefaultShardMigrationResult();
    for (ShardMigrationStep step : ShardMigrationStep.values()) {
        int random = randomInt();
        boolean success = random % 2 == 0 ? true : false;
        result.updateStepResult(step, success, randomString(10));
    }
    return result;
}
Also used : DefaultShardMigrationResult(com.ctrip.xpipe.redis.console.migration.model.impl.DefaultShardMigrationResult)

Aggregations

DefaultShardMigrationResult (com.ctrip.xpipe.redis.console.migration.model.impl.DefaultShardMigrationResult)1