Class Scheduler.Controller
- java.lang.Object
-
- org.apache.maven.surefire.junitcore.pc.Scheduler.Controller
-
- Enclosing class:
- Scheduler
private final class Scheduler.Controller extends java.lang.Object
If this is a master scheduler, the slaves can stop scheduling by the master through the controller.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Controller(Scheduler slave)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
canSchedule()
(package private) boolean
destroy()
boolean
equals(java.lang.Object o)
int
hashCode()
(package private) void
stop(java.util.Collection<org.junit.runner.Description> executedTests, java.util.Collection<org.junit.runner.Description> incompleteTests, boolean tryCancelFutures, boolean shutdownNow)
-
-
-
Field Detail
-
slave
private final Scheduler slave
-
-
Constructor Detail
-
Controller
private Controller(Scheduler slave)
-
-
Method Detail
-
canSchedule
boolean canSchedule()
- Returns:
true
if new children can be scheduled.
-
stop
void stop(java.util.Collection<org.junit.runner.Description> executedTests, java.util.Collection<org.junit.runner.Description> incompleteTests, boolean tryCancelFutures, boolean shutdownNow)
-
destroy
boolean destroy()
- See Also:
Destroyable.destroy()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-