akka.remote.testconductor
Class Controller
java.lang.Object
akka.remote.testconductor.Controller
- All Implemented Interfaces:
- Actor
public class Controller
- extends java.lang.Object
- implements Actor
This controls test execution by managing barriers (delegated to
BarrierCoordinator
, its child) and allowing
network and other failures to be injected at the test nodes.
INTERNAL API.
Constructor Summary |
Controller(int initialParticipants,
java.net.InetSocketAddress controllerPort)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface akka.actor.Actor |
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, preRestart, preStart, self, sender, unhandled |
Controller
public Controller(int initialParticipants,
java.net.InetSocketAddress controllerPort)
settings
public akka.remote.testconductor.TestConductorExt.Settings$ settings()
connection
public org.jboss.netty.channel.Channel connection()
supervisorStrategy
public OneForOneStrategy supervisorStrategy()
- Description copied from interface:
Actor
- User overridable definition the strategy to use for supervising
child actors.
- Specified by:
supervisorStrategy
in interface Actor
- Returns:
- (undocumented)
failBarrier
public SupervisorStrategy.Directive failBarrier(BarrierCoordinator.Data data)
barrier
public ActorRef barrier()
nodes
public scala.collection.immutable.Map<RoleName,Controller.NodeInfo> nodes()
addrInterest
public scala.collection.immutable.Map<RoleName,scala.collection.immutable.Set<ActorRef>> addrInterest()
generation
public scala.collection.Iterator<java.lang.Object> generation()
receive
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
- Description copied from interface:
Actor
- This defines the initial actor behavior, it must return a partial function
with the actor logic.
- Specified by:
receive
in interface Actor
- Returns:
- (undocumented)
postStop
public void postStop()
- Description copied from interface:
Actor
- User overridable callback.
Is called asynchronously after 'actor.stop()' is invoked.
Empty default implementation.
- Specified by:
postStop
in interface Actor