@ExportedBean public static class Result { @Exported public List<Item> suggestions = new ArrayList<Item>(); }
/** * Name of the parameter. * * This uniquely distinguishes {@link ParameterValue} among other parameters * for the same build. This must be the same as {@link ParameterDefinition#getName()}. */ @Exported public final String getName() { return name; }
/** * Available swap space in bytes. */ @Exported public long getAvailableSwapSpace() { return availableSwapSpace; } }
@ExportedBean public abstract class RestartJenkinsJobStatus { @Exported public final int id = iota.incrementAndGet(); }
/** * Returns the name of the agent it was built on; null or "" if built by the master. * (null happens when we read old record that didn't have this information.) */ @Exported(name="builtOn") public String getBuiltOnStr() { return builtOn; }
@ExportedBean(defaultVisibility=999) public static class Item { @Exported public String name; public Item(String name) { this.name = name; } }
/** * The path that was checked */ @Exported public String getPath() { return path; }
@ExportedBean(defaultVisibility=2) public static final class RangeItem { @Exported public final String name; @Exported public final RangeSet ranges; public RangeItem(String name, RangeSet ranges) { this.name = name; this.ranges = ranges; } }
/** * Message displayed in the top page. Can be null. Includes HTML. */ @Exported public String getDescription() { return description; }
/** * Does this project perform concurrent builds? * @since 1.319 */ @Exported public boolean isConcurrentBuild() { return concurrentBuild; }
@Exported public boolean isSuccess() { return false; } @Exported
/** * Build is waiting the executor to become available. * This flag is only used in {@link Queue#getItems()} for * 'pseudo' items that are actually not really in the queue. */ @Exported public boolean isBuildable() { return this instanceof BuildableItem; }
/** * True if the item is starving for an executor for too long. */ @Exported public boolean isStuck() { return false; }
/** * Returns the URL of this {@link Item} relative to the context path of Jenkins * * @return * URL that ends with '/'. * @since 1.519 */ @Exported public String getUrl() { return "queue/item/"+id+'/'; }
@Exported public String getName() { return name; } }
/** * Getter for property 'score'. * * @return The percentage health score (from 0 to 100 inclusive). */ @Exported public int getScore() { return score; }
/** * Gets the "commit message". * * <p> * The exact definition depends on the individual SCM implementation. * * @return * Can be empty but never null. */ @Exported public abstract String getMsg();
/** * The total number of executors that are currently in the process of connecting to Jenkins. */ @Exported public int getConnectingExecutors() { return connectingExecutors; }
/** * Number of {@link Executor}s that are configured for this computer. * * <p> * When this value is decreased, it is temporarily possible * for {@link #executors} to have a larger number than this. */ // ugly name to let EL access this @Exported public int getNumExecutors() { return numExecutors; }
/** * Returns the number of {@link Executor}s. * * This may be different from <code>getExecutors().size()</code> * because it takes time to adjust the number of executors. */ @Exported public abstract int getNumExecutors();