Java Code Examples for com.netflix.servo.monitor.Monitors#unregisterObject()
The following examples show how to use
com.netflix.servo.monitor.Monitors#unregisterObject() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NFHttpClientFactory.java From ribbon with Apache License 2.0 | 5 votes |
public static void shutdownNFHttpClient(String name) { NFHttpClient c = namedClientMap.get(name); if (c != null) { c.shutdown(); namedClientMap.remove(name); Monitors.unregisterObject(name, c); } }
Example 2
Source File: BaseLoadBalancer.java From ribbon with Apache License 2.0 | 5 votes |
public void shutdown() { cancelPingTask(); if (primeConnections != null) { primeConnections.shutdown(); } Monitors.unregisterObject("LoadBalancer_" + name, this); Monitors.unregisterObject("Rule_" + name, this.getRule()); }
Example 3
Source File: NamedConnectionPool.java From ribbon with Apache License 2.0 | 4 votes |
@Override public void shutdown() { super.shutdown(); Monitors.unregisterObject(name, this); }
Example 4
Source File: PrimeConnections.java From ribbon with Apache License 2.0 | 4 votes |
public void shutdown() { executorService.shutdown(); Monitors.unregisterObject(name + "_PrimeConnection", this); }