Package hudson.util
Other miscellaneous utility code
-
Interface Summary Interface Description ConsistentHash.Hash<T> Hashes an object to some value.DescribableList.Owner Deprecated. since 2008-08-15.Function1<R,P1> Unary functiony=f(x).InvocationInterceptor Interceptor aroundInvocationHandler.Iterators.CountingPredicate<T> ProcessTree.ProcessCallable<T> Code that gets executed on the machine where theProcessTree.OSProcessis local.ProcessTreeRemoting.IOSProcess ProcessTreeRemoting.IProcessTree TagCloud.WeightFunction<T> VariableResolver<V> Resolves variables to its value, while encapsulating how that resolution happens. -
Class Summary Class Description AbstractTaskListener Deprecated. implementTaskListenerdirectlyAdaptedIterator<T,U> Iteratorthat adapts the values returned from another iterator.AdministrativeError Deprecated. ImplementAdministrativeMonitordirectly instead.AlternativeUiTextProvider Provides the alternative text to be rendered in the UI.AlternativeUiTextProvider.Message<T> Each instance of this class represents a text that can be replaced byAlternativeUiTextProvider.Area Represents a two dimensional area.ArgumentListBuilder Used to build up arguments for a process invocation.AtomicFileWriter BufferedFileWriterthat supports atomic operations.ByteArrayOutputStream2 ByteArrayOutputStreamwith access to its raw buffer.CaseInsensitiveComparator Deprecated. useString.CASE_INSENSITIVE_ORDERdirectlyCharacterEncodingFilter Filter that sets the character encoding to be used in parsing the request to avoid Non-ASCII characters garbled.ChartUtil Chart generation utility code around JFreeChart.ChartUtil.NumberOnlyBuildLabel Can be used as a graph label.ChunkedInputStream Transparently coalesces chunks of a HTTP stream that uses Transfer-Encoding chunked.ChunkedOutputStream Implements HTTP chunking support.ClassLoaderSanityThreadFactory Explicitly sets theThread.setContextClassLoader(java.lang.ClassLoader)for threads it creates to its own classloader.ClasspathBuilder Used to build up an argument in the classpath format.ClockDifference Represents a clock difference.ColorPalette Color constants consistent with the Hudson color palette.ComboBoxModel Model object for dynamically filed combo box, which is really justArrayList<String>CompoundEnumeration<T> Enumerationthat aggregates multipleEnumerations.CompressedFile Represents write-once read-many file that can be optionally compressed to save disk space.ConsistentHash<T> Consistent hash.CopyOnWriteList<E> List-like implementation that has copy-on-write semantics.CopyOnWriteList.ConverterImpl Converterimplementation for XStream.CopyOnWriteMap<K,V> Mapthat has copy-on-write semantics.CopyOnWriteMap.Hash<K,V> CopyOnWriteMapbacked byHashMap.CopyOnWriteMap.Hash.ConverterImpl CopyOnWriteMap.Tree<K,V> CopyOnWriteMapbacked byTreeMap.CopyOnWriteMap.Tree.ConverterImpl CyclicGraphDetector<N> Traverses a directed graph and if it contains any cycle, throw an exception.DaemonThreadFactory ThreadFactorythat creates daemon threads.DataSetBuilder<Row extends Comparable,Column extends Comparable> BuildsCategoryDataset.DecodingStream Hex-binary decoding stream.DelegatingOutputStream Works likeFilterOutputStreamexcept its performance problem.DescribableList<T extends Describable<T>,D extends Descriptor<T>> Persisted list ofDescribables with some operations specific toDescriptors.DescribableList.ConverterImpl Converterimplementation for XStream.DescriptorList<T extends Describable<T>> List ofDescriptors.DirScanner Visits a directory and its contents and pass them to theFileVisitor.DirScanner.Filter Scans by filtering things out fromFileFilter.DirScanner.Full Scans everything recursively.DirScanner.Glob Scans by using Ant GLOB syntax.DoubleLaunchChecker 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.DoubleLaunchChecker.Schedule DualOutputStream EditDistance Computes the string edit distance.EncodingStream Hex-binary encoding stream.EnumConverter Converterfor enums.ExceptionCatchingThreadFactory ThreadFactorythat creates a thread, which in turn displays a stack trace when it terminates unexpectedly.FileChannelWriter This class has been created to help makeAtomicFileWriterhopefully more reliable in some corner cases.FileVisitor Visits files in a directory recursively.FlushProofOutputStream OutputStreamthat blocksFlushProofOutputStream.flush()method.ForkOutputStream FormApply Server-side code related to the<f:apply>button.FormFieldValidator Deprecated. as of 1.294 UseFormValidationas a return value in your check method.FormFieldValidator.Base64 Deprecated. as of 1.305 UseFormValidation.validateBase64(String, boolean, boolean, String)instead.FormFieldValidator.Executable Deprecated. as of 1.294.FormFieldValidator.HudsonURL Checks if the given value is an URL to some Hudson's top page.FormFieldValidator.NonNegativeInteger Deprecated. as of 1.294 UseFormValidation.validateNonNegativeInteger(String)FormFieldValidator.URLCheck Deprecated. as of 1.294 UseFormValidation.URLCheckFormFieldValidator.WorkspaceDirectory Deprecated. as of 1.294.FormFieldValidator.WorkspaceFileMask Deprecated. as of 1.294.FormFieldValidator.WorkspaceFilePath Deprecated. as of 1.294.FormValidation.CheckMethod Builds up the check URL for the client-side JavaScript to call back.FormValidation.FileValidator Performs an application-specific validation on the given file.FormValidation.URLCheck Convenient base class for checking the validity of URLs.Futures VariousFutureimplementations.Graph A JFreeChart-generated graph that's bound to UI.HeadBufferingStream FilterInputStreamthat buffers the first N bytes to a byte array on the side.HeapSpaceStringConverter Up to XStream 1.3 the defaultStringConverterin XStream usedString.intern(), which stressed the (rather limited) PermGen space with a large XML file.HexBinaryConverter HistoricalSecrets Historical algorithms for decryptingSecrets.HttpResponses VariousHttpResponseimplementations.HudsonIsLoading Model object used to display "Jenkins is loading data".HudsonIsRestarting Model object used to display "Hudson is restarting".InterceptingProxy Creates a proxy that traps every method call.IOUtils Adds more to commons-io.Iterators VariosIteratorimplementations.Iterators.DuplicateFilterIterator<T> Remove duplicates from another iterator.Iterators.FilterIterator<T> Creates a filtered view of another iterator.Iterators.FlattenIterator<U,T> Produces {A,B,C,D,E,F} from {{A,B},{C},{},{D,E,F}}.JVMBuilder Used to build up launch parameters for a Java virtual machine.KeyedDataStorage<T,P> Convenient base class for implementing data storage.LineEndingConversion Converts line endings of a string.ListBoxModel Model object of dynamically filled list box.ListBoxModel.Option LogTaskListener TaskListenerwhich sends messages to aLogger.LRUStringConverter MaskingClassLoader ClassLoaderthat masks a specified set of classes from its parent class loader.Messages Generated localization support class.MultipartFormDataParser Wraps commons file-upload and handles a "multipart/form-data" form submission (that often includes file upload.)NamingThreadFactory Thread factory that sets thread name so we know who is responsible for so many threads being created.NoOverlapCategoryAxis This class implements X-axis label skipping algorithm to avoid drawing overlapping labels.NullStream Deprecated. OneShotEvent Concurrency primitive.PackedMap<K,V> PackedMap.ConverterImpl Should persist like a regular map.PersistedList<T> Collection whose change is notified to the parent object for persistence.PersistedList.ConverterImpl Converterimplementation for XStream.PluginServletFilter ServletFilterthat chains multipleFilters, provided by pluginsProcessKiller Extension point that defines more elaborate way of killing processes, such as sudo or pfexec, forProcessTree.ProcessKillingVeto Allows extensions to veto killing processes.ProcessKillingVeto.VetoCause Describes the cause for a process killing veto.ProcessTree Represents a snapshot of the process tree of the current system.ProcessTree.Local Represents a local process tree, where this JVM and the process tree run on the same system.ProcessTree.Remote Represents a process tree over a channel.ProcessTreeRemoting Remoting interfaces ofProcessTree.Protector Encrypt/decrypt data by using a "session" key that only lasts for the duration of the server instance.QueryParameterMap Parses the query string of the URL into a key/value pair.ReflectionUtils Utility code for reflection.ReflectionUtils.Parameter RemotingDiagnostics Various remoting operations related to diagnostics.RemotingDiagnostics.HeapDump 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.Retrier.Builder<V> Builder to create a Retrier object.RingBufferLogHandler LogHandlerthat stores the log records into a ring buffer.RobustCollectionConverter CollectionConverterthat ignoresXStreamException.RobustReflectionConverter CustomReflectionConverterthat handle errors more gracefully.RunList<R extends Run> Scrambler Scrambles, but does not encrypt, text.Secret GlorifiedStringthat uses encryption in the persisted form, to avoid accidental exposure of a secret.Secret.ConverterImpl SecretRewriter Rewrites XML files by looking for Secrets that are stored with the old key and replaces them by the new encrypted values.SequentialExecutionQueue Service Deprecated. useServiceLoaderinstead.ShiftedCategoryAxis CategoryAxisshifted to left to eliminate redundant space between area and the Y-axis.StackedAreaRenderer2 ModifiedStackedAreaRenderer.StreamCopyThread StreamResource WrapsInputStreamtoResource.StreamTaskListener TaskListenerthat generates output into a single stream.TableNestChecker 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.TextFile Represents a text file.VariableResolver.ByMap<V> VariableResolverbacked by aMap.VariableResolver.Union<V> Union of multipleVariableResolver.XStream2 XStreamcustomized in various ways for Jenkins’ needs.XStream2.PassthruConverter<T> Create a nestedConverterImplsubclass that extends this class to run some callback code just after a type is unmarshalled by RobustReflectionConverter.XStream2SecurityUtils 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. -
Enum Summary Enum Description FormValidation.Kind Indicates the kind of result.LineEndingConversion.EOLType Supported line ending types for conversionTimeUnit2 Deprecated. useTimeUnit. -
Exception Summary Exception Description AWTProblem BootFailure Indicates a fatal boot problem, amongErrorObjectCyclicGraphDetector.CycleDetectedException ErrorObject Basis for error model objects.FormFillFailure Represents a failure in a form field doFillXYZ method.FormValidation Represents the result of the form field validation.HudsonFailedToLoad Model object used to display the generic error when Jenkins start up fails fatally during initialization.IncompatibleAntVersionDetected 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.IncompatibleServletVersionDetected Model object used to display the error top page if we find out that the container doesn't support servlet 2.4.IncompatibleVMDetected Model object used to display the error top page if we find out that XStream is running in pure-java mode.InsufficientPermissionDetected Model object used to display the error top page if we find that we don't have enough permissions to run.IOException2 Deprecated. Just useIOException, which since Java 6 supports a cause.JenkinsReloadFailed Indicates that Jenkins is interrupted during reload.NoHomeDir Model object used to display the error top page if we couldn't create the home directory.NoTempDir Model object used to display the error top page if there appears to be no temporary directory.RobustReflectionConverter.DuplicateFieldException