Class MetricsCommandListener
java.lang.Object
ch.tocco.nice2.metrics.impl.task.MetricsCommandListener
- All Implemented Interfaces:
CommandServiceListener
@Component
@ConditionalOnProperty(value="ch.tocco.nice2.enableUpgradeMode",
havingValue="false",
matchIfMissing=true)
public class MetricsCommandListener
extends Object
implements CommandServiceListener
This service is eagerly loaded at startup and observes
all tasks executed by the
CommandService and collects
metrics if necessary.-
Nested Class Summary
Nested classes/interfaces inherited from interface CommandServiceListener
CommandServiceListener.PersistFutureTask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommandServiceListener
taskFinished
-
Constructor Details
-
MetricsCommandListener
-
-
Method Details
-
taskStarted
- Specified by:
taskStartedin interfaceCommandServiceListener
-