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
Simple
Trace and ClientTrace implementation 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTracelet(Trace.Tracelet tracelet) <T> Tname()newChild(String name, ThrowingConsumer<Trace, IOException> enrichChildCallback) Optional<org.hansken.plugin.extraction.runtime.grpc.client.PluginRunProfile> profile()voidprofile(org.hansken.plugin.extraction.runtime.grpc.client.PluginRunProfile profile) voidsave()setData(String dataType, List<DataTransformation> transformations) setData(String dataType, DataWriter writer) traceId()types()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
closeMethods inherited from interface org.hansken.plugin.extraction.api.Trace
addTracelet, setData, setData
-
Constructor Details
-
TestTrace
-
TestTrace
-
TestTrace
-
-
Method Details
-
traceId
- Specified by:
traceIdin interfaceImmutableTrace
-
types
- Specified by:
typesin interfaceImmutableTrace
-
addType
-
properties
- Specified by:
propertiesin interfaceImmutableTrace
-
get
- Specified by:
getin interfaceImmutableTrace
-
set
-
addTracelet
- Specified by:
addTraceletin interfaceTrace
-
setData
- Specified by:
setDatain interfaceTrace- Throws:
IOException
-
setData
-
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
- Specified by:
namein interfaceorg.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
-
newChild
- Specified by:
newChildin interfaceorg.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
-
save
- Specified by:
savein interfaceorg.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace- Throws:
Exception
-
profile
public void profile(org.hansken.plugin.extraction.runtime.grpc.client.PluginRunProfile profile) - Specified by:
profilein interfaceorg.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
-
profile
- Specified by:
profilein interfaceorg.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace
-