Class FunctionConfigUtils
java.lang.Object
org.apache.pulsar.functions.utils.FunctionConfigUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.pulsar.functions.proto.Function.FunctionDetailsconvert(org.apache.pulsar.common.functions.FunctionConfig functionConfig, ClassLoader classLoader) static org.apache.pulsar.common.functions.FunctionConfigconvertFromDetails(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails) static voidinferMissingArguments(org.apache.pulsar.common.functions.FunctionConfig functionConfig, boolean forwardSourceMessagePropertyEnabled) static ClassLoadervalidate(org.apache.pulsar.common.functions.FunctionConfig functionConfig, File functionPackageFile) static voidvalidateJavaFunction(org.apache.pulsar.common.functions.FunctionConfig functionConfig, ClassLoader classLoader) static org.apache.pulsar.common.functions.FunctionConfigvalidateUpdate(org.apache.pulsar.common.functions.FunctionConfig existingConfig, org.apache.pulsar.common.functions.FunctionConfig newConfig)
-
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)
-