Class Worker

All Implemented Interfaces:
Supplier<org.apache.pulsar.functions.worker.WorkerService>

@Path("/worker") public class Worker extends AdminResource implements Supplier<org.apache.pulsar.functions.worker.WorkerService>
  • Constructor Details

    • Worker

      public Worker()
  • Method Details

    • get

      public org.apache.pulsar.functions.worker.WorkerService get()
      Specified by:
      get in interface Supplier<org.apache.pulsar.functions.worker.WorkerService>
    • getCluster

      @GET @Path("/cluster") @Produces("application/json") public List<org.apache.pulsar.common.functions.WorkerInfo> getCluster()
    • getClusterLeader

      @GET @Path("/cluster/leader") @Produces("application/json") public org.apache.pulsar.common.functions.WorkerInfo getClusterLeader()
    • getAssignments

      @GET @Path("/assignments") @Produces("application/json") public Map<String,Collection<String>> getAssignments()
    • getConnectorsList

      @GET @Path("/connectors") @Produces("application/json") public List<org.apache.pulsar.common.io.ConnectorDefinition> getConnectorsList() throws IOException
      Throws:
      IOException
    • rebalance

      @PUT @Path("/rebalance") public void rebalance()
    • drainAtLeader

      @PUT @Path("/leader/drain") public void drainAtLeader(@QueryParam("workerId") String workerId)
    • drain

      @PUT @Path("/drain") public void drain()
    • getDrainStatusFromLeader

      @GET @Path("/leader/drain") public org.apache.pulsar.client.admin.LongRunningProcessStatus getDrainStatusFromLeader(@QueryParam("workerId") String workerId)
    • getDrainStatus

      @GET @Path("/drain") public org.apache.pulsar.client.admin.LongRunningProcessStatus getDrainStatus()
    • isLeaderReady

      @GET @Path("/cluster/leader/ready") public Boolean isLeaderReady()