PlacementRuleGenerator function ( String arg0 , TaskTypeConverter arg1 ) { return new TaskTypeGenerator ( arg0 , arg1 , BehaviorType . AVOID ) ; }
returns a placementrulegenerator which enforces avoidance of tasks which have the provided type . for example , this could be used to ensure that ` data ' nodes are never colocated with ` index ' nodes , or that ` data ' nodes are never colocated with other ` data ' nodes self-avoidance . note that this rule is unidirectional ; mutual avoidance requires creating separate colocate rules for each direction . note that if the avoided task does not already exist in the cluster , this will just pick a random node , as there will be nothing to avoid . concode_field_sep TaskTypeConverter typeConverter concode_elem_sep String typeToFind concode_elem_sep BehaviorType behaviorType concode_field_sep PlacementRuleGenerator createColocate concode_elem_sep PlacementRuleGenerator createColocate concode_elem_sep String getTaskType concode_elem_sep String getTaskType concode_elem_sep PlacementRule generate