Class RemoteApiV1Action.ResourcesResource

java.lang.Object
org.jenkins.plugins.lockableresources.actions.RemoteApiV1Action.ResourcesResource
Enclosing class:
RemoteApiV1Action

public static final class RemoteApiV1Action.ResourcesResource extends Object
Lists what this server exposes, plus whether it is currently accepting new acquires.

The two travel together on purpose: split across endpoints, two client-side caches could disagree and the page would claim a resource is free while the server has stopped handing out leases. Resource state stays truthful while paused - saying "you cannot take this right now" is the client page's job.

Holder details stop at the kind. The server's admin published resources, not the names of the builds using them, and this list is rendered on a controller whose viewers may have no account here at all.

  • Constructor Details

    • ResourcesResource

      public ResourcesResource()
  • Method Details

    • doIndex

      @GET public void doIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException
      Throws:
      IOException