Module org.elasticsearch.xcore
Class ActionWrapper
java.lang.Object
org.elasticsearch.xpack.core.watcher.actions.ActionWrapper
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionActionWrapper(String id, ActionThrottler throttler, ExecutableCondition condition, ExecutableTransform<? extends Transform, ? extends Transform.Result> transform, ExecutableAction<? extends Action> action, String path, Integer maxIterations) -
Method Summary
Modifier and TypeMethodDescriptionExecutableAction<? extends Action> action()booleanExecute the currentaction().inthashCode()id()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) ExecutableTransform<? extends Transform, ? extends Transform.Result> Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
ActionWrapper
public ActionWrapper(String id, ActionThrottler throttler, @Nullable ExecutableCondition condition, @Nullable ExecutableTransform<? extends Transform, ? extends Transform.Result> transform, ExecutableAction<? extends Action> action, @Nullable String path, @Nullable Integer maxIterations)
-
-
Method Details
-
id
-
condition
-
transform
-
throttler
-
action
-
execute
Execute the currentaction().This executes in the order of:
- Throttling
- Conditional Check
- Transformation
- Action
- Parameters:
ctx- The current watch's context- Returns:
- Never
null
-
equals
-
hashCode
public int hashCode() -
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-