Class ProfilableRunConfiguration
java.lang.Object
org.eclipse.epsilon.common.launch.ProfilableRunConfiguration
- All Implemented Interfaces:
Runnable,Callable<Object>,Supplier<Object>,CheckedSupplier<Object,Exception>
- Direct Known Subclasses:
EolRunConfiguration
public abstract class ProfilableRunConfiguration
extends Object
implements Runnable, Callable<Object>, CheckedSupplier<Object,Exception>
Generic utility class for building standalone applications with support for:
- Multi-stage, detailed AST profiling
- Writing to output files
- Identifying and comparing configurations
- Displaying results
- Building configurations using an elegant builder syntax
... and more
The intention is that this class is used as a base for building more complex standalone run configurations which can be built and invoked easily (at least, from the client's perspective!).
- Multi-stage, detailed AST profiling
- Writing to output files
- Identifying and comparing configurations
- Displaying results
- Building configurations using an elegant builder syntax
... and more
The intention is that this class is used as a base for building more complex standalone run configurations which can be built and invoked easily (at least, from the client's perspective!).
- Since:
- 1.6
- Author:
- Sina Madani
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProfilableRunConfiguration.Builder<C extends ProfilableRunConfiguration,B extends ProfilableRunConfiguration.Builder<C, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intfinal Pathprotected Stringprotected final Collection<ProfileDiagnostic>final booleanprotected Objectfinal Pathfinal booleanprotected final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedProfilableRunConfiguration(ProfilableRunConfiguration.Builder<?, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidstatic <C extends ProfilableRunConfiguration,B extends ProfilableRunConfiguration.Builder<C, B>>
Bfinal Objectcall()booleanprotected abstract Objectexecute()protected static <C extends ProfilableRunConfiguration,B extends ProfilableRunConfiguration.Builder<C, B>>
Constructor<B>findBuilder(Class<C> configClass) protected final intintgetId()final Objectprotected voidinthashCode()protected final booleanprotected final booleanprotected voidprotected voidprotected voidreset()final voidrun()toString()final voidprotected voidwriteOut(Collection<?> lines) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.common.function.CheckedSupplier
get
-
Field Details
-
printMarker
-
id
protected int id -
showResults
public final boolean showResults -
profileExecution
public final boolean profileExecution -
script
-
outputFile
-
profiledStages
-
hasRun
protected boolean hasRun -
result
-
targetRepeats
protected final int targetRepeats
-
-
Constructor Details
-
ProfilableRunConfiguration
-
ProfilableRunConfiguration
-
-
Method Details
-
Builder
public static <C extends ProfilableRunConfiguration,B extends ProfilableRunConfiguration.Builder<C, B BuilderB>> (Class<C> configClass) -
findBuilder
protected static <C extends ProfilableRunConfiguration,B extends ProfilableRunConfiguration.Builder<C, Constructor<B> findBuilderB>> (Class<C> configClass) -
getThrows
- Specified by:
getThrowsin interfaceCheckedSupplier<Object,Exception> - Throws:
Exception
-
call
-
beforeRepeatLoop
- Throws:
Exception
-
afterRepeatLoop
- Throws:
Exception
-
getCurrentRepeat
protected final int getCurrentRepeat() -
isFirstRepeat
protected final boolean isFirstRepeat() -
isLastRepeat
protected final boolean isLastRepeat() -
run
public final void run() -
handleException
-
preExecute
- Throws:
Exception
-
execute
- Throws:
Exception
-
getProfilingOutput
-
getResultOutput
-
postExecute
- Throws:
Exception
-
reset
- Throws:
Exception
-
getExecutionTime
-
getResult
-
getId
public int getId() -
writeOut
-
writeOut
-
toString
-
hashCode
public int hashCode() -
equals
-