Class NetworkDisruption.NetworkLinkDisruptionType

    • Constructor Detail

      • NetworkLinkDisruptionType

        public NetworkLinkDisruptionType()
    • Method Detail

      • applyDisruption

        public abstract void applyDisruption​(MockTransportService sourceTransportService,
                                             MockTransportService targetTransportService)
        Applies network disruption for requests send from the node represented by the source transport service to the node represented by the target transport service.
        Parameters:
        sourceTransportService - source transport service from which requests are sent
        targetTransportService - target transport service to which requests are sent
      • expectedTimeToHeal

        public TimeValue expectedTimeToHeal()
        Returns expected time to heal after disruption has been removed. Defaults to instant healing.