/** * @deprecated as of 1.301 * Use {@link #getMonitors()}. */ @Deprecated public static List<NodeMonitor> get_monitors() { return monitors.toList(); }
/** * Obtains all the instances of {@link NodeMonitor}s that are alive. * @since 1.187 */ public static List<NodeMonitor> getAll() { return ComputerSet.getMonitors().toList(); }
@Exported public List<LabelAtomProperty> getPropertiesList() { return properties.toList(); }
public List<Builder> getBuilders() { return getBuildersList().toList(); }
/** * List of all {@link ViewProperty}s exposed primarily for the remoting API. * @since 1.406 */ @Exported(name="property",inline=true) public List<ViewProperty> getAllProperties() { return getProperties().toList(); }
@Override public Object onConvert(Type targetType, Class targetTypeErasure, Object jsonSource) { if (jsonForProperties != jsonSource) { return old.get().onConvert(targetType, targetTypeErasure, jsonSource); } try { DescribableList<NodeProperty<?>, NodePropertyDescriptor> tmp = new DescribableList<NodeProperty<?>, NodePropertyDescriptor>(Saveable.NOOP,getNodeProperties().toList()); tmp.rebuild(req, jsonForProperties, NodeProperty.all()); return tmp.toList(); } catch (FormException e) { throw new IllegalArgumentException(e); } catch (IOException e) { throw new IllegalArgumentException(e); } } }));
public MavenInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException { return new MavenInstallation(getName(), translateFor(node, log), getProperties().toList()); }
public MavenInstallation forEnvironment(EnvVars environment) { return new MavenInstallation(getName(), environment.expand(getHome()), getProperties().toList()); }
/** * @deprecated as of 1.301 * Use {@link #getMonitors()}. */ @Deprecated public static List<NodeMonitor> get_monitors() { return monitors.toList(); }
/** * @return list of {@link Trigger} elements. */ public List<Trigger<?>> getTriggersList() { return getTriggerDescribableList().toList(); }
/** * @inheritDoc */ public List<Builder> getBuilders() { return getBuildersList().toList(); }
/** * @throws UnsupportedProjectException if the Project type is * {@link Type#UNSUPPORTED}. */ public Collection<Publisher> getPublishers() { return getPublishersList().toList(); }
/** * @throws UnsupportedProjectException if the Project type is {@link Type#UNSUPPORTED}. */ public Collection<BuildWrapper> getBuildWrappers() { return getBuildWrappersList().toList(); }
/** * @throws UnsupportedProjectException if the Project type is {@link Type#UNSUPPORTED}. */ public Collection<Publisher> getPublishers() { return getPublishersList().toList(); }
/** * @throws UnsupportedProjectException if the Project type is {@link Type#UNSUPPORTED}. */ public Collection<BuildWrapper> getBuildWrappers() { return getBuildWrappersList().toList(); }
@Override public boolean allowOverrideValue(DescribableList cascadingValue, DescribableList candidateValue) { if (null == cascadingValue && null == candidateValue) { return false; } if (null != cascadingValue && null != candidateValue) { List cascadingList = cascadingValue.toList(); List candidateList = candidateValue.toList(); return !(CollectionUtils.isEqualCollection(cascadingList, candidateList) || DeepEquals.deepEquals(cascadingList, candidateList)); } return true; }
/** * Obtains all the instances of {@link NodeMonitor}s that are alive. * @since 1.187 */ public static List<NodeMonitor> getAll() { return ComputerSet.getMonitors().toList(); }
@Override public boolean allowOverrideValue(DescribableList cascadingValue, DescribableList candidateValue) { if (null == cascadingValue && null == candidateValue) { return false; } if (null != cascadingValue && null != candidateValue) { List cascadingList = cascadingValue.toList(); List candidateList = candidateValue.toList(); return !(CollectionUtils.isEqualCollection(cascadingList, candidateList) || DeepEquals.deepEquals(cascadingList, candidateList)); } return true; }
@Override public Object encode(Object value, MappedField optionalExtraInfo) { if (value == null) return null; DescribableList describableList = (DescribableList) value; BasicDBList convertedList = new BasicDBList(); for (Object obj : describableList.toList()) { convertedList.add(getMapper().toDBObject(obj)); } return convertedList; } }
public MercurialInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException { return new MercurialInstallation(getName(), translateFor(node, log), executable, debug, useCaches, useSharing, getProperties().toList()); }