Class TrafficAnalyzerRunnable

  • All Implemented Interfaces:
    Runnable

    public class TrafficAnalyzerRunnable
    extends Object
    implements Runnable
    This class is responsible for analyzing the traffic of the server.
    • Constructor Detail

      • TrafficAnalyzerRunnable

        public TrafficAnalyzerRunnable​(String pid,
                                       int windowSize,
                                       int delay,
                                       String attribute)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • update

        public void update​(int newDataPoint)
      • getThreshold

        public Double getThreshold()
      • detectAnomalies

        public Boolean detectAnomalies​(int newData)