Class Toxic
java.lang.Object
eu.rekawek.toxiproxy.model.Toxic
-
Constructor Summary
ConstructorsConstructorDescriptionToxic(HttpClient httpClient, String path, com.google.gson.JsonObject json) Toxic(HttpClient httpClient, String toxicListPath, String name, ToxicDirection stream) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateToxic(String toxicListPath) protected abstract com.google.gson.JsonObjectgetName()floatprotected abstract ToxicTypegetType()protected voidpostAttribute(String name, long value) voidremove()protected abstract voidsetAttributes(com.google.gson.JsonObject attributes) voidsetToxicity(float toxicity) toString()
-
Constructor Details
-
Toxic
-
Toxic
-
-
Method Details
-
setAttributes
protected abstract void setAttributes(com.google.gson.JsonObject attributes) -
getAttributes
protected abstract com.google.gson.JsonObject getAttributes() -
getType
-
createToxic
- Throws:
IOException
-
postAttribute
- Throws:
IOException
-
setToxicity
- Throws:
IOException
-
getName
-
getStream
-
getToxicity
public float getToxicity() -
remove
- Throws:
IOException
-
toString
-