Class AProcess
- java.lang.Object
-
- io.vertigo.core.analytics.process.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
-
-
Field Summary
Fields Modifier and Type Field Description static String
CATEGORY_SEPARATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AProcessBuilder
builder(String category, String name)
Static method factory for NodeConfigBuilderstatic AProcessBuilder
builder(String category, String name, Instant start, Instant end)
Static method factory for NodeConfigBuilderString
getCategory()
long
getDurationMillis()
long
getEnd()
[when]Map<String,Double>
getMeasures()
String
getName()
[what]long
getStart()
[when]List<AProcess>
getSubProcesses()
Map<String,String>
getTags()
String
toString()
-
-
-
Field Detail
-
CATEGORY_SEPARATOR
public static final String CATEGORY_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static AProcessBuilder builder(String category, String name)
Static method factory for NodeConfigBuilder- Parameters:
category
- Categoriename
- 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 processusname
- name of the process, used for agregationstart
- beginning of the processend
- 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
-
-