Class Slicer
java.lang.Object
eu.rekawek.toxiproxy.model.Toxic
eu.rekawek.toxiproxy.model.toxic.Slicer
-
Constructor Summary
ConstructorsConstructorDescriptionSlicer(HttpClient httpClient, String path, com.google.gson.JsonObject json) Slicer(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long averageSize, long delay) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.gson.JsonObjectlonglonggetDelay()longprotected ToxicTypegetType()protected voidsetAttributes(com.google.gson.JsonObject attributes) setAverageSize(long averageSize) setDelay(long delay) setSizeVariation(long sizeVariation) Methods inherited from class eu.rekawek.toxiproxy.model.Toxic
createToxic, getName, getStream, getToxicity, postAttribute, remove, setToxicity, toString
-
Constructor Details
-
Slicer
public Slicer(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream, long averageSize, long delay) throws IOException - Throws:
IOException
-
Slicer
-
-
Method Details
-
setAttributes
protected void setAttributes(com.google.gson.JsonObject attributes) - Specified by:
setAttributesin classToxic
-
getAttributes
protected com.google.gson.JsonObject getAttributes()- Specified by:
getAttributesin classToxic
-
getType
-
getAverageSize
public long getAverageSize() -
getSizeVariation
public long getSizeVariation() -
getDelay
public long getDelay() -
setAverageSize
- Throws:
IOException
-
setSizeVariation
- Throws:
IOException
-
setDelay
- Throws:
IOException
-