@ApplicationScoped public class LRAMetricService extends Object
LRAMetric
) per LRA id per participant.Constructor and Description |
---|
LRAMetricService() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the metric storage as whole.
|
int |
getMetric(LRAMetricType metricType,
URI lraId)
Returns count number for particular metric type.
|
int |
getMetric(LRAMetricType metricType,
URI lraId,
Class<?> participantClazz)
Returns count number for particular metric type filtered by LRA id and the participant class
which defines the participant name (the fully qualified class name is used for it).
|
int |
getMetric(LRAMetricType metricType,
URI lraId,
String participantClassName)
Returns count number for particular metric type filtered by LRA id and the participant's name.
|
int |
getMetricAll(LRAMetricType metricType)
Returns count number for particular metric type regardless of the LRA id or the participant's name.
|
void |
incrementMetric(LRAMetricType metricType,
URI lraId,
Class<?> participantClazz)
It increments counter of the metric type for particular LRA id and particular participant class
which is translated to fully qualified class name as participant name.
|
public void incrementMetric(LRAMetricType metricType, URI lraId, Class<?> participantClazz)
metricType
- increment counter of the specific metric typelraId
- increment counter of the metric type assigned to this particular lra idparticipantClazz
- the participant class which the metric increment is accounted topublic int getMetricAll(LRAMetricType metricType)
metricType
- metric type to take sum of the metric counter forpublic int getMetric(LRAMetricType metricType, URI lraId)
metricType
- counter for which the metric type will be returnedlraId
- counter for which lra id will be returnedpublic int getMetric(LRAMetricType metricType, URI lraId, Class<?> participantClazz)
metricType
- counter for which the metric type will be returnedlraId
- counter for which lra id will be returnedparticipantClazz
- counter for which the participant will be returnedpublic int getMetric(LRAMetricType metricType, URI lraId, String participantClassName)
metricType
- counter for which metric type will be returnedlraId
- counter for which lra id will be returnedparticipantClassName
- counter for which the participant name will be returnedpublic void clear()
Copyright © 2021 Eclipse Foundation. All rights reserved.