Package eu.rekawek.toxiproxy.model
Class ToxicList
- java.lang.Object
-
- eu.rekawek.toxiproxy.model.ToxicList
-
public class ToxicList extends Object
-
-
Constructor Summary
Constructors Constructor Description ToxicList(HttpClient httpClient, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bandwidthbandwidth(String name, ToxicDirection direction, long rate)Toxicget(String name)<T extends Toxic>
Tget(String name, Class<T> type)List<? extends Toxic>getAll()Latencylatency(String name, ToxicDirection direction, long latency)LimitDatalimitData(String name, ToxicDirection direction, long bytes)ResetPeerresetPeer(String name, ToxicDirection direction, long timeout)Slicerslicer(String name, ToxicDirection direction, long averageSize, long delay)SlowCloseslowClose(String name, ToxicDirection direction, long delay)Timeouttimeout(String name, ToxicDirection direction, long timeout)
-
-
-
Constructor Detail
-
ToxicList
public ToxicList(HttpClient httpClient, String path)
-
-
Method Detail
-
getAll
public List<? extends Toxic> getAll() throws IOException
- Throws:
IOException
-
get
public Toxic get(String name) throws IOException
- Throws:
IOException
-
get
public <T extends Toxic> T get(String name, Class<T> type) throws IOException
- Throws:
IOException
-
bandwidth
public Bandwidth bandwidth(String name, ToxicDirection direction, long rate) throws IOException
- Throws:
IOException
-
latency
public Latency latency(String name, ToxicDirection direction, long latency) throws IOException
- Throws:
IOException
-
slicer
public Slicer slicer(String name, ToxicDirection direction, long averageSize, long delay) throws IOException
- Throws:
IOException
-
slowClose
public SlowClose slowClose(String name, ToxicDirection direction, long delay) throws IOException
- Throws:
IOException
-
timeout
public Timeout timeout(String name, ToxicDirection direction, long timeout) throws IOException
- Throws:
IOException
-
limitData
public LimitData limitData(String name, ToxicDirection direction, long bytes) throws IOException
- Throws:
IOException
-
resetPeer
public ResetPeer resetPeer(String name, ToxicDirection direction, long timeout) throws IOException
- Throws:
IOException
-
-