File tree 1 file changed +6
-0
lines changed
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 22
22
import org .elasticsearch .common .xcontent .ToXContentObject ;
23
23
import org .elasticsearch .common .xcontent .XContentBuilder ;
24
24
import org .elasticsearch .common .xcontent .XContentParser ;
25
+ import org .elasticsearch .tasks .Task ;
25
26
import org .elasticsearch .xpack .core .ml .dataframe .DataFrameAnalyticsConfig ;
26
27
import org .elasticsearch .xpack .core .ml .job .messages .Messages ;
27
28
import org .elasticsearch .xpack .core .ml .utils .ExceptionsHelper ;
@@ -125,6 +126,11 @@ public void setExpandedIds(Set<String> expandedIds) {
125
126
this .expandedIds = Objects .requireNonNull (expandedIds );
126
127
}
127
128
129
+ @ Override
130
+ public boolean match (Task task ) {
131
+ return expandedIds .stream ().anyMatch (expandedId -> StartDataFrameAnalyticsAction .TaskMatcher .match (task , expandedId ));
132
+ }
133
+
128
134
@ Override
129
135
public ActionRequestValidationException validate () {
130
136
return null ;
You can’t perform that action at this time.
0 commit comments