public class ClusterMetricsSupervisor extends java.lang.Object implements Actor, ActorLogging
Actor providing customizable metrics collection supervision.
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
ClusterMetricsSupervisor() |
Modifier and Type | Method and Description |
---|---|
int |
collectorInstance() |
java.lang.String |
collectorName() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
ClusterMetricsExtension |
metrics() |
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.
|
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
SupervisorStrategy |
supervisorStrategy()
User overridable definition the strategy to use for supervising
child actors.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preRestart, sender, unhandled
log
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 ClusterMetricsExtension metrics()
public SupervisorStrategy supervisorStrategy()
Actor
supervisorStrategy
in interface Actor
public int collectorInstance()
public java.lang.String collectorName()
public void preStart()
Actor