public class Controller extends java.lang.Object implements Actor
BarrierCoordinator
, its child) and allowing
network and other failures to be injected at the test nodes.
INTERNAL API.
Modifier and Type | Class and Description |
---|---|
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$ |
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
Controller(int initialParticipants,
java.net.InetSocketAddress controllerPort) |
Modifier and Type | Method and Description |
---|---|
scala.collection.immutable.Map<RoleName,scala.collection.immutable.Set<ActorRef>> |
addrInterest() |
protected abstract static void |
akka$actor$Actor$_setter_$context_$eq(ActorContext x$1) |
protected abstract static void |
akka$actor$Actor$_setter_$self_$eq(ActorRef x$1) |
protected static void |
aroundPostRestart(java.lang.Throwable reason) |
protected static void |
aroundPostStop() |
protected static void |
aroundPreRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
protected static void |
aroundPreStart() |
protected static void |
aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive,
java.lang.Object msg) |
ActorRef |
barrier() |
org.jboss.netty.channel.Channel |
connection() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
SupervisorStrategy.Directive |
failBarrier(BarrierCoordinator.Data data) |
scala.collection.Iterator<java.lang.Object> |
generation() |
scala.collection.immutable.Map<RoleName,Controller.NodeInfo> |
nodes() |
static void |
postRestart(java.lang.Throwable reason) |
void |
postStop()
User overridable callback.
|
static void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
static void |
preStart() |
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.
|
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
static ActorRef |
sender() |
akka.remote.testconductor.TestConductorExt.Settings$ |
settings() |
OneForOneStrategy |
supervisorStrategy()
User overridable definition the strategy to use for supervising
child actors.
|
static void |
unhandled(java.lang.Object message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, preRestart, preStart, sender, unhandled
public Controller(int initialParticipants, java.net.InetSocketAddress controllerPort)
public static final ActorRef sender()
protected static void aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
protected static void aroundPreStart()
protected static void aroundPostStop()
protected static void aroundPreRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)
protected static void aroundPostRestart(java.lang.Throwable reason)
public static void preStart() throws java.lang.Exception
java.lang.Exception
public static void preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message) throws java.lang.Exception
java.lang.Exception
public static void postRestart(java.lang.Throwable reason) throws java.lang.Exception
java.lang.Exception
public static void unhandled(java.lang.Object message)
protected abstract static void akka$actor$Actor$_setter_$context_$eq(ActorContext x$1)
protected abstract static void akka$actor$Actor$_setter_$self_$eq(ActorRef x$1)
public ActorContext context()
Actor
forward
.
WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads!
ActorContext
is the Scala API. getContext
returns a
UntypedActorContext
, which is the Java API of the actor
context.
public final ActorRef self()
Actor
self ! message
public akka.remote.testconductor.TestConductorExt.Settings$ settings()
public org.jboss.netty.channel.Channel connection()
public OneForOneStrategy supervisorStrategy()
Actor
supervisorStrategy
in interface Actor
public SupervisorStrategy.Directive failBarrier(BarrierCoordinator.Data data)
public ActorRef barrier()
public scala.collection.immutable.Map<RoleName,Controller.NodeInfo> nodes()
public scala.collection.immutable.Map<RoleName,scala.collection.immutable.Set<ActorRef>> addrInterest()
public scala.collection.Iterator<java.lang.Object> generation()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor