Class Worker

All Implemented Interfaces:
Supplier<WorkerService>

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

    • Worker

      public Worker()
  • Method Details

    • get

      public WorkerService get()
      Specified by:
      get in interface Supplier<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 LongRunningProcessStatus getDrainStatusFromLeader(@QueryParam("workerId") String workerId)
    • getDrainStatus

      @GET @Path("/drain") public LongRunningProcessStatus getDrainStatus()
    • isLeaderReady

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