/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }