Class RemoteApiV1Action.ResourcesResource
java.lang.Object
org.jenkins.plugins.lockableresources.actions.RemoteApiV1Action.ResourcesResource
- Enclosing class:
RemoteApiV1Action
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp)
-
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
-