Class Toxic

java.lang.Object
eu.rekawek.toxiproxy.model.Toxic
Direct Known Subclasses:
Bandwidth, Latency, LimitData, ResetPeer, Slicer, SlowClose, Timeout

public abstract class Toxic extends Object
  • Constructor Details

  • Method Details

    • setAttributes

      protected abstract void setAttributes(com.google.gson.JsonObject attributes)
    • getAttributes

      protected abstract com.google.gson.JsonObject getAttributes()
    • getType

      protected abstract ToxicType getType()
    • createToxic

      protected void createToxic(String toxicListPath) throws IOException
      Throws:
      IOException
    • postAttribute

      protected void postAttribute(String name, long value) throws IOException
      Throws:
      IOException
    • setToxicity

      public void setToxicity(float toxicity) throws IOException
      Throws:
      IOException
    • getName

      public String getName()
    • getStream

      public ToxicDirection getStream()
    • getToxicity

      public float getToxicity()
    • remove

      public void remove() throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object