com.netflix.hystrix.contrib.networkauditor
Class HystrixNetworkAuditorAgent
java.lang.Object
com.netflix.hystrix.contrib.networkauditor.HystrixNetworkAuditorAgent
public class HystrixNetworkAuditorAgent
- extends java.lang.Object
Java Agent to instrument network code in the java.* libraries and use Hystrix state to determine if calls are Hystrix-isolated or not.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HystrixNetworkAuditorAgent
public HystrixNetworkAuditorAgent()
premain
public static void premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation inst)
notifyOfNetworkEvent
public static void notifyOfNetworkEvent()
- Invoked by instrumented code when network access occurs.
registerEventListener
public static void registerEventListener(HystrixNetworkAuditorEventListener bridge)
- Register the implementation of the
HystrixNetworkAuditorEventListener that will receive the events.
- Parameters:
bridge - HystrixNetworkAuditorEventListener implementation