|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.ipd.sdq.ByCounter.execution.ExecutionSettings
public class ExecutionSettings
This class holds a collection of settings that relate to the execution of instrumented Java byte code and the details of counting or aggregating the instrumentation results.
Field Summary | |
---|---|
static java.util.Set<java.lang.String> |
INTERNAL_CLASSES_DEFINITION_DEFAULT
Default value of getInternalClassesDefinition() . |
static char |
INTERNAL_CLASSES_DEFINITION_WILDCARD_CHAR
This character ('42') is used in the definition of internal classes. |
static java.lang.ClassLoader |
PARENT_CLASS_LOADER_DEFAULT
Default value for getParentClassLoader() . |
Constructor Summary | |
---|---|
ExecutionSettings()
Construct ExecutionSettings by setting every field to it's
default value. |
Method Summary | |
---|---|
ExecutionSettings |
clone()
|
boolean |
getAddUpResultsRecursively()
|
CountingResultCollectorMode |
getCountingResultCollectorMode()
|
java.util.Set<java.lang.String> |
getInternalClassesDefinition()
|
java.lang.ClassLoader |
getParentClassLoader()
|
boolean |
isInternalClass(java.lang.String qualifyingMethodName)
Uses getInternalClassesDefinition() to decide whether the given
name is considered an internal class. |
void |
setAddUpResultsRecursively(boolean addUpResultsRecursively)
|
void |
setCountingResultCollectorMode(CountingResultCollectorMode countingResultCollectorMode)
|
void |
setInternalClassesDefinition(java.util.Set<java.lang.String> internalClassesDefinition)
|
void |
setParentClassLoader(java.lang.ClassLoader parentClassLoader)
This is used for instantiation of classes that are set to execute. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char INTERNAL_CLASSES_DEFINITION_WILDCARD_CHAR
setInternalClassesDefinition(Set)
,
Constant Field Valuespublic static final java.util.Set<java.lang.String> INTERNAL_CLASSES_DEFINITION_DEFAULT
getInternalClassesDefinition()
.
public static final java.lang.ClassLoader PARENT_CLASS_LOADER_DEFAULT
getParentClassLoader()
.
Constructor Detail |
---|
public ExecutionSettings()
ExecutionSettings
by setting every field to it's
default value.
Method Detail |
---|
public ExecutionSettings clone()
clone
in class java.lang.Object
public boolean isInternalClass(java.lang.String qualifyingMethodName)
getInternalClassesDefinition()
to decide whether the given
name is considered an internal class.
qualifyingMethodName
- Name of the class to check.
public void setInternalClassesDefinition(java.util.Set<java.lang.String> internalClassesDefinition)
internalClassesDefinition
- The definition of internal classes.
When adding up results when retrieving results recursively, this
definition allows for adding up only results for classes defined as
internal. A value of null means all classes are considered internal.
For each string, specifying a '42' at the end enables prefix matching, i.e. all classes with the prefix are matched. If a string specifies a class name, non-public/internal classes are also considered internal.
Examples:
public java.util.Set<java.lang.String> getInternalClassesDefinition()
setInternalClassesDefinition(Set)
public CountingResultCollectorMode getCountingResultCollectorMode()
CountingResultCollector
operates.public void setCountingResultCollectorMode(CountingResultCollectorMode countingResultCollectorMode)
countingResultCollectorMode
- The mode in which the
CountingResultCollector
operates.public boolean getAddUpResultsRecursively()
public void setAddUpResultsRecursively(boolean addUpResultsRecursively)
addUpResultsRecursively
- When true, result retrieval adds up counting results recursively.
This means that results for methods that call other methods include the
counts of these called methods, i.e. of the entire calling tree.
When false, only the counts for operation done in the method itself
- not those by called methods - are returned.public void setParentClassLoader(java.lang.ClassLoader parentClassLoader)
parentClassLoader
- The ClassLoader
that will be used to
create instances of the classes to execute.public java.lang.ClassLoader getParentClassLoader()
ClassLoader
set using setParentClassLoader(ClassLoader)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |