Package hudson.util
package hudson.util
Other miscellaneous utility code
-
ClassDescriptionDeprecated.AdaptedIterator<T,
U> Iteratorthat adapts the values returned from another iterator.Deprecated.ImplementAdministrativeMonitordirectly instead.Provides the alternative text to be rendered in the UI.Each instance of this class represents a text that can be replaced byAlternativeUiTextProvider.Represents a two dimensional area.Used to build up arguments for a process invocation.BufferedFileWriterthat supports atomic operations.Indicates a fatal boot problem, amongErrorObjectByteArrayOutputStreamwith access to its raw buffer.ClassLoader with internal caching of class loading results.Deprecated.useString.CASE_INSENSITIVE_ORDERdirectlyFilter that sets the character encoding to be used in parsing the request to avoid Non-ASCII characters garbled.Chart generation utility code around JFreeChart.Can be used as a graph label.Transparently coalesces chunks of a HTTP stream that uses Transfer-Encoding chunked.Implements HTTP chunking support.Explicitly sets theThread.setContextClassLoader(java.lang.ClassLoader)for threads it creates to its own classloader.Used to build up an argument in the classpath format.Represents a clock difference.Color constants consistent with the Hudson color palette.Model object for dynamically filed combo box, which is really justArrayList<String>Enumerationthat aggregates multipleEnumerations.Represents write-once read-many file that can be optionally compressed to save disk space.Consistent hash.Hashes an object to some value.List-like implementation that has copy-on-write semantics.Converterimplementation for XStream.CopyOnWriteMap<K,V> Mapthat has copy-on-write semantics.CopyOnWriteMap.Hash<K,V> CopyOnWriteMapbacked byHashMap.CopyOnWriteMap.Tree<K,V> CopyOnWriteMapbacked byTreeMap.Traverses a directed graph and if it contains any cycle, throw an exception.ThreadFactorythat creates daemon threads.BuildsCategoryDataset.Hex-binary decoding stream.AClassLoaderthat does not define any classes itself but delegates class loading to other class loaders to avoid the JDK's per-class-name locking and lock retention.Works likeFilterOutputStreamexcept its performance problem.Persisted list ofDescribables with some operations specific toDescriptors.Converterimplementation for XStream.Deprecated.since 2008-08-15.DescriptorList<T extends Describable<T>>List ofDescriptors.Visits a directory and its contents and pass them to theFileVisitor.Scans by filtering things out fromFileFilter.Scans everything recursively.Scans by using Ant GLOB syntax.Makes sure that no other Hudson uses ourJENKINS_HOMEdirectory, to forestall the problem of running multiple instances of Hudson that point to the same data directory.Computes the string edit distance.Hex-binary encoding stream.Converterfor enums.Basis for error model objects.ThreadFactorythat creates a thread, which in turn displays a stack trace when it terminates unexpectedly.AClassLoaderthat verifies the existence of a.classresource before attempting to load the class.This class has been created to help makeAtomicFileWriterhopefully more reliable in some corner cases.Visits files in a directory recursively.OutputStreamthat blocksFlushProofOutputStream.flush()method.Server-side code related to the<f:apply>button.Corresponds to types declared in index.jsDeprecated.as of 1.294 UseFormValidationas a return value in your check method.Deprecated.as of 1.305 UseFormValidation.validateBase64(String, boolean, boolean, String)instead.Deprecated.as of 1.294.Checks if the given value is an URL to some Hudson's top page.Deprecated.as of 1.294 UseFormValidation.URLCheckDeprecated.as of 1.294.Deprecated.as of 1.294.Deprecated.as of 1.294.Represents a failure in a form field doFillXYZ method.Represents the result of the form field validation.Builds up the check URL for the client-side JavaScript to call back.Performs an application-specific validation on the given file.Indicates the kind of result.Convenient base class for checking the validity of URLs.Function1<R,P1> Unary functiony=f(x).VariousFutureimplementations.A JFreeChart-generated graph that's bound to UI.FilterInputStreamthat buffers the first N bytes to a byte array on the side.Up to XStream 1.3 the defaultStringConverterin XStream usedString.intern(), which stressed the (rather limited) PermGen space with a large XML file.Historical algorithms for decryptingSecrets.VariousHttpResponseimplementations.Model object used to display the generic error when Jenkins start up fails fatally during initialization.Model object used to display "Jenkins is loading data".Model object used to display "Hudson is restarting".Model object used to display the error top page if we find out that the container is picking up its own Ant and that's not 1.7.Model object used to display the error top page if we find out that the container doesn't support servlet 2.4.Model object used to display the error top page if we find out that XStream is running in pure-java mode.Model object used to display the error top page if we find that we don't have enough permissions to run.Creates a proxy that traps every method call.Interceptor aroundInvocationHandler.Adds more to commons-io.VariosIteratorimplementations.Remove duplicates from another iterator.Creates a filtered view of another iterator.Produces {A,B,C,D,E,F} from {{A,B},{C},{},{D,E,F}}.Indicates that Jenkins is interrupted during reload.Used to build up launch parameters for a Java virtual machine.KeyedDataStorage<T,P> Convenient base class for implementing data storage.Converts line endings of a string.Supported line ending types for conversionModel object of dynamically filled list box.TaskListenerwhich sends messages to aLogger.ClassLoaderthat masks a specified set of classes from its parent class loader.Generated localization support class.Wraps commons file-upload and handles a "multipart/form-data" form submission (that often includes file upload.)Thread factory that sets thread name so we know who is responsible for so many threads being created.Model object used to display the error top page if we couldn't create the home directory.This class implements X-axis label skipping algorithm to avoid drawing overlapping labels.Model object used to display the error top page if there appears to be no temporary directory.Deprecated.Concurrency primitive.PackedMap<K,V> Should persist like a regular map.Collection whose change is notified to the parent object for persistence.Converterimplementation for XStream.ServletFilterthat chains multipleFilters, provided by plugins.Extension point that defines more elaborate way of killing processes, such as sudo or pfexec, forProcessTree.Allows extensions to veto killing processes.Describes the cause for a process killing veto.Represents a snapshot of the process tree of the current system.Represents a local process tree, where this JVM and the process tree run on the same system.Code that gets executed on the machine where theProcessTree.OSProcessis local.Represents a process tree over a channel.Remoting interfaces ofProcessTree.Encrypt/decrypt data by using a "session" key that only lasts for the duration of the server instance.Parses the query string of the URL into a key/value pair.Utility code for reflection.Various remoting operations related to diagnostics.Heap dump, exposable to URL via Stapler.Retrier<V>This class implements a process of doing some action repeatedly synchronously until it is performed successfully.Builder to create a Retrier object.LogHandlerthat stores the log records into a ring buffer.CollectionConverterthat ignoresXStreamException.CustomReflectionConverterthat handle errors more gracefully.Deprecated.There's no reason to use this.GlorifiedStringthat uses encryption in the persisted form, to avoid accidental exposure of a secret.Deprecated.useServiceLoaderinstead.CategoryAxisshifted to left to eliminate redundant space between area and the Y-axis.ModifiedStackedAreaRenderer.WrapsInputStreamtoResource.TaskListenerthat generates output into a single stream.XMLFilterthat checks the proper nesting of table related tags.TagCloud<T>Represents an order-preserving tag cloud where each keyword gets a weight and displayed according to their weight.Represents a text file.Deprecated.useTimeUnit.Resolves variables to its value, while encapsulating how that resolution happens.VariableResolverbacked by aMap.Union of multipleVariableResolver.XStreamcustomized in various ways for Jenkins’ needs.Create a nestedConverterImplsubclass that extends this class to run some callback code just after a type is unmarshalled by RobustReflectionConverter.Strongly inspired by https://github.com/x-stream/xstream/blob/61a00fa225dc99488013869b57b772af8e2fea03/xstream/src/java/com/thoughtworks/xstream/core/SecurityUtils.java#L25 and taking into account https://github.com/x-stream/xstream/issues/282 Once the related issue is fixed, we will be able to use the regular method from XStream.
TaskListenerdirectly