Package org.apache.wayang.core.profiling
Class ExecutionLog
java.lang.Object
org.apache.wayang.core.profiling.ExecutionLog
- All Implemented Interfaces:
AutoCloseable
Stores execution data have been collected by the
CrossPlatformExecutor
.
The current version uses JSON as serialization format.-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static ExecutionLog
open
(Configuration configuration) Opens an instance according to theConfiguration
.static ExecutionLog
open
(Configuration configuration, String repositoryPath) Opens an instance.void
store
(PartialExecution partialExecution) Stores the givenPartialExecution
in this instance.void
storeAll
(Iterable<PartialExecution> partialExecutions) Stores the givenPartialExecution
s in this instance.stream()
Streams the contents of this instance.
-
Method Details
-
open
Opens an instance according to theConfiguration
.- Parameters:
configuration
- describes the instance to be opened- Returns:
- the new instance
-
open
Opens an instance.- Parameters:
configuration
- describes the instance to be openedrepositoryPath
- location of the instance- Returns:
- the new instance
-
storeAll
Stores the givenPartialExecution
s in this instance.- Parameters:
partialExecutions
- that should be stored- Throws:
IOException
-
store
Stores the givenPartialExecution
in this instance.- Parameters:
partialExecution
- that should be stored- Throws:
IOException
-
stream
Streams the contents of this instance.- Returns:
- a
Stream
of the containedPartialExecution
s - Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-