Class CaptureCollector
java.lang.Object
io.kubfly.sdk.test.CaptureCollector
- All Implemented Interfaces:
Collector
The collector of
kubfly-sdk-test as ServiceLoader finds it on the class path of the tests:
everything of the process goes to the one BucketCollector of the bucket in memory (Recording),
whatever else is installed — Collectors.install(Collector) stays free. Every instance writes into the
same recording.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidalert(long id, long begin, long end, Metric metric, Severity severity, long warnings, long criticals, long unassessed) The state of a metric with thresholds.voidA frame begins.booleanbridge()Not a bridge to another logging system.booleanenabled()Always on withkubfly-sdk-teston the class path.voidend(long id, long time, long duration, long threadId, String threadName, Frame frame, Throwable exception) A frame ends.voidevent(long id, long time, long threadId, String threadName, Frame frame, Event event, String message, ArgumentKind kind1, long bits1, Object ref1, ArgumentKind kind2, long bits2, Object ref2, Throwable exception) An event.voideventN(long id, long time, long threadId, String threadName, Frame frame, Event event, String message, Object[] args, int count, Throwable exception) An event of three toEventArgs.MAX_ARGUMENTSarguments.voidfinish(long id, long time, Environment environment) The process finishes.booleanEvery scope: a capture follows the tree of frames.voidhealth(long id, long time, long duration, HealthCheck check, Health health) A run of a check.voidAn interval of metrics.voidA profile of an interval.voidstart(long id, long time, Environment environment) The process starts.Every level.voidtrack(long id, long time, KubFly kubfly, TrackPoint point) A point of a track.voidThe edges of an interval of traffic.voidA usage snapshot.
-
Constructor Details
-
CaptureCollector
public CaptureCollector()The collector of the recording.
-
-
Method Details
-
enabled
-
bridge
-
frames
Every scope: a capture follows the tree of frames. -
threshold
Every level.- Specified by:
thresholdin interfaceCollector- Parameters:
project- the first level of the pathmodule- the second path level: a module of the build of the projectarea- the third levelsystem- the fourth level- Returns:
Level.TRACE
-
start
The process starts. -
begin
-
event
public void event(long id, long time, long threadId, String threadName, Frame frame, Event event, String message, ArgumentKind kind1, long bits1, Object ref1, ArgumentKind kind2, long bits2, Object ref2, Throwable exception) An event.- Specified by:
eventin interfaceCollector- Parameters:
id- the numbertime- the timethreadId- the thread (Thread.threadId())threadName- the name of the thread (Thread.getName())frame- the frame ornullevent- the eventmessage- the templatekind1- the first kindbits1- the first primitiveref1- the first referencekind2- the second kindbits2- the second primitiveref2- the second referenceexception- the exception ornull
-
eventN
public void eventN(long id, long time, long threadId, String threadName, Frame frame, Event event, String message, Object[] args, int count, Throwable exception) An event of three toEventArgs.MAX_ARGUMENTSarguments.- Specified by:
eventNin interfaceCollector- Parameters:
id- the number of the eventtime- the timethreadId- the thread (Thread.threadId())threadName- the name of the thread (Thread.getName())frame- the frame ornullevent- the eventmessage- the templateargs- the arguments as the application passed themcount- the number of the argumentsexception- the exception ornull
-
end
public void end(long id, long time, long duration, long threadId, String threadName, Frame frame, Throwable exception) A frame ends.- Specified by:
endin interfaceCollector- Parameters:
id- the number of the endtime- the timeduration- the duration, nsthreadId- the thread (Thread.threadId())threadName- the name of the thread (Thread.getName())frame- the frameexception- the exception ornull
-
usage
-
metrics
-
alert
-
traffic
-
profile
-
track
A point of a track. -
health
A run of a check. -
finish
The process finishes.
-