Class AbstractFileTransform

java.lang.Object
io.kestra.core.models.tasks.Task
io.kestra.plugin.graalvm.AbstractFileTransform
All Implemented Interfaces:
io.kestra.core.models.Plugin, io.kestra.core.models.PluginVersioning, io.kestra.core.models.tasks.RunnableTask<AbstractFileTransform.Output>, io.kestra.core.models.tasks.TaskInterface, io.kestra.core.models.WorkerJobLifecycle
Direct Known Subclasses:
FileTransform, FileTransform, FileTransform

public abstract class AbstractFileTransform extends io.kestra.core.models.tasks.Task implements io.kestra.core.models.tasks.RunnableTask<AbstractFileTransform.Output>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class io.kestra.core.models.tasks.Task

    io.kestra.core.models.tasks.Task.TaskBuilder<C extends io.kestra.core.models.tasks.Task,B extends io.kestra.core.models.tasks.Task.TaskBuilder<C,B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @NotNull io.kestra.core.models.property.Property<String>
     

    Fields inherited from class io.kestra.core.models.tasks.Task

    disabled, id, retry, timeout, type, version

    Fields inherited from interface io.kestra.core.models.PluginVersioning

    DESCRIPTION, TITLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.graalvm.polyglot.Context
    buildContext(io.kestra.core.runners.RunContext runContext, OutputStream out, OutputStream err)
     
    protected org.graalvm.polyglot.Context.Builder
    contextBuilder(io.kestra.core.runners.RunContext runContext)
     
    protected org.graalvm.polyglot.Source
    generateSource(String languageId, io.kestra.core.runners.RunContext runContext)
     
    protected org.graalvm.polyglot.Value
    getBindings(org.graalvm.polyglot.Context context, String languageId)
     
    run(io.kestra.core.runners.RunContext runContext, String languageId)
     

    Methods inherited from class io.kestra.core.models.tasks.Task

    findById, findById, getAssets, getDescription, getDisabled, getId, getLogLevel, getRetry, getRunIf, getTaskCache, getTimeout, getType, getVersion, getWorkerGroup, isAllowFailure, isAllowWarning, isFlowable, isLogToFile, isSendToWorkerTask

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.kestra.core.models.tasks.RunnableTask

    run

    Methods inherited from interface io.kestra.core.models.WorkerJobLifecycle

    kill, stop
  • Field Details

    • script

      @NotNull @PluginProperty(group="main") protected @NotNull io.kestra.core.models.property.Property<String> script
  • Constructor Details

    • AbstractFileTransform

      public AbstractFileTransform()
  • Method Details

    • run

      protected AbstractFileTransform.Output run(io.kestra.core.runners.RunContext runContext, String languageId) throws Exception
      Throws:
      Exception
    • buildContext

      protected org.graalvm.polyglot.Context buildContext(io.kestra.core.runners.RunContext runContext, OutputStream out, OutputStream err)
    • getBindings

      protected org.graalvm.polyglot.Value getBindings(org.graalvm.polyglot.Context context, String languageId)
    • contextBuilder

      protected org.graalvm.polyglot.Context.Builder contextBuilder(io.kestra.core.runners.RunContext runContext)
    • generateSource

      protected org.graalvm.polyglot.Source generateSource(String languageId, io.kestra.core.runners.RunContext runContext) throws io.kestra.core.exceptions.IllegalVariableEvaluationException
      Throws:
      io.kestra.core.exceptions.IllegalVariableEvaluationException