public class FunctionsImpl extends ComponentResource implements Functions
auth, readTimeoutMs| Constructor and Description |
|---|
FunctionsImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
org.asynchttpclient.AsyncHttpClient asyncHttpClient,
long readTimeoutMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
createFunction(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String fileName)
Create a new function.
|
CompletableFuture<Void> |
createFunctionAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String fileName)
Create a new function asynchronously.
|
void |
createFunctionWithUrl(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String pkgUrl)
Create a new function with package url.
|
CompletableFuture<Void> |
createFunctionWithUrlAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String pkgUrl)
Create a new function with package url asynchronously.
|
void |
deleteFunction(String cluster,
String namespace,
String function)
Delete an existing function.
|
CompletableFuture<Void> |
deleteFunctionAsync(String tenant,
String namespace,
String function)
Delete an existing function asynchronously.
|
void |
downloadFunction(String destinationPath,
String path)
Download Function Code.
|
void |
downloadFunction(String destinationPath,
String tenant,
String namespace,
String functionName)
Download Function Code.
|
CompletableFuture<Void> |
downloadFunctionAsync(String destinationFile,
String path)
Download Function Code.
|
CompletableFuture<Void> |
downloadFunctionAsync(String destinationPath,
String tenant,
String namespace,
String functionName)
Download Function Code asynchronously.
|
List<org.apache.pulsar.common.functions.WorkerInfo> |
getCluster() |
List<org.apache.pulsar.common.io.ConnectorDefinition> |
getConnectorsList()
Deprecated in favor of getting sources and sinks for their own APIs.
|
org.apache.pulsar.common.functions.FunctionConfig |
getFunction(String tenant,
String namespace,
String function)
Get the configuration for the specified function.
|
CompletableFuture<org.apache.pulsar.common.functions.FunctionConfig> |
getFunctionAsync(String tenant,
String namespace,
String function)
Get the configuration for the specified function asynchronously.
|
List<String> |
getFunctions(String tenant,
String namespace)
Get the list of functions.
|
CompletableFuture<List<String>> |
getFunctionsAsync(String tenant,
String namespace)
Get the list of functions asynchronously.
|
org.apache.pulsar.common.functions.FunctionState |
getFunctionState(String tenant,
String namespace,
String function,
String key)
Fetch the current state associated with a Pulsar Function.
|
CompletableFuture<org.apache.pulsar.common.functions.FunctionState> |
getFunctionStateAsync(String tenant,
String namespace,
String function,
String key)
Fetch the current state associated with a Pulsar Function asynchronously.
|
org.apache.pulsar.common.policies.data.FunctionStats |
getFunctionStats(String tenant,
String namespace,
String function)
Gets the current stats of a function.
|
org.apache.pulsar.common.policies.data.FunctionStats.FunctionInstanceStats.FunctionInstanceStatsData |
getFunctionStats(String tenant,
String namespace,
String function,
int id)
Gets the current stats of a function instance.
|
CompletableFuture<org.apache.pulsar.common.policies.data.FunctionStats> |
getFunctionStatsAsync(String tenant,
String namespace,
String function)
Gets the current stats of a function asynchronously.
|
CompletableFuture<org.apache.pulsar.common.policies.data.FunctionStats.FunctionInstanceStats.FunctionInstanceStatsData> |
getFunctionStatsAsync(String tenant,
String namespace,
String function,
int id)
Gets the current stats of a function instance asynchronously.
|
org.apache.pulsar.common.policies.data.FunctionStatus |
getFunctionStatus(String tenant,
String namespace,
String function)
Gets the current status of a function.
|
org.apache.pulsar.common.policies.data.FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusData |
getFunctionStatus(String tenant,
String namespace,
String function,
int id)
Gets the current status of a function instance.
|
CompletableFuture<org.apache.pulsar.common.policies.data.FunctionStatus> |
getFunctionStatusAsync(String tenant,
String namespace,
String function)
Gets the current status of a function asynchronously.
|
CompletableFuture<org.apache.pulsar.common.policies.data.FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusData> |
getFunctionStatusAsync(String tenant,
String namespace,
String function,
int id)
Gets the current status of a function instance asynchronously.
|
Set<String> |
getSinks()
Deprecated in favor of getting sources and sinks for their own APIs.
|
Set<String> |
getSources()
Deprecated in favor of getting sources and sinks for their own APIs.
|
void |
putFunctionState(String tenant,
String namespace,
String function,
org.apache.pulsar.common.functions.FunctionState state)
Puts the given state associated with a Pulsar Function.
|
CompletableFuture<Void> |
putFunctionStateAsync(String tenant,
String namespace,
String function,
org.apache.pulsar.common.functions.FunctionState state)
Puts the given state associated with a Pulsar Function asynchronously.
|
void |
restartFunction(String tenant,
String namespace,
String functionName)
Restart all function instances.
|
void |
restartFunction(String tenant,
String namespace,
String functionName,
int instanceId)
Restart function instance.
|
CompletableFuture<Void> |
restartFunctionAsync(String tenant,
String namespace,
String function)
Restart all function instances asynchronously.
|
CompletableFuture<Void> |
restartFunctionAsync(String tenant,
String namespace,
String function,
int instanceId)
Restart function instance asynchronously.
|
void |
startFunction(String tenant,
String namespace,
String functionName)
Start all function instances.
|
void |
startFunction(String tenant,
String namespace,
String functionName,
int instanceId)
Start function instance.
|
CompletableFuture<Void> |
startFunctionAsync(String tenant,
String namespace,
String function)
Start all function instances asynchronously.
|
CompletableFuture<Void> |
startFunctionAsync(String tenant,
String namespace,
String function,
int instanceId)
Start function instance asynchronously.
|
void |
stopFunction(String tenant,
String namespace,
String functionName)
Stop all function instances.
|
void |
stopFunction(String tenant,
String namespace,
String functionName,
int instanceId)
Stop function instance.
|
CompletableFuture<Void> |
stopFunctionAsync(String tenant,
String namespace,
String function)
Stop all function instances asynchronously.
|
CompletableFuture<Void> |
stopFunctionAsync(String tenant,
String namespace,
String function,
int instanceId)
Stop function instance asynchronously.
|
String |
triggerFunction(String tenant,
String namespace,
String functionName,
String topic,
String triggerValue,
String triggerFile)
Triggers the function by writing to the input topic.
|
CompletableFuture<String> |
triggerFunctionAsync(String tenant,
String namespace,
String function,
String topic,
String triggerValue,
String triggerFile)
Triggers the function by writing to the input topic asynchronously.
|
void |
updateFunction(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String fileName)
Update the configuration for a function.
|
void |
updateFunction(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String fileName,
org.apache.pulsar.common.functions.UpdateOptions updateOptions)
Update the configuration for a function.
|
CompletableFuture<Void> |
updateFunctionAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String fileName)
Update the configuration for a function asynchronously.
|
CompletableFuture<Void> |
updateFunctionAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String fileName,
org.apache.pulsar.common.functions.UpdateOptions updateOptions)
Update the configuration for a function asynchronously.
|
void |
updateFunctionWithUrl(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String pkgUrl)
Update the configuration for a function.
|
void |
updateFunctionWithUrl(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String pkgUrl,
org.apache.pulsar.common.functions.UpdateOptions updateOptions)
Update the configuration for a function.
|
CompletableFuture<Void> |
updateFunctionWithUrlAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String pkgUrl)
Update the configuration for a function asynchronously.
|
CompletableFuture<Void> |
updateFunctionWithUrlAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String pkgUrl,
org.apache.pulsar.common.functions.UpdateOptions updateOptions)
Update the configuration for a function asynchronously.
|
void |
updateOnWorkerLeader(String tenant,
String namespace,
String function,
byte[] functionMetaData,
boolean delete) |
CompletableFuture<Void> |
updateOnWorkerLeaderAsync(String tenant,
String namespace,
String function,
byte[] functionMetaData,
boolean delete) |
void |
uploadFunction(String sourceFile,
String path)
Upload Data.
|
CompletableFuture<Void> |
uploadFunctionAsync(String sourceFile,
String path)
Upload Data asynchronously.
|
addAuthHeadersasyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, request, requestAsyncpublic FunctionsImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
org.asynchttpclient.AsyncHttpClient asyncHttpClient,
long readTimeoutMs)
public List<String> getFunctions(String tenant, String namespace) throws PulsarAdminException
Functions
["f1", "f2", "f3"]
getFunctions in interface FunctionsPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException - Unexpected errorpublic CompletableFuture<List<String>> getFunctionsAsync(String tenant, String namespace)
Functions
["f1", "f2", "f3"]
getFunctionsAsync in interface Functionspublic org.apache.pulsar.common.functions.FunctionConfig getFunction(String tenant, String namespace, String function) throws PulsarAdminException
Functions
{ serviceUrl : "http://my-broker.example.com:8080/" }
getFunction in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namePulsarAdminException.NotAuthorizedException - You don't have admin permission to get the configuration of the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.functions.FunctionConfig> getFunctionAsync(String tenant, String namespace, String function)
Functions
{ serviceUrl : "http://my-broker.example.com:8080/" }
getFunctionAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namepublic org.apache.pulsar.common.policies.data.FunctionStatus getFunctionStatus(String tenant, String namespace, String function) throws PulsarAdminException
FunctionsgetFunctionStatus in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namePulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.policies.data.FunctionStatus> getFunctionStatusAsync(String tenant, String namespace, String function)
FunctionsgetFunctionStatusAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namepublic org.apache.pulsar.common.policies.data.FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusData getFunctionStatus(String tenant, String namespace, String function, int id) throws PulsarAdminException
FunctionsgetFunctionStatus in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function nameid - Function instance-idPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.policies.data.FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusData> getFunctionStatusAsync(String tenant, String namespace, String function, int id)
FunctionsgetFunctionStatusAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function nameid - Function instance-idpublic org.apache.pulsar.common.policies.data.FunctionStats.FunctionInstanceStats.FunctionInstanceStatsData getFunctionStats(String tenant, String namespace, String function, int id) throws PulsarAdminException
FunctionsgetFunctionStats in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function nameid - Function instance-idPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.policies.data.FunctionStats.FunctionInstanceStats.FunctionInstanceStatsData> getFunctionStatsAsync(String tenant, String namespace, String function, int id)
FunctionsgetFunctionStatsAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function nameid - Function instance-idpublic org.apache.pulsar.common.policies.data.FunctionStats getFunctionStats(String tenant, String namespace, String function) throws PulsarAdminException
FunctionsgetFunctionStats in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namePulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.policies.data.FunctionStats> getFunctionStatsAsync(String tenant, String namespace, String function)
FunctionsgetFunctionStatsAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namepublic void createFunction(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String fileName)
throws PulsarAdminException
FunctionscreateFunction in interface FunctionsfunctionConfig - the function configuration objectPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> createFunctionAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig, String fileName)
FunctionscreateFunctionAsync in interface FunctionsfunctionConfig - the function configuration objectpublic void createFunctionWithUrl(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String pkgUrl)
throws PulsarAdminException
FunctionscreateFunctionWithUrl in interface FunctionsfunctionConfig - the function configuration objectpkgUrl - url from which pkg can be downloadedPulsarAdminExceptionpublic CompletableFuture<Void> createFunctionWithUrlAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig, String pkgUrl)
FunctionscreateFunctionWithUrlAsync in interface FunctionsfunctionConfig - the function configuration objectpkgUrl - url from which pkg can be downloadedpublic void deleteFunction(String cluster, String namespace, String function) throws PulsarAdminException
FunctionsdeleteFunction in interface Functionscluster - Tenant namenamespace - Namespace namefunction - Function namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Cluster does not existPulsarAdminException.PreconditionFailedException - Cluster is not emptyPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> deleteFunctionAsync(String tenant, String namespace, String function)
FunctionsdeleteFunctionAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namepublic void updateFunction(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String fileName)
throws PulsarAdminException
FunctionsupdateFunction in interface FunctionsfunctionConfig - the function configuration objectPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> updateFunctionAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig, String fileName)
FunctionsupdateFunctionAsync in interface FunctionsfunctionConfig - the function configuration objectpublic void updateFunction(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String fileName,
org.apache.pulsar.common.functions.UpdateOptions updateOptions)
throws PulsarAdminException
FunctionsupdateFunction in interface FunctionsfunctionConfig - the function configuration objectupdateOptions - options for the update operationsPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> updateFunctionAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig, String fileName, org.apache.pulsar.common.functions.UpdateOptions updateOptions)
FunctionsupdateFunctionAsync in interface FunctionsfunctionConfig - the function configuration objectupdateOptions - options for the update operationspublic void updateFunctionWithUrl(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String pkgUrl,
org.apache.pulsar.common.functions.UpdateOptions updateOptions)
throws PulsarAdminException
FunctionsupdateFunctionWithUrl in interface FunctionsfunctionConfig - the function configuration objectpkgUrl - url from which pkg can be downloadedupdateOptions - options for the update operationsPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> updateFunctionWithUrlAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig, String pkgUrl, org.apache.pulsar.common.functions.UpdateOptions updateOptions)
FunctionsupdateFunctionWithUrlAsync in interface FunctionsfunctionConfig - the function configuration objectpkgUrl - url from which pkg can be downloadedupdateOptions - options for the update operationspublic void updateFunctionWithUrl(org.apache.pulsar.common.functions.FunctionConfig functionConfig,
String pkgUrl)
throws PulsarAdminException
FunctionsupdateFunctionWithUrl in interface FunctionsfunctionConfig - the function configuration objectpkgUrl - url from which pkg can be downloadedPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> updateFunctionWithUrlAsync(org.apache.pulsar.common.functions.FunctionConfig functionConfig, String pkgUrl)
FunctionsupdateFunctionWithUrlAsync in interface FunctionsfunctionConfig - the function configuration objectpkgUrl - url from which pkg can be downloadedpublic String triggerFunction(String tenant, String namespace, String functionName, String topic, String triggerValue, String triggerFile) throws PulsarAdminException
FunctionstriggerFunction in interface Functionstenant - Tenant namenamespace - Namespace namefunctionName - Function nametriggerValue - The input that will be written to input topictriggerFile - The file which contains the input that will be written to input topicPulsarAdminException - Unexpected errorpublic CompletableFuture<String> triggerFunctionAsync(String tenant, String namespace, String function, String topic, String triggerValue, String triggerFile)
FunctionstriggerFunctionAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function nametriggerValue - The input that will be written to input topictriggerFile - The file which contains the input that will be written to input topicpublic void restartFunction(String tenant, String namespace, String functionName, int instanceId) throws PulsarAdminException
FunctionsrestartFunction in interface Functionstenant - Tenant namenamespace - Namespace namefunctionName - Function nameinstanceId - Function instanceIdPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> restartFunctionAsync(String tenant, String namespace, String function, int instanceId)
FunctionsrestartFunctionAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function nameinstanceId - Function instanceIdpublic void restartFunction(String tenant, String namespace, String functionName) throws PulsarAdminException
FunctionsrestartFunction in interface Functionstenant - Tenant namenamespace - Namespace namefunctionName - Function namePulsarAdminException - Unexpected errorpublic CompletableFuture<Void> restartFunctionAsync(String tenant, String namespace, String function)
FunctionsrestartFunctionAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namepublic void stopFunction(String tenant, String namespace, String functionName, int instanceId) throws PulsarAdminException
FunctionsstopFunction in interface Functionstenant - Tenant namenamespace - Namespace namefunctionName - Function nameinstanceId - Function instanceIdPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> stopFunctionAsync(String tenant, String namespace, String function, int instanceId)
FunctionsstopFunctionAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function nameinstanceId - Function instanceIdpublic void stopFunction(String tenant, String namespace, String functionName) throws PulsarAdminException
FunctionsstopFunction in interface Functionstenant - Tenant namenamespace - Namespace namefunctionName - Function namePulsarAdminException - Unexpected errorpublic CompletableFuture<Void> stopFunctionAsync(String tenant, String namespace, String function)
FunctionsstopFunctionAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namepublic void startFunction(String tenant, String namespace, String functionName, int instanceId) throws PulsarAdminException
FunctionsstartFunction in interface Functionstenant - Tenant namenamespace - Namespace namefunctionName - Function nameinstanceId - Function instanceIdPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> startFunctionAsync(String tenant, String namespace, String function, int instanceId)
FunctionsstartFunctionAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function nameinstanceId - Function instanceIdpublic void startFunction(String tenant, String namespace, String functionName) throws PulsarAdminException
FunctionsstartFunction in interface Functionstenant - Tenant namenamespace - Namespace namefunctionName - Function namePulsarAdminException - Unexpected errorpublic CompletableFuture<Void> startFunctionAsync(String tenant, String namespace, String function)
FunctionsstartFunctionAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namepublic void uploadFunction(String sourceFile, String path) throws PulsarAdminException
FunctionsuploadFunction in interface FunctionssourceFile - dataFile that needs to be uploadedpath - Path where data should be storedPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> uploadFunctionAsync(String sourceFile, String path)
FunctionsuploadFunctionAsync in interface FunctionssourceFile - dataFile that needs to be uploadedpath - Path where data should be storedpublic void downloadFunction(String destinationPath, String tenant, String namespace, String functionName) throws PulsarAdminException
FunctionsdownloadFunction in interface FunctionsdestinationPath - file where data should be downloaded totenant - Tenant namenamespace - Namespace namefunctionName - Function namePulsarAdminExceptionpublic CompletableFuture<Void> downloadFunctionAsync(String destinationPath, String tenant, String namespace, String functionName)
FunctionsdownloadFunctionAsync in interface FunctionsdestinationPath - file where data should be downloaded totenant - Tenant namenamespace - Namespace namefunctionName - Function namepublic void downloadFunction(String destinationPath, String path) throws PulsarAdminException
FunctionsdownloadFunction in interface FunctionsdestinationPath - file where data should be downloaded topath - Path where data is locatedPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> downloadFunctionAsync(String destinationFile, String path)
FunctionsdownloadFunctionAsync in interface FunctionsdestinationFile - file where data should be downloaded topath - Path where data is locatedpublic List<org.apache.pulsar.common.io.ConnectorDefinition> getConnectorsList() throws PulsarAdminException
FunctionsgetConnectorsList in interface FunctionsPulsarAdminException - Unexpected errorpublic Set<String> getSources() throws PulsarAdminException
FunctionsgetSources in interface FunctionsPulsarAdminException - Unexpected errorpublic Set<String> getSinks() throws PulsarAdminException
FunctionsgetSinks in interface FunctionsPulsarAdminException - Unexpected errorpublic List<org.apache.pulsar.common.functions.WorkerInfo> getCluster() throws PulsarAdminException
PulsarAdminExceptionpublic org.apache.pulsar.common.functions.FunctionState getFunctionState(String tenant, String namespace, String function, String key) throws PulsarAdminException
Functions
{ "value : 12, version : 2"}
getFunctionState in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namekey - Key name of StatePulsarAdminException.NotAuthorizedException - You don't have admin permission to get the configuration of the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorpublic CompletableFuture<org.apache.pulsar.common.functions.FunctionState> getFunctionStateAsync(String tenant, String namespace, String function, String key)
Functions
{ "value : 12, version : 2"}
getFunctionStateAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namekey - Key name of Statepublic void putFunctionState(String tenant, String namespace, String function, org.apache.pulsar.common.functions.FunctionState state) throws PulsarAdminException
Functions
{ "value : 12, version : 2"}
putFunctionState in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namestate - FunctionStatePulsarAdminException.NotAuthorizedException - You don't have admin permission to get the configuration of the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorpublic CompletableFuture<Void> putFunctionStateAsync(String tenant, String namespace, String function, org.apache.pulsar.common.functions.FunctionState state)
Functions
{ "value : 12, version : 2"}
putFunctionStateAsync in interface Functionstenant - Tenant namenamespace - Namespace namefunction - Function namestate - FunctionStatepublic void updateOnWorkerLeader(String tenant, String namespace, String function, byte[] functionMetaData, boolean delete) throws PulsarAdminException
PulsarAdminExceptionpublic CompletableFuture<Void> updateOnWorkerLeaderAsync(String tenant, String namespace, String function, byte[] functionMetaData, boolean delete)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.