}
return new ArrayList<Integer>(hash.getHashes());
}
if (contextPartitionSelector instanceof ContextPartitionSelectorFiltered) {
ContextPartitionSelectorFiltered filter = (ContextPartitionSelectorFiltered) contextPartitionSelector;
ContextPartitionIdentifierHash identifierHash = new ContextPartitionIdentifierHash();
List<Integer> accepted = new ArrayList<Integer>();
for (Map.Entry<Integer, ContextControllerInstanceHandle> entry : partitionKeys.entrySet()) {
identifierHash.setHash(entry.getKey());
identifierHash.setContextPartitionId(entry.getValue().getContextPartitionOrPathId());
if (filter.filter(identifierHash)) {
accepted.add(entry.getValue().getContextPartitionOrPathId());
}
}
return accepted;