public static SlotProfile preferredLocality ( ResourceProfile resourceProfile , Collection < TaskManagerLocation > preferredLocations ) { return new SlotProfile ( resourceProfile , preferredLocations , Collections . emptyList ( ) ) ; }
Returns a slot profile for the given resource profile and the preferred locations .