Package cdc.perfs.api
Interface RuntimeManager.RuntimeService
-
- Enclosing class:
- RuntimeManager
public static interface RuntimeManager.RuntimeService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RuntimeProbecreateProbe(Source source)Creates a probe at the MINOR level.RuntimeProbecreateProbe(Source source, MeasureLevel level)Creates a probe that can be used to create measures at a given level and associated to a source.default SourcegetSource(Class<?> cls)Returns the source associated to a class.SourcegetSource(String name)Returns the shared source that has a given name.
-
-
-
Method Detail
-
getSource
Source getSource(String name)
Returns the shared source that has a given name.If a source with that name already exists, then it returns it. Otherwise, creates a new Source and returns it.
- Parameters:
name- Name of the source.- Returns:
- The shared source that is named name.
-
getSource
default Source getSource(Class<?> cls)
Returns the source associated to a class.Equivalent to getSource(klass.getCanonicalName())
- Parameters:
cls- The class whose name will be associated to source.- Returns:
- getSource(cls.getCanonicalName())
-
createProbe
RuntimeProbe createProbe(Source source, MeasureLevel level)
Creates a probe that can be used to create measures at a given level and associated to a source.- Parameters:
source- The source for which a probe must be created.level- The level of generated measures.- Returns:
- An appropriate probe (matching source and level).
-
createProbe
RuntimeProbe createProbe(Source source)
Creates a probe at the MINOR level.- Parameters:
source- The source for which a probe must be created.- Returns:
- An appropriate probe (matching source and MINOR level).
-
-