@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class Api extends Object
Constructor and Description |
---|
Api(ConfigRepo.Snapshot snapshot,
String configRepoUrl,
SharedNodeCloud cloud,
String jenkinsUrl) |
Modifier and Type | Method and Description |
---|---|
DiscoverResponse |
discover()
Request to discover the state of the Orchestrator.
|
void |
doImmediatelyReturnNode()
Immediately return node to orchestrator.
|
void |
doNodeStatus(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Query Executor Jenkins to report the status of shared node.
|
void |
doReportUsage(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
void |
doUtilizeNode(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Request to utilize reserved computer.
|
void |
reportWorkload(ReportWorkloadRequest.Workload workload)
Put the queue items to Orchestrator
|
void |
returnNode(SharedNode node)
Send request to return node.
|
public Api(@Nonnull ConfigRepo.Snapshot snapshot, @Nonnull String configRepoUrl, @Nonnull SharedNodeCloud cloud, @Nonnull String jenkinsUrl) throws IllegalStateException
IllegalStateException
public void reportWorkload(@Nonnull ReportWorkloadRequest.Workload workload)
@Nonnull public DiscoverResponse discover() throws ActionFailed
ActionFailed
public void returnNode(@Nonnull SharedNode node)
public void doUtilizeNode(@Nonnull org.kohsuke.stapler.StaplerRequest req, @Nonnull org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
public void doNodeStatus(@Nonnull org.kohsuke.stapler.StaplerRequest req, @Nonnull org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
public void doReportUsage(@Nonnull org.kohsuke.stapler.StaplerRequest req, @Nonnull org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
public void doImmediatelyReturnNode()
Copyright © 2016–2020. All rights reserved.