Module org.elasticsearch.xcore
Class TransformFactory<T extends Transform,R extends Transform.Result,E extends ExecutableTransform<T,R>>
java.lang.Object
org.elasticsearch.xpack.core.watcher.transform.TransformFactory<T,R,E>
- Direct Known Subclasses:
ChainTransformFactory
public abstract class TransformFactory<T extends Transform,R extends Transform.Result,E extends ExecutableTransform<T,R>>
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract EcreateExecutable(T transform) Creates an executable transform out of the given transform.parseExecutable(String watchId, org.elasticsearch.xcontent.XContentParser parser) abstract TparseTransform(String watchId, org.elasticsearch.xcontent.XContentParser parser) Parses the given xcontent and creates a concrete transformabstract Stringtype()
-
Field Details
-
transformLogger
protected final org.apache.logging.log4j.Logger transformLogger
-
-
Constructor Details
-
TransformFactory
public TransformFactory(org.apache.logging.log4j.Logger transformLogger)
-
-
Method Details
-
type
- Returns:
- The type of the transform
-
parseTransform
public abstract T parseTransform(String watchId, org.elasticsearch.xcontent.XContentParser parser) throws IOException Parses the given xcontent and creates a concrete transform- Parameters:
watchId- The id of the watchparser- The parsing that contains the condition content- Throws:
IOException
-
createExecutable
Creates an executable transform out of the given transform. -
parseExecutable
public E parseExecutable(String watchId, org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-