use of com.hazelcast.internal.partition.FragmentedMigrationAwareService in project hazelcast by hazelcast.
the class AbstractPartitionOperation method createReplicationOperations.
private Collection<Operation> createReplicationOperations(PartitionReplicationEvent event, boolean nonFragmentedOnly) {
Collection<Operation> operations = new ArrayList<>();
NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine();
Collection<ServiceInfo> services = nodeEngine.getServiceInfos(MigrationAwareService.class);
for (ServiceInfo serviceInfo : services) {
MigrationAwareService service = serviceInfo.getService();
if (nonFragmentedOnly && service instanceof FragmentedMigrationAwareService) {
// skip fragmented services
continue;
}
Operation op = service.prepareReplicationOperation(event);
if (op != null) {
op.setServiceName(serviceInfo.getName());
operations.add(op);
}
}
return operations;
}
Aggregations