akka.remote.testconductor
Class Controller

java.lang.Object
  extended by 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.


Nested Class Summary
static class Controller.ClientDisconnected
           
static class Controller.ClientDisconnected$
           
static class Controller.ClientDisconnectedException
           
static class Controller.CreateServerFSM
           
static class Controller.CreateServerFSM$
           
static class Controller.GetNodes$
           
static class Controller.GetSockAddr$
           
static class Controller.NodeInfo
           
static class Controller.NodeInfo$
           
 
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$
 
Constructor Summary
Controller(int initialParticipants, java.net.InetSocketAddress controllerPort)
           
 
Method Summary
 scala.collection.immutable.Map<RoleName,scala.collection.immutable.Set<ActorRef>> addrInterest()
           
 ActorRef barrier()
           
 org.jboss.netty.channel.Channel connection()
           
 SupervisorStrategy.Directive failBarrier(BarrierCoordinator.Data data)
           
 scala.collection.Iterator<java.lang.Object> generation()
           
 scala.collection.immutable.Map<RoleName,Controller.NodeInfo> nodes()
           
 void postStop()
          User overridable callback.
 scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
          This defines the initial actor behavior, it must return a partial function with the actor logic.
 akka.remote.testconductor.TestConductorExt.Settings$ settings()
           
 OneForOneStrategy supervisorStrategy()
          User overridable definition the strategy to use for supervising child actors.
 
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
 

Constructor Detail

Controller

public Controller(int initialParticipants,
                  java.net.InetSocketAddress controllerPort)
Method Detail

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