public class FunctionsImpl extends ComponentImpl implements Functions<PulsarWorkerService>
ComponentImpl.GetStatus<X,T>componentType, workerServiceSupplier| Constructor and Description |
|---|
FunctionsImpl(Supplier<PulsarWorkerService> workerServiceSupplier) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.pulsar.common.policies.data.FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusData |
getFunctionInstanceStatus(String tenant,
String namespace,
String componentName,
String instanceId,
URI uri,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps)
Get status of a function instance.
|
org.apache.pulsar.common.policies.data.FunctionStatus |
getFunctionStatus(String tenant,
String namespace,
String componentName,
URI uri,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps)
Get statuses of all function instances.
|
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,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps)
Register a new function.
|
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,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps,
org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions)
Update a function.
|
void |
updateFunctionOnWorkerLeader(String tenant,
String namespace,
String functionName,
InputStream uploadedInputStream,
boolean delete,
URI uri,
String clientRole,
AuthenticationDataSource authenticationData) |
allowFunctionOps, changeFunctionInstanceStatus, changeFunctionStatusAllInstances, componentInstanceStatusRequestValidate, componentStatusRequestValidate, createPackagePath, deregisterFunction, downloadFunction, downloadFunction, getClassLoaderFromPackage, getFunctionInfo, getFunctionsInstanceStats, getFunctionState, getFunctionStats, getListOfConnectors, isAuthorizedRole, isSuperUser, listFunctions, putFunctionState, reloadConnectors, restartFunctionInstance, restartFunctionInstances, startFunctionInstance, startFunctionInstances, stopFunctionInstance, stopFunctionInstances, triggerFunction, uploadFunction, validateGetFunctionInstanceRequestParams, validateGetFunctionRequestParams, workerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterFunction, updateFunctionderegisterFunction, deregisterFunction, downloadFunction, downloadFunction, downloadFunction, downloadFunction, getFunctionInfo, getFunctionsInstanceStats, getFunctionState, getFunctionStats, getListOfConnectors, listFunctions, putFunctionState, reloadConnectors, restartFunctionInstance, restartFunctionInstances, startFunctionInstance, startFunctionInstances, stopFunctionInstance, stopFunctionInstances, triggerFunction, uploadFunction, workerpublic FunctionsImpl(Supplier<PulsarWorkerService> workerServiceSupplier)
public 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, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
FunctionsregisterFunction in interface Functions<PulsarWorkerService>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 FunctionclientRole - Client role for running the pulsar functionclientAuthenticationDataHttps - Authentication status of the http clientpublic 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, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions)
FunctionsupdateFunction in interface Functions<PulsarWorkerService>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 FunctionclientRole - Client role for running the Pulsar FunctionclientAuthenticationDataHttps - Authentication status of the http clientupdateOptions - Options while updating the functionpublic org.apache.pulsar.common.policies.data.FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusData getFunctionInstanceStatus(String tenant, String namespace, String componentName, String instanceId, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
getFunctionInstanceStatus in interface Functions<PulsarWorkerService>tenant - the tenant the function belongs tonamespace - the namespace the function belongs tocomponentName - the function nameinstanceId - the function instance idpublic org.apache.pulsar.common.policies.data.FunctionStatus getFunctionStatus(String tenant, String namespace, String componentName, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
getFunctionStatus in interface Functions<PulsarWorkerService>tenant - the tenant the function belongs tonamespace - the namespace the function belongs tocomponentName - the function namePulsarAdminExceptionpublic void updateFunctionOnWorkerLeader(String tenant, String namespace, String functionName, InputStream uploadedInputStream, boolean delete, URI uri, String clientRole, AuthenticationDataSource authenticationData)
updateFunctionOnWorkerLeader in interface Functions<PulsarWorkerService>Copyright © 2017–2022 Apache Software Foundation. All rights reserved.