There is one instance of this class for each shard in each dissectable area.
When the shard contents are being selected this object is in the pending state. Once this has been completed it is moved to the ready state.
227228229230231232233234235236237238239240
"Shard count incorrect", expectedAreaStats.shardCount, actualShardCount); for (int i = 0; i < actualShardCount; i += 1) { Shard shard = area.retrieveShard(context, i, null); ShardStats shardStats = expectedAreaStats.getShardStats(i); checkSharedContentUsages(failures, daDescription + " Shard " + i, details, shardStats.getSharedContentUsages(), shard.getSharedContentUsages()); } }
132133134135136137138139140141142
int shardIndex = requestedShards.getShard(area.getIndex()); // Retrieve the appropriate shard from the area. If the shard index // is invalid for some reason then we may not get back exactly the // one that we asked for but we will get one back. Shard shard = area.retrieveShard(dissectionContext, shardIndex, (AvailableShardsImpl) availableShards); if (shard == null) { throw new DissectionException( exceptionLocalizer.format("shard-not-found"));
205206207208209210211212213214215