Class AProcess


  • public final class AProcess
    extends Object
    Un processus est un evenement - declenche dans une application specifique - relatif a un type d'evenement (exemple : metrics des pages, des requetes sql, des mails envoyés, des services ...) Un evenement est defini selon 3 axes - when, quand a eu lieu l'evenement - what, de quoi s'agit-il ? - where, ou s'est passe l'evenement ? sur quel serveur ? [what] - category (examples : sql, tasks) - name (examples : /create/movies) [when] - start timestamp - end timestamp [data] - list of measures - list of tagss - list of sub processes (0..*)
    Version:
    $Id: KProcess.java,v 1.8 2012/10/16 17:18:26 pchretien Exp $
    Author:
    pchretien, npiedeloup
    • Method Detail

      • builder

        public static AProcessBuilder builder​(String category,
                                              String name)
        Static method factory for NodeConfigBuilder
        Parameters:
        category - Categorie
        name - Name
        Returns:
        AProcessBuilder
      • builder

        public static AProcessBuilder builder​(String category,
                                              String name,
                                              Instant start,
                                              Instant end)
        Static method factory for NodeConfigBuilder
        Parameters:
        category - category of the processus
        name - name of the process, used for agregation
        start - beginning of the process
        end - end of the process
        Returns:
        AProcessBuilder
      • getName

        public String getName()
        [what]
        Returns:
        name
      • getCategory

        public String getCategory()
        Returns:
        the category
      • getDurationMillis

        public long getDurationMillis()
        Returns:
        the duration of the process (in milliseconds)
      • getStart

        public long getStart()
        [when]
        Returns:
        the start timestamp in Millis
      • getEnd

        public long getEnd()
        [when]
        Returns:
        the end timestamp in Millis
      • getMeasures

        public Map<String,​Double> getMeasures()
        Returns:
        the measures of the process
      • getTags

        public Map<String,​String> getTags()
        Returns:
        the tags of the process
      • getSubProcesses

        public List<AProcess> getSubProcesses()
        Returns:
        the list of sub processes