public class ParallelAllClassVisitor extends java.lang.Object implements ClassPoolVisitor
ClassPoolVisitor will visit all Clazz instances of the class pool
in a parallel way. For each thread, a separate ClassVisitor will be
created using ParallelAllClassVisitor.ClassVisitorFactory.createClassVisitor().
The number of parallel threads is coupled to the number of available
processors:
parallel_threads = Runtime.getRuntime().availableProcessors() - 1;
It is possible to override the number of threads by setting the
environment variable parallel.threads to an integer > 0.| Modifier and Type | Class and Description |
|---|---|
static interface |
ParallelAllClassVisitor.ClassVisitorFactory
A factory for
ClassVisitor objects. |
| Constructor and Description |
|---|
ParallelAllClassVisitor(ParallelAllClassVisitor.ClassVisitorFactory classVisitorFactory)
Create a new ParallelAllClassVisitor that will use the given factory
to visit all classes in a ClassPool in a parallel way.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visitClassPool(ClassPool classPool) |
public ParallelAllClassVisitor(ParallelAllClassVisitor.ClassVisitorFactory classVisitorFactory)
public void visitClassPool(ClassPool classPool)
visitClassPool in interface ClassPoolVisitor