Module org.elasticsearch.xcore
Class ExecutableAction<A extends Action>
java.lang.Object
org.elasticsearch.xpack.core.watcher.actions.ExecutableAction<A>
- 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
FieldsModifier and TypeFieldDescriptionprotected final Aprotected final org.apache.logging.log4j.LoggerFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExecutableAction(A action, org.apache.logging.log4j.Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionaction()booleanabstract Action.Resultexecute(String actionId, WatchExecutionContext context, Payload payload) inthashCode()org.apache.logging.log4j.Loggerlogger()yack...final org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) type()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
action
-
logger
protected final org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
ExecutableAction
-
-
Method Details
-
type
- Returns:
- the type of this action
-
action
-
logger
public org.apache.logging.log4j.Logger logger()yack... needed to expose that for testing purposes -
execute
public abstract Action.Result execute(String actionId, WatchExecutionContext context, Payload payload) throws Exception - Throws:
Exception
-
equals
-
hashCode
public int hashCode() -
toXContent
public final 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
-