Package org.apache.wayang.core.profiling
Class ExecutionLog
- java.lang.Object
-
- org.apache.wayang.core.profiling.ExecutionLog
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ExecutionLog extends java.lang.Object implements java.lang.AutoCloseableStores execution data have been collected by theCrossPlatformExecutor. The current version uses JSON as serialization format.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static ExecutionLogopen(Configuration configuration)Opens an instance according to theConfiguration.static ExecutionLogopen(Configuration configuration, java.lang.String repositoryPath)Opens an instance.voidstore(PartialExecution partialExecution)Stores the givenPartialExecutionin this instance.voidstoreAll(java.lang.Iterable<PartialExecution> partialExecutions)Stores the givenPartialExecutions in this instance.java.util.stream.Stream<PartialExecution>stream()Streams the contents of this instance.
-
-
-
Method Detail
-
open
public static ExecutionLog open(Configuration configuration)
Opens an instance according to theConfiguration.- Parameters:
configuration- describes the instance to be opened- Returns:
- the new instance
-
open
public static ExecutionLog open(Configuration configuration, java.lang.String repositoryPath)
Opens an instance.- Parameters:
configuration- describes the instance to be openedrepositoryPath- location of the instance- Returns:
- the new instance
-
storeAll
public void storeAll(java.lang.Iterable<PartialExecution> partialExecutions) throws java.io.IOException
Stores the givenPartialExecutions in this instance.- Parameters:
partialExecutions- that should be stored- Throws:
java.io.IOException
-
store
public void store(PartialExecution partialExecution) throws java.io.IOException
Stores the givenPartialExecutionin this instance.- Parameters:
partialExecution- that should be stored- Throws:
java.io.IOException
-
stream
public java.util.stream.Stream<PartialExecution> stream() throws java.io.IOException
Streams the contents of this instance.- Returns:
- a
Streamof the containedPartialExecutions - Throws:
java.io.IOException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-