Class TestTrace
- java.lang.Object
-
- org.hansken.plugin.extraction.test.serialize.TestTrace
-
- All Implemented Interfaces:
AutoCloseable,ImmutableTrace,Trace,org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
public final class TestTrace extends Object implements org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
SimpleTraceandClientTraceimplementation used as input for a Flits framework test run. It does no validation whatsoever.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hansken.plugin.extraction.api.Trace
Trace.Tracelet, Trace.TraceletBuilder, Trace.TraceletProperty
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TraceaddTracelet(Trace.Tracelet tracelet)TraceaddType(String type)<T> Tget(String name)Stringname()TestTracenewChild(String name)TracenewChild(String name, ThrowingConsumer<Trace,IOException> enrichChildCallback)Set<String>properties()voidsave()Traceset(String name, Object value)TracesetData(String dataType, List<DataTransformation> transformations)TracesetData(String dataType, DataWriter writer)StringtraceId()Set<String>types()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
close
-
Methods inherited from interface org.hansken.plugin.extraction.api.Trace
addTracelet, setData, setData
-
-
-
-
Method Detail
-
traceId
public String traceId()
- Specified by:
traceIdin interfaceImmutableTrace
-
types
public Set<String> types()
- Specified by:
typesin interfaceImmutableTrace
-
properties
public Set<String> properties()
- Specified by:
propertiesin interfaceImmutableTrace
-
get
public <T> T get(String name)
- Specified by:
getin interfaceImmutableTrace
-
addTracelet
public Trace addTracelet(Trace.Tracelet tracelet)
- Specified by:
addTraceletin interfaceTrace
-
setData
public Trace setData(String dataType, DataWriter writer) throws IOException
- Specified by:
setDatain interfaceTrace- Throws:
IOException
-
setData
public Trace setData(String dataType, List<DataTransformation> transformations)
-
newChild
public Trace newChild(String name, ThrowingConsumer<Trace,IOException> enrichChildCallback) throws IOException
- Specified by:
newChildin interfaceorg.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace- Specified by:
newChildin interfaceTrace- Throws:
IOException
-
name
public String name()
- Specified by:
namein interfaceorg.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
-
newChild
public TestTrace newChild(String name)
- Specified by:
newChildin interfaceorg.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
-
-