Class FunctionConfigUtils
java.lang.Object
org.apache.pulsar.functions.utils.FunctionConfigUtils
-
Nested Class Summary
Nested Classes -
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.functions.proto.Function.FunctionDetailsconvert(org.apache.pulsar.common.functions.FunctionConfig functionConfig, FunctionConfigUtils.ExtractedFunctionDetails extractedDetails) 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 org.apache.pulsar.functions.proto.Function.FunctionDetailsvalidateFunctionDetails(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails) validateJavaFunction(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
-
convert
public static org.apache.pulsar.functions.proto.Function.FunctionDetails convert(org.apache.pulsar.common.functions.FunctionConfig functionConfig, FunctionConfigUtils.ExtractedFunctionDetails extractedDetails) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
validateFunctionDetails
public static org.apache.pulsar.functions.proto.Function.FunctionDetails validateFunctionDetails(org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails) 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 FunctionConfigUtils.ExtractedFunctionDetails 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)
-