Package eu.rekawek.toxiproxy.model.toxic
Class Bandwidth
- java.lang.Object
-
- eu.rekawek.toxiproxy.model.Toxic
-
- eu.rekawek.toxiproxy.model.toxic.Bandwidth
-
public class Bandwidth extends Toxic
-
-
Constructor Summary
Constructors Constructor Description Bandwidth(HttpClient httpClient, String path, com.google.gson.JsonObject json)Bandwidth(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long rate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.gson.JsonObjectgetAttributes()longgetRate()protected ToxicTypegetType()protected voidsetAttributes(com.google.gson.JsonObject attributes)BandwidthsetRate(long rate)-
Methods inherited from class eu.rekawek.toxiproxy.model.Toxic
createToxic, getName, getStream, getToxicity, postAttribute, remove, setToxicity, toString
-
-
-
-
Constructor Detail
-
Bandwidth
public Bandwidth(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long rate) throws IOException
- Throws:
IOException
-
Bandwidth
public Bandwidth(HttpClient httpClient, String path, com.google.gson.JsonObject json)
-
-
Method Detail
-
setAttributes
protected void setAttributes(com.google.gson.JsonObject attributes)
- Specified by:
setAttributesin classToxic
-
getAttributes
protected com.google.gson.JsonObject getAttributes()
- Specified by:
getAttributesin classToxic
-
getRate
public long getRate()
-
setRate
public Bandwidth setRate(long rate) throws IOException
- Throws:
IOException
-
-