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 Details

    • transformLogger

      protected final org.apache.logging.log4j.Logger transformLogger
  • Constructor Details

    • TransformFactory

      public TransformFactory(org.apache.logging.log4j.Logger transformLogger)
  • Method Details

    • type

      public abstract String 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 watch
      parser - The parsing that contains the condition content
      Throws:
      IOException
    • createExecutable

      public abstract E createExecutable(T transform)
      Creates an executable transform out of the given transform.
    • parseExecutable

      public E parseExecutable(String watchId, org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException