Klasse DUUIProcessMetrics
java.lang.Object
org.texttechnologylab.duui.api.metrics.providers.DUUIProcessMetrics
A class containing process related metrics and means to update them.
- Autor:
- Cedric Borkowski.
- 
FeldübersichtFelderModifizierer und TypFeldBeschreibungstatic final io.prometheus.client.GaugeThe number of active threads or workers.static final io.prometheus.client.CounterThe number of errors during processing.
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungstatic voidDecrement the number of active processes.static voiddecrementThreads(double amount) Decrement the number of active threads.static voidIncrement the number of active processes.static voidIncrement the number of cancelled processes.static voidIncrement the number of completed processes.static voidincrementErrorCount(double amount) Increment the number of errors.static voidIncrement the number of failed processes.static voidincrementThreads(double amount) Increment the number of active threads.static voidregister()Register the metrics with the default registry.
- 
Felddetails- 
activeThreadspublic static final io.prometheus.client.Gauge activeThreadsThe number of active threads or workers.
- 
errorCountpublic static final io.prometheus.client.Counter errorCountThe number of errors during processing.
 
- 
- 
Konstruktordetails- 
DUUIProcessMetricspublic DUUIProcessMetrics()
 
- 
- 
Methodendetails- 
registerpublic static void register()Register the metrics with the default registry.
- 
incrementActiveProcessespublic static void incrementActiveProcesses()Increment the number of active processes.
- 
decrementActiveProcessespublic static void decrementActiveProcesses()Decrement the number of active processes.
- 
incrementFailedProcessespublic static void incrementFailedProcesses()Increment the number of failed processes.
- 
incrementCompletedProcessespublic static void incrementCompletedProcesses()Increment the number of completed processes.
- 
incrementCancelledProcessespublic static void incrementCancelledProcesses()Increment the number of cancelled processes.
- 
incrementThreadspublic static void incrementThreads(double amount) Increment the number of active threads.
- 
decrementThreadspublic static void decrementThreads(double amount) Decrement the number of active threads.
- 
incrementErrorCountpublic static void incrementErrorCount(double amount) Increment the number of errors.
 
-