Class NetworkDisruption.DisruptedLinks

java.lang.Object
org.elasticsearch.test.disruption.NetworkDisruption.DisruptedLinks
Direct Known Subclasses:
NetworkDisruption.Bridge, NetworkDisruption.IsolateAllNodes, NetworkDisruption.TwoPartitions
Enclosing class:
NetworkDisruption

public abstract static class NetworkDisruption.DisruptedLinks
extends java.lang.Object
Represents a set of nodes with connections between nodes that are to be disrupted
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected DisruptedLinks​(java.util.Set<java.lang.String>... nodeSets)  
  • Method Summary

    Modifier and Type Method Description
    abstract boolean disrupt​(java.lang.String node1, java.lang.String node2)
    Returns true iff network should be disrupted between the two nodes
    java.util.Set<java.lang.String> nodes()
    Set of all nodes that can participate in disruptions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DisruptedLinks

      protected DisruptedLinks​(java.util.Set<java.lang.String>... nodeSets)
  • Method Details

    • nodes

      public java.util.Set<java.lang.String> nodes()
      Set of all nodes that can participate in disruptions
    • disrupt

      public abstract boolean disrupt​(java.lang.String node1, java.lang.String node2)
      Returns true iff network should be disrupted between the two nodes