예제 #1
0
 /// <summary>
 /// Deregister an existing <see cref="AbstractActorMonitoringClient"/> instance so it no longer reports metrics to existing Actors.
 /// </summary>
 /// <returns>true if the monitor was succeessfully deregistered, false otherwise.</returns>
 public bool DeregisterMonitor(AbstractActorMonitoringClient client)
 {
     return(Registry.RemoveMonitor(client));
 }
예제 #2
0
 /// <summary>
 /// Deregister an existing <see cref="AbstractActorMonitoringClient"/> instance so it no longer reports metrics to existing Actors.
 /// </summary>
 /// <returns>true if the monitor was succeessfully deregistered, false otherwise.</returns>
 public static bool DeregisterMonitor(ActorSystem system, AbstractActorMonitoringClient client)
 {
     return(Monitors(system).DeregisterMonitor(client));
 }
예제 #3
0
 /// <summary>
 /// Remove a <see cref="IActorMonitoringClient"/> implementation from the active set
 /// </summary>
 /// <returns>true if the client was successfully removed, false otherwise</returns>
 public bool RemoveMonitor(AbstractActorMonitoringClient client)
 {
     return(_activeClients.TryRemove(client));
 }
예제 #4
0
 /// <summary>
 /// Register a new <see cref="AbstractActorMonitoringClient"/> instance to use when monitoring Actor operations.
 /// </summary>
 /// <returns>true if the monitor was succeessfully registered, false otherwise.</returns>
 public bool RegisterMonitor(AbstractActorMonitoringClient client)
 {
     return(Registry.AddMonitor(client));
 }
예제 #5
0
 /// <summary>
 /// Add a new <see cref="IActorMonitoringClient"/> monitoring implementation to be used
 /// when reporting Actor metrics
 /// </summary>
 /// <returns>true if the client was successfully added, false otherwise</returns>
 public bool AddMonitor(AbstractActorMonitoringClient client)
 {
     return(_activeClients.TryAdd(client));
 }