Class SourcesBase

Direct Known Subclasses:
Source, Sources

public class SourcesBase extends AdminResource
  • Constructor Details

    • SourcesBase

      public SourcesBase()
  • Method Details

    • registerSource

      @POST @Path("/{tenant}/{namespace}/{sourceName}") @Consumes("multipart/form-data") public void registerSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sourcePkgUrl, org.apache.pulsar.common.io.SourceConfig sourceConfig)
    • updateSource

      @PUT @Path("/{tenant}/{namespace}/{sourceName}") @Consumes("multipart/form-data") public void updateSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sourcePkgUrl, org.apache.pulsar.common.io.SourceConfig sourceConfig, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions)
    • deregisterSource

      @DELETE @Path("/{tenant}/{namespace}/{sourceName}") public void deregisterSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName)
    • getSourceInfo

      @GET @Path("/{tenant}/{namespace}/{sourceName}") public org.apache.pulsar.common.io.SourceConfig getSourceInfo(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName) throws IOException
      Throws:
      IOException
    • getSourceInstanceStatus

      @GET @Produces("application/json") @Path("/{tenant}/{namespace}/{sourceName}/{instanceId}/status") public org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusData getSourceInstanceStatus(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName, @PathParam("instanceId") String instanceId) throws IOException
      Throws:
      IOException
    • getSourceStatus

      @GET @Produces("application/json") @Path("/{tenant}/{namespace}/{sourceName}/status") public org.apache.pulsar.common.policies.data.SourceStatus getSourceStatus(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName) throws IOException
      Throws:
      IOException
    • listSources

      @GET @Consumes("application/json") @Path("/{tenant}/{namespace}") public List<String> listSources(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace)
    • restartSource

      @POST @Path("/{tenant}/{namespace}/{sourceName}/{instanceId}/restart") @Consumes("application/json") public void restartSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName, @PathParam("instanceId") String instanceId)
    • restartSource

      @POST @Path("/{tenant}/{namespace}/{sourceName}/restart") @Consumes("application/json") public void restartSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName)
    • stopSource

      @POST @Path("/{tenant}/{namespace}/{sourceName}/{instanceId}/stop") @Consumes("application/json") public void stopSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName, @PathParam("instanceId") String instanceId)
    • stopSource

      @POST @Path("/{tenant}/{namespace}/{sourceName}/stop") @Consumes("application/json") public void stopSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName)
    • startSource

      @POST @Path("/{tenant}/{namespace}/{sourceName}/{instanceId}/start") @Consumes("application/json") public void startSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName, @PathParam("instanceId") String instanceId)
    • startSource

      @POST @Path("/{tenant}/{namespace}/{sourceName}/start") @Consumes("application/json") public void startSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName)
    • getSourceList

      @GET @Produces("application/json") @Path("/builtinsources") public List<org.apache.pulsar.common.io.ConnectorDefinition> getSourceList()
    • getSourceConfigDefinition

      @GET @Produces("application/json") @Path("/builtinsources/{name}/configdefinition") public List<org.apache.pulsar.common.io.ConfigFieldDefinition> getSourceConfigDefinition(@PathParam("name") String name) throws IOException
      Throws:
      IOException
    • reloadSources

      @POST @Path("/reloadBuiltInSources") public void reloadSources()