Class RandomAccessTrace

  • All Implemented Interfaces:
    Trace

    public class RandomAccessTrace
    extends Object
    implements Trace
    A random access trace

    When run this trace performs random access call to paths passed to its constructor. It logs the current path as additional context.

    • Constructor Detail

      • RandomAccessTrace

        public RandomAccessTrace​(@NotNull
                                 @NotNull List<String> paths,
                                 long seed,
                                 int count,
                                 @NotNull
                                 @NotNull Consumer<List<String>> context)
        Create a new instance of a random access trace.
        Parameters:
        paths - the list of paths to access
        seed - seed for randomly picking paths
        count - number of paths to trace
        context - consumer to pass the additional context to
    • Method Detail

      • run

        public void run​(@NotNull
                        @NotNull NodeState root)
        Description copied from interface: Trace
        Run this trace on the passed node.
        Specified by:
        run in interface Trace