Class Functions
java.lang.Object
org.apache.pulsar.broker.web.PulsarWebResource
org.apache.pulsar.broker.admin.AdminResource
org.apache.pulsar.broker.admin.v2.Functions
- Direct Known Subclasses:
Functions
@Path("/functions")
@Produces("application/json")
@Consumes("application/json")
public class Functions
extends AdminResource
-
Field Summary
Fields inherited from class org.apache.pulsar.broker.admin.AdminResource
namespaceName, topicNameFields inherited from class org.apache.pulsar.broker.web.PulsarWebResource
httpRequest, servletContext, uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsederegisterFunction(String tenant, String namespace, String functionName) javax.ws.rs.core.ResponsedownloadFunction(String path) List<org.apache.pulsar.common.io.ConnectorDefinition>javax.ws.rs.core.ResponsegetFunctionInfo(String tenant, String namespace, String functionName) javax.ws.rs.core.ResponsegetFunctionInstanceStatus(String tenant, String namespace, String functionName, String instanceId) javax.ws.rs.core.ResponsegetFunctionState(String tenant, String namespace, String functionName, String key) javax.ws.rs.core.ResponsegetFunctionStatus(String tenant, String namespace, String functionName) javax.ws.rs.core.ResponselistFunctions(String tenant, String namespace) javax.ws.rs.core.ResponseregisterFunction(String tenant, String namespace, String functionName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String functionPkgUrl, String functionDetailsJson) javax.ws.rs.core.ResponserestartFunction(String tenant, String namespace, String functionName) javax.ws.rs.core.ResponserestartFunction(String tenant, String namespace, String functionName, String instanceId) javax.ws.rs.core.ResponsestopFunction(String tenant, String namespace, String functionName) javax.ws.rs.core.ResponsestopFunction(String tenant, String namespace, String functionName, String instanceId) javax.ws.rs.core.ResponsetriggerFunction(String tenant, String namespace, String functionName, String triggerValue, InputStream triggerStream, String topic) javax.ws.rs.core.ResponseupdateFunction(String tenant, String namespace, String functionName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String functionPkgUrl, String functionDetailsJson) javax.ws.rs.core.ResponseuploadFunction(InputStream uploadedInputStream, String path) Methods inherited from class org.apache.pulsar.broker.admin.AdminResource
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersAsync, dispatchRate, domain, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, filterSystemTopic, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getNamespaceReplicatedClustersAsync, getPartitionedTopicList, getPartitionedTopicListAsync, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getPartitionedTopicNotFoundErrorMessage, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getSubNotFoundErrorMessage, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isNotFoundException, isRedirectException, jsonMapper, namespaceBacklogQuota, replicatorDispatchRate, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreateExtendedPartitionsAsync, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadataAsync, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicName, validateTopicNameMethods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, resumeAsyncResponseExceptionally, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateBundleOwnershipAsync, validateClusterForTenant, validateClusterForTenantAsync, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleOwnershipAsync, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validatePeerClusterConflictAsync, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
Constructor Details
-
Functions
public Functions()
-
-
Method Details
-
registerFunction
@POST @Path("/{tenant}/{namespace}/{functionName}") @Consumes("multipart/form-data") public javax.ws.rs.core.Response registerFunction(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String functionPkgUrl, String functionDetailsJson) -
updateFunction
@PUT @Path("/{tenant}/{namespace}/{functionName}") @Consumes("multipart/form-data") public javax.ws.rs.core.Response updateFunction(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String functionPkgUrl, String functionDetailsJson) -
deregisterFunction
-
getFunctionInfo
@GET @Path("/{tenant}/{namespace}/{functionName}") public javax.ws.rs.core.Response getFunctionInfo(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName) throws IOException - Throws:
IOException
-
getFunctionInstanceStatus
@GET @Path("/{tenant}/{namespace}/{functionName}/{instanceId}/status") public javax.ws.rs.core.Response getFunctionInstanceStatus(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName, @PathParam("instanceId") String instanceId) throws IOException - Throws:
IOException
-
getFunctionStatus
@GET @Path("/{tenant}/{namespace}/{functionName}/status") public javax.ws.rs.core.Response getFunctionStatus(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName) throws IOException - Throws:
IOException
-
listFunctions
-
triggerFunction
@POST @Path("/{tenant}/{namespace}/{functionName}/trigger") @Consumes("multipart/form-data") public javax.ws.rs.core.Response triggerFunction(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName, String triggerValue, InputStream triggerStream, String topic) -
getFunctionState
-
restartFunction
@POST @Path("/{tenant}/{namespace}/{functionName}/{instanceId}/restart") @Consumes("application/json") public javax.ws.rs.core.Response restartFunction(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName, @PathParam("instanceId") String instanceId) -
restartFunction
-
stopFunction
@POST @Path("/{tenant}/{namespace}/{functionName}/{instanceId}/stop") @Consumes("application/json") public javax.ws.rs.core.Response stopFunction(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName, @PathParam("instanceId") String instanceId) -
stopFunction
-
uploadFunction
@POST @Path("/upload") @Consumes("multipart/form-data") public javax.ws.rs.core.Response uploadFunction(InputStream uploadedInputStream, String path) -
downloadFunction
@GET @Path("/download") public javax.ws.rs.core.Response downloadFunction(@QueryParam("path") String path) -
getConnectorsList
@GET @Path("/connectors") public List<org.apache.pulsar.common.io.ConnectorDefinition> getConnectorsList() throws IOException- Throws:
IOException
-