Package org.terracotta.angela.common.net
Class NetCrusherProvider
- java.lang.Object
-
- org.terracotta.angela.common.net.NetCrusherProvider
-
- All Implemented Interfaces:
DisruptionProvider
public class NetCrusherProvider extends Object implements DisruptionProvider
Net Crusher based DisruptionProvider.https://github.com/NetCrusherOrg/netcrusher-java
-
-
Constructor Summary
Constructors Constructor Description NetCrusherProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DisruptorcreateLink(InetSocketAddress src, InetSocketAddress dest)Create link to disrupt traffic flowing from the given source address to destination address(unidirectional)booleanisProxyBased()voidremoveLink(Disruptor disruptor)remove link
-
-
-
Method Detail
-
isProxyBased
public boolean isProxyBased()
- Specified by:
isProxyBasedin interfaceDisruptionProvider- Returns:
- true in case of a proxy based provider such as netcrusher or toxiproxy
-
createLink
public Disruptor createLink(InetSocketAddress src, InetSocketAddress dest)
Description copied from interface:DisruptionProviderCreate link to disrupt traffic flowing from the given source address to destination address(unidirectional)- Specified by:
createLinkin interfaceDisruptionProvider- Parameters:
src- source addressdest- destination address- Returns:
- Disruptor link
-
removeLink
public void removeLink(Disruptor disruptor)
Description copied from interface:DisruptionProviderremove link- Specified by:
removeLinkin interfaceDisruptionProvider- Parameters:
disruptor-Disruptor
-
-