Package co.paralleluniverse.actors
Interface ActorsMXBean
-
public interface ActorsMXBean
An MXBean that monitors all actors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addWatch(long actorId)
Add an actor to the list of watched actors.long[]
getAllActorIds()
The strand IDs of all currently running actors.java.lang.String[]
getMailbox(long actorId)
Returns all messages currently awaiting in a given actor's mailbox.int
getNumActiveActors()
The number of currently active actors.java.lang.String
getStackTrace(long actorId)
Returns the stack trace of the strand running a given actor.java.util.List<ActorInfo>
getWatchedActorsInfo()
Actor information
for allwatched
actors.void
refresh()
void
removeWatch(long actorId)
Removes an actor from the set of watched actors.
-
-
-
Method Detail
-
refresh
void refresh()
-
getNumActiveActors
int getNumActiveActors()
The number of currently active actors.
-
getAllActorIds
long[] getAllActorIds()
The strand IDs of all currently running actors.
-
getStackTrace
java.lang.String getStackTrace(long actorId)
Returns the stack trace of the strand running a given actor.- Parameters:
actorId
- the strand ID of the actor- Returns:
- the current class-stack of the actor
-
getMailbox
java.lang.String[] getMailbox(long actorId)
Returns all messages currently awaiting in a given actor's mailbox.- Parameters:
actorId
- the strand ID of the actor- Returns:
- an array containing all messages currently awaiting in the actor's mailbox.
-
addWatch
void addWatch(long actorId)
Add an actor to the list of watched actors. Information about all watched actors is accessed via thewatchedActorsInfo property
.- Parameters:
actorId
- the actor's strand ID.
-
removeWatch
void removeWatch(long actorId)
Removes an actor from the set of watched actors.- Parameters:
actorId
- the actor's strand ID.- See Also:
addWatch(long)
-
getWatchedActorsInfo
java.util.List<ActorInfo> getWatchedActorsInfo()
Actor information
for allwatched
actors.
-
-