MemberImpl current = getMember(migrationInfo.getSource());
MemberImpl newOwner = getMember(migrationInfo.getDestination());
MigrationEvent event = new MigrationEvent(migrationInfo.getPartitionId(), current, newOwner, status);
EventService eventService = nodeEngine.getEventService();
Collection<EventRegistration> registrations = eventService.getRegistrations(SERVICE_NAME, SERVICE_NAME);
eventService.publishEvent(SERVICE_NAME, registrations, event, event.getPartitionId());
}
@Override
public String addMigrationListener(MigrationListener listener) {
EventService eventService = nodeEngine.getEventService();