How to get total number message sent/ processed/ pending

60 views
Skip to first unread message

akkanovice

unread,
Oct 30, 2015, 4:36:27 AM10/30/15
to Akka Developer List
I am novice to akka and I inherited large akka based code. I am picking this tech fast. Got one question

We have various actors ( which extends ) UntypedActor in our system

I can get count of message received and under processed by maintaining count in onReceive which I am overriding

I want to know what is the total number of messages in system to all actors ( which is going to be queue length +( total number of message received by actors so far - message processed so far)


I dont know how to get this "total number of messages sent""

we are sending message sent by using actorref.tell
ActorRef localMaster = context().actorFor(LocalMasterActor.absolutePath);
localMaster.tell

I was thinking about overide tell method and increment counter and then call tell. But i tont know how to do get MyActorRef. something like


MyActorRef localMaster = context().actorFor(LocalMasterActor.absolutePath);
localMaster.mytell(...)

What is the best way to get total number of messgaes sent in abstract way ( i dont want to increment counter in over the places where i am call tell method)

Endre Varga

unread,
Oct 30, 2015, 4:37:07 AM10/30/15
to akka...@googlegroups.com
Hi,

This akka-dev ML is discontinued. Developer discussions are on Gitter (akka/dev) and user ML is akka-user. 

-Endre


--
You received this message because you are subscribed to the Google Groups "Akka Developer List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages