use of com.hazelcast.internal.services.PreJoinAwareService in project hazelcast by hazelcast.
the class NodeEngineImpl method getPreJoinOperations.
public Collection<Operation> getPreJoinOperations() {
Collection<Operation> preJoinOps = new LinkedList<>();
Collection<PreJoinAwareService> services = getServices(PreJoinAwareService.class);
for (PreJoinAwareService service : services) {
Operation preJoinOperation = service.getPreJoinOperation();
if (preJoinOperation != null) {
if (preJoinOperation.getPartitionId() >= 0) {
logger.severe("Pre-join operations operations should not have partition ID set! Service: " + service + ", Operation: " + preJoinOperation);
continue;
}
preJoinOps.add(preJoinOperation);
}
}
return preJoinOps;
}
Aggregations