Refine search
/** * Provide a file for initial configuration. The settings added with the {@link Builder#withSettings(Map)} * methods will be applied on top of the settings in the file. * * @param configFile A configuration file to parse for initial settings. */ @Nonnull public Builder withFile( final @Nullable File configFile ) { this.configFile = configFile; return this; }
public StandaloneJobClusterConfiguration(@Nonnull String configDir, @Nonnull Properties dynamicProperties, @Nonnull String[] args, @Nullable String hostname, int restPort, @Nonnull String jobClassName, @Nonnull SavepointRestoreSettings savepointRestoreSettings) { super(configDir, dynamicProperties, args, hostname, restPort); this.jobClassName = jobClassName; this.savepointRestoreSettings = savepointRestoreSettings; }
@Override /* * We need this for JENKINS-26143 -- reflective creation cannot handle setChoices(Object). See that method for context. */ public ParameterDefinition newInstance(@Nullable StaplerRequest req, @Nonnull JSONObject formData) throws FormException { String name = formData.getString("name"); String desc = formData.getString("description"); String choiceText = formData.getString("choices"); return new ChoiceParameterDefinition(name, choiceText, desc); }
/** * @param encoding File encoding to write. If null, platform default encoding is chosen. * * @deprecated Use {@link #AtomicFileWriter(Path, Charset)} */ @Deprecated public AtomicFileWriter(@Nonnull File f, @Nullable String encoding) throws IOException { this(toPath(f), encoding == null ? Charset.defaultCharset() : Charset.forName(encoding)); }