1 2 23 24 package net.fenyo.gnetwatch.activities; 25 26 import java.util.LinkedList ; 27 import java.util.List ; 28 29 import net.fenyo.gnetwatch.*; 30 import net.fenyo.gnetwatch.GUI.*; 31 import net.fenyo.gnetwatch.actions.Action; 32 import net.fenyo.gnetwatch.targets.*; 33 34 import org.apache.commons.logging.Log; 35 import org.apache.commons.logging.LogFactory; 36 37 42 43 public class PingQueue extends Queue implements Runnable { 44 private static Log log = LogFactory.getLog(PingQueue.class); 45 46 51 public PingQueue(final String name, final Config config) { 53 super(name, config); 54 setDescription(config.getString("dedicated_for_reachability_testing")); 55 } 56 57 62 protected int getCycleDelay() { 64 return 1000; 65 } 66 67 72 protected int getEmptyCycleDelay() { 74 return 1000; 75 } 76 77 82 protected int getActionDelay() { 84 return 0; 85 } 86 } 87 | Popular Tags |