Class Functions

Direct Known Subclasses:
Functions

@Path("/functions") @Produces("application/json") @Consumes("application/json") public class Functions extends AdminResource
  • 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

      @DELETE @Path("/{tenant}/{namespace}/{functionName}") public javax.ws.rs.core.Response deregisterFunction(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName)
    • 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

      @GET @Path("/{tenant}/{namespace}") public javax.ws.rs.core.Response listFunctions(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace)
    • 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

      @GET @Path("/{tenant}/{namespace}/{functionName}/state/{key}") public javax.ws.rs.core.Response getFunctionState(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName, @PathParam("key") String key)
    • 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

      @POST @Path("/{tenant}/{namespace}/{functionName}/restart") @Consumes("application/json") public javax.ws.rs.core.Response restartFunction(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName)
    • 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

      @POST @Path("/{tenant}/{namespace}/{functionName}/stop") @Consumes("application/json") public javax.ws.rs.core.Response stopFunction(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("functionName") String functionName)
    • 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