Class Collector

java.lang.Object
net.bull.javamelody.internal.model.Collector

public class Collector extends Object
Collecteur de données sur les compteurs, avec son propre thread, pour remplir les courbes.
Author:
Emeric Vernat
  • Constructor Details

    • Collector

      public Collector(String application, List<Counter> counters)
      Constructeur.
      Parameters:
      application - Code de l'application
      counters - Liste des counters
    • Collector

      public Collector(String application, List<Counter> counters, SamplingProfiler samplingProfiler)
      Constructeur.
      Parameters:
      application - Code de l'application
      counters - Liste des counters
      samplingProfiler - SamplingProfiler
  • Method Details

    • getApplication

      public String getApplication()
      Retourne le code de l'application.
      Returns:
      String
    • getSamplingProfiler

      public SamplingProfiler getSamplingProfiler()
      Retourne le SamplingProfiler.
      Returns:
      SamplingProfiler
    • getHotspots

      public List<SamplingProfiler.SampledMethod> getHotspots()
    • getDatesByWebappVersions

      public Map<String,Date> getDatesByWebappVersions()
    • getCounters

      public List<Counter> getCounters()
      Returns:
      La liste des Counters de ce collector
    • getCounterByName

      public Counter getCounterByName(String counterName)
      Parameters:
      counterName - Nom d'un counter
      Returns:
      Le counter de ce collector ayant ce nom ou null si non trouvé
    • getCounterByRequestId

      public Counter getCounterByRequestId(CounterRequest request)
    • getRootCurrentContexts

      public List<CounterRequestContext> getRootCurrentContexts(List<Counter> newParentCounters)
    • getLastCollectDuration

      public long getLastCollectDuration()
    • getLastCollectorException

      public Throwable getLastCollectorException()
    • getEstimatedMemorySize

      public long getEstimatedMemorySize()
    • getDiskUsage

      public long getDiskUsage()
    • getRangeCounters

      public List<Counter> getRangeCounters(Range range) throws IOException
      Throws:
      IOException
    • getRangeCountersToBeDisplayed

      public List<Counter> getRangeCountersToBeDisplayed(Range range) throws IOException
      Throws:
      IOException
    • getRangeCounter

      public Counter getRangeCounter(Range range, String counterName) throws IOException
      Throws:
      IOException
    • collectLocalContextWithoutErrors

      public void collectLocalContextWithoutErrors()
    • collectWithoutErrors

      public void collectWithoutErrors(List<JavaInformations> javaInformationsList)
    • getJRobin

      public JRobin getJRobin(String graphName) throws IOException
      Throws:
      IOException
    • getCounterJRobins

      public Collection<JRobin> getCounterJRobins()
    • getDisplayedCounterJRobins

      public Collection<JRobin> getDisplayedCounterJRobins()
    • getDisplayedOtherJRobins

      public Collection<JRobin> getDisplayedOtherJRobins()
    • isStorageUsedByMultipleInstances

      public boolean isStorageUsedByMultipleInstances()
    • stop

      public void stop()
    • isStopped

      public boolean isStopped()
    • stopJRobin

      public static void stopJRobin()
    • detachVirtualMachine

      public static void detachVirtualMachine()
    • toString

      public String toString()
      Overrides:
      toString in class Object