Class FunctionConfigUtils

java.lang.Object
org.apache.pulsar.functions.utils.FunctionConfigUtils

public class FunctionConfigUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.pulsar.functions.proto.Function.FunctionDetails
    convert(org.apache.pulsar.common.functions.FunctionConfig functionConfig, ClassLoader classLoader)
     
    static org.apache.pulsar.common.functions.FunctionConfig
    convertFromDetails(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)
     
    static void
    inferMissingArguments(org.apache.pulsar.common.functions.FunctionConfig functionConfig, boolean forwardSourceMessagePropertyEnabled)
     
    validate(org.apache.pulsar.common.functions.FunctionConfig functionConfig, File functionPackageFile)
     
    static void
    validateJavaFunction(org.apache.pulsar.common.functions.FunctionConfig functionConfig, ClassLoader classLoader)
     
    static org.apache.pulsar.common.functions.FunctionConfig
    validateUpdate(org.apache.pulsar.common.functions.FunctionConfig existingConfig, org.apache.pulsar.common.functions.FunctionConfig newConfig)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FunctionConfigUtils

      public FunctionConfigUtils()
  • Method Details

    • convert

      public static org.apache.pulsar.functions.proto.Function.FunctionDetails convert(org.apache.pulsar.common.functions.FunctionConfig functionConfig, ClassLoader classLoader) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • convertFromDetails

      public static org.apache.pulsar.common.functions.FunctionConfig convertFromDetails(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails)
    • inferMissingArguments

      public static void inferMissingArguments(org.apache.pulsar.common.functions.FunctionConfig functionConfig, boolean forwardSourceMessagePropertyEnabled)
    • validate

      public static ClassLoader validate(org.apache.pulsar.common.functions.FunctionConfig functionConfig, File functionPackageFile)
    • validateJavaFunction

      public static void validateJavaFunction(org.apache.pulsar.common.functions.FunctionConfig functionConfig, ClassLoader classLoader)
    • validateUpdate

      public static org.apache.pulsar.common.functions.FunctionConfig validateUpdate(org.apache.pulsar.common.functions.FunctionConfig existingConfig, org.apache.pulsar.common.functions.FunctionConfig newConfig)