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 TypeMethodDescriptionvoidclose()static ExecutionLogopen(Configuration configuration) Opens an instance according to theConfiguration.static ExecutionLogopen(Configuration configuration, String repositoryPath) Opens an instance.voidstore(PartialExecution partialExecution) Stores the givenPartialExecutionin this instance.voidstoreAll(Iterable<PartialExecution> partialExecutions) Stores the givenPartialExecutions 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 givenPartialExecutions in this instance.- Parameters:
partialExecutions- that should be stored- Throws:
IOException
-
store
Stores the givenPartialExecutionin this instance.- Parameters:
partialExecution- that should be stored- Throws:
IOException
-
stream
Streams the contents of this instance.- Returns:
- a
Streamof the containedPartialExecutions - Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-