Logic
Class RouterLoad

java.lang.Object
  extended by Logic.RouterLoad

public class RouterLoad
extends java.lang.Object

Handles the concurrent polling process of the discovered routers for both the training and operational phase

Author:
Ioannis Kakavas, Spyridon Dossis

Constructor Summary
RouterLoad()
           
RouterLoad(java.lang.String samplesNo, java.lang.String timePeriod, boolean log, java.lang.String logname)
          Constructor for RouterLoad -- To Be Used When One-Time Polling is required
RouterLoad(java.lang.String samplesNo, java.lang.String timePeriod, java.lang.String timePeriodOper, java.lang.String maximumOperationalTimeDuration)
          Constructor for RouterLoad -- To Be Used When Live Monitoring is required
 
Method Summary
 void pollLoads(RouterCollection discRouters, java.lang.String username, java.lang.String pass)
          Polling the routers
 void printOctets(RouterCollection routers)
          Prints the necessary information for each router in Outlier Detection process
 void writeToFile(RouterCollection routers, java.lang.String filename)
          Creates a log file with the information about the routers, when DetectOutliers is being called with the "-w" argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouterLoad

public RouterLoad()

RouterLoad

public RouterLoad(java.lang.String samplesNo,
                  java.lang.String timePeriod,
                  boolean log,
                  java.lang.String logname)
Constructor for RouterLoad -- To Be Used When One-Time Polling is required

Parameters:
samplesNo - - The number of required samples
timePeriod - - The polling time period

RouterLoad

public RouterLoad(java.lang.String samplesNo,
                  java.lang.String timePeriod,
                  java.lang.String timePeriodOper,
                  java.lang.String maximumOperationalTimeDuration)
Constructor for RouterLoad -- To Be Used When Live Monitoring is required

Parameters:
samplesNo - - The number of required samples
timePeriod - - The polling time period
maxOperationalDuration - - Maximum operational duration
Method Detail

pollLoads

public void pollLoads(RouterCollection discRouters,
                      java.lang.String username,
                      java.lang.String pass)
Polling the routers

Parameters:
discRouters - - The collection of the discovered Routers

printOctets

public void printOctets(RouterCollection routers)
Prints the necessary information for each router in Outlier Detection process

Parameters:
routers - - The collection of discovered routers

writeToFile

public void writeToFile(RouterCollection routers,
                        java.lang.String filename)
Creates a log file with the information about the routers, when DetectOutliers is being called with the "-w" argument.

Parameters:
routers - the Collection of the routers for which we have the load information
filename - the name of the log file to write the data.