Class ManagedTracker

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<org.eclipse.jetty.util.component.LifeCycle>, java.util.Collection<org.eclipse.jetty.util.component.LifeCycle>, java.util.List<org.eclipse.jetty.util.component.LifeCycle>, java.util.RandomAccess

    public class ManagedTracker
    extends java.util.ArrayList<org.eclipse.jetty.util.component.LifeCycle>
    Managed objects tracker for startup time report. Replaces managed objects list inside LifecycleEnvironment to wrap existing and future managed (and lifecycle) objects (to be able to track start and stop executions).
    Since:
    10.03.2025
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int index, org.eclipse.jetty.util.component.LifeCycle element)  
      boolean add​(org.eclipse.jetty.util.component.LifeCycle lifeCycle)  
      boolean addAll​(int index, java.util.Collection<? extends org.eclipse.jetty.util.component.LifeCycle> c)  
      boolean addAll​(java.util.Collection<? extends org.eclipse.jetty.util.component.LifeCycle> c)  
      org.eclipse.jetty.util.component.LifeCycle set​(int index, org.eclipse.jetty.util.component.LifeCycle element)  
      • Methods inherited from class java.util.ArrayList

        clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • ManagedTracker

        public ManagedTracker​(StartupTimeInfo start,
                              ShutdownTimeInfo stop,
                              io.dropwizard.lifecycle.setup.LifecycleEnvironment lifecycle)
        Create tracker.
        Parameters:
        start - start info
        stop - stop info
        lifecycle - lifecycle instance
    • Method Detail

      • add

        public boolean add​(org.eclipse.jetty.util.component.LifeCycle lifeCycle)
        Specified by:
        add in interface java.util.Collection<org.eclipse.jetty.util.component.LifeCycle>
        Specified by:
        add in interface java.util.List<org.eclipse.jetty.util.component.LifeCycle>
        Overrides:
        add in class java.util.ArrayList<org.eclipse.jetty.util.component.LifeCycle>
      • add

        public void add​(int index,
                        org.eclipse.jetty.util.component.LifeCycle element)
        Specified by:
        add in interface java.util.List<org.eclipse.jetty.util.component.LifeCycle>
        Overrides:
        add in class java.util.ArrayList<org.eclipse.jetty.util.component.LifeCycle>
      • addAll

        public boolean addAll​(java.util.Collection<? extends org.eclipse.jetty.util.component.LifeCycle> c)
        Specified by:
        addAll in interface java.util.Collection<org.eclipse.jetty.util.component.LifeCycle>
        Specified by:
        addAll in interface java.util.List<org.eclipse.jetty.util.component.LifeCycle>
        Overrides:
        addAll in class java.util.ArrayList<org.eclipse.jetty.util.component.LifeCycle>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends org.eclipse.jetty.util.component.LifeCycle> c)
        Specified by:
        addAll in interface java.util.List<org.eclipse.jetty.util.component.LifeCycle>
        Overrides:
        addAll in class java.util.ArrayList<org.eclipse.jetty.util.component.LifeCycle>
      • set

        public org.eclipse.jetty.util.component.LifeCycle set​(int index,
                                                              org.eclipse.jetty.util.component.LifeCycle element)
        Specified by:
        set in interface java.util.List<org.eclipse.jetty.util.component.LifeCycle>
        Overrides:
        set in class java.util.ArrayList<org.eclipse.jetty.util.component.LifeCycle>