Package net.microfalx.talos.core
Class MavenTracker
java.lang.Object
net.microfalx.talos.core.MavenTracker
Tracks and times activities of a class. The extension should not fail, and we should
also report how much time is lost in the extension.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<MavenTracker.Failure> Returns all failures registered by instances of the tracker.voidlogFailure(String name, Throwable throwable) static voidreset()Resets the trackers.<T> Ttrack(String name, Callable<T> consumer, org.apache.maven.project.MavenProject project, org.apache.maven.plugin.Mojo mojo) <T> void<T> void<T> voidtrack(String name, Consumer<T> consumer, org.apache.maven.project.MavenProject project, org.apache.maven.plugin.Mojo mojo) <T> void<T> TtrackCallable(String name, Callable<T> callable)
-
Constructor Details
-
MavenTracker
-
-
Method Details
-
getFailures
Returns all failures registered by instances of the tracker.- Returns:
- a non-null instance
-
reset
public static void reset()Resets the trackers. -
track
-
trackCallable
-
track
-
track
-
track
-
track
-
getDuration
-
logFailure
-