akka.cluster
Class OnMemberUpListener

java.lang.Object
  extended by akka.cluster.OnMemberUpListener
All Implemented Interfaces:
Actor, ActorLogging

public class OnMemberUpListener
extends java.lang.Object
implements Actor, ActorLogging

INTERNAL API

The supplied callback will be run, once, when current cluster member is Up.


Nested Class Summary
 
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$
 
Constructor Summary
OnMemberUpListener(java.lang.Runnable callback)
           
 
Method Summary
 Cluster cluster()
           
 void done()
           
 boolean isSelfUp(Member m)
           
 void postStop()
          User overridable callback.
 void preStart()
          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.
 
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, self, sender, supervisorStrategy, unhandled
 
Methods inherited from interface akka.actor.ActorLogging
_log, log
 

Constructor Detail

OnMemberUpListener

public OnMemberUpListener(java.lang.Runnable callback)
Method Detail

cluster

public Cluster cluster()

preStart

public void preStart()
Description copied from interface: Actor
User overridable callback.

Is called when an Actor is started. Actors are automatically started asynchronously when created. Empty default implementation.

Specified by:
preStart in interface Actor

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

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)

done

public void done()

isSelfUp

public boolean isSelfUp(Member m)