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;
}
Aggregations