Interface Functions<W extends WorkerService>
- All Superinterfaces:
Component<W>
- All Known Implementing Classes:
FunctionsImpl
The service to manage functions.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pulsar.common.policies.data.FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusDatagetFunctionInstanceStatus(String tenant, String namespace, String componentName, String instanceId, URI uri, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams) org.apache.pulsar.common.policies.data.FunctionStatusgetFunctionStatus(String tenant, String namespace, String componentName, URI uri, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams) voidregisterFunction(String tenant, String namespace, String functionName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String functionPkgUrl, org.apache.pulsar.common.functions.FunctionConfig functionConfig, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams) Register a new function.voidupdateFunction(String tenant, String namespace, String functionName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String functionPkgUrl, org.apache.pulsar.common.functions.FunctionConfig functionConfig, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Update a function.voidupdateFunctionOnWorkerLeader(String tenant, String namespace, String functionName, InputStream uploadedInputStream, boolean delete, URI uri, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams) Methods inherited from interface org.apache.pulsar.functions.worker.service.api.Component
deregisterFunction, downloadFunction, downloadFunction, getFunctionInfo, getFunctionsInstanceStats, getFunctionState, getFunctionStats, getListOfConnectors, listFunctions, putFunctionState, reloadConnectors, restartFunctionInstance, restartFunctionInstances, startFunctionInstance, startFunctionInstances, stopFunctionInstance, stopFunctionInstances, triggerFunction, uploadFunction, worker
-
Method Details
-
registerFunction
void registerFunction(String tenant, String namespace, String functionName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String functionPkgUrl, org.apache.pulsar.common.functions.FunctionConfig functionConfig, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams) Register a new function.- Parameters:
tenant- The tenant of a Pulsar Functionnamespace- The namespace of a Pulsar FunctionfunctionName- The name of a Pulsar FunctionuploadedInputStream- Input stream of bytesfileDetail- A form-data content disposition headerfunctionPkgUrl- URL path of the Pulsar Function packagefunctionConfig- Configuration of Pulsar FunctionauthParams- the authentication parameters associated with the request
-
updateFunction
void updateFunction(String tenant, String namespace, String functionName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String functionPkgUrl, org.apache.pulsar.common.functions.FunctionConfig functionConfig, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Update a function.- Parameters:
tenant- The tenant of a Pulsar Functionnamespace- The namespace of a Pulsar FunctionfunctionName- The name of a Pulsar FunctionuploadedInputStream- Input stream of bytesfileDetail- A form-data content disposition headerfunctionPkgUrl- URL path of the Pulsar Function packagefunctionConfig- Configuration of Pulsar FunctionauthParams- the authentication parameters associated with the requestupdateOptions- Options while updating the function
-
updateFunctionOnWorkerLeader
void updateFunctionOnWorkerLeader(String tenant, String namespace, String functionName, InputStream uploadedInputStream, boolean delete, URI uri, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams) -
getFunctionStatus
-
getFunctionInstanceStatus
-