com.netflix.hystrix.contrib.networkauditor
Class HystrixNetworkAuditorAgent

java.lang.Object
  extended by 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.


Constructor Summary
HystrixNetworkAuditorAgent()
           
 
Method Summary
static void notifyOfNetworkEvent()
          Invoked by instrumented code when network access occurs.
static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation inst)
           
static void registerEventListener(HystrixNetworkAuditorEventListener bridge)
          Register the implementation of the HystrixNetworkAuditorEventListener that will receive the events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HystrixNetworkAuditorAgent

public HystrixNetworkAuditorAgent()
Method Detail

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