net.fenyo.gnetwatch.activities
Class DebugQueue

java.lang.Object
  extended by net.fenyo.gnetwatch.GUI.VisualElement
      extended by net.fenyo.gnetwatch.activities.Queue
          extended by net.fenyo.gnetwatch.activities.DebugQueue
All Implemented Interfaces:
java.lang.Runnable

public class DebugQueue
extends Queue
implements java.lang.Runnable

This class implements a queue used to run debugging actions in background.

Version:
$Id: DebugQueue.java,v 1.14 2008/04/28 23:00:57 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private static int cnt
           
private  GUI local_gui
           
private static Log log
           
 
Constructor Summary
DebugQueue(java.lang.String name, Config config)
          Constructor.
 
Method Summary
protected  int getActionDelay()
          Returns the time to wait between two actions.
protected  int getCycleDelay()
          Returns the time to wait after each cycle.
protected  int getEmptyCycleDelay()
          Returns the time to wait between empty cycles.
protected  void informCycle()
          Called after each cycle.
 
Methods inherited from class net.fenyo.gnetwatch.activities.Queue
addAction, end, getConfig, inform, initialize, interrupt, isExhausted, removeAction, removeVisualElements, run, size
 
Methods inherited from class net.fenyo.gnetwatch.GUI.VisualElement
addParent, canManageThisChild, contains, disposed, duplicateTreeItemOnce, expandTreeItems, getAllParents, getChildren, getDescription, getGUI, getId, getItem, getParents, getProgress, getSubElements, getSubElements, getTreeItems, getType, informSelected, isDisposed, isThisOurTreeItem, selected, setChildren, setDescription, setGUI, setId, setImage, setImageExec, setImageFolder, setImageHost, setImageHost6, setImageHost6SNMP, setImageHostSNMP, setImageInterface, setImageMultiRow, setImageNetwork, setImageOscillo, setImageQueue, setImageWatch, setItem, setParent, setParent, setProgress, setType, unselected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

log

private static Log log

local_gui

private GUI local_gui

cnt

private static int cnt
Constructor Detail

DebugQueue

public DebugQueue(java.lang.String name,
                  Config config)
Constructor.

Parameters:
name - queue name.
config - configuration.
Method Detail

informCycle

protected void informCycle()
Called after each cycle.

Overrides:
informCycle in class Queue
Parameters:
none. -

getCycleDelay

protected int getCycleDelay()
Returns the time to wait after each cycle.

Specified by:
getCycleDelay in class Queue
Parameters:
none. -
Returns:
int time to wait.

getEmptyCycleDelay

protected int getEmptyCycleDelay()
Returns the time to wait between empty cycles.

Specified by:
getEmptyCycleDelay in class Queue
Parameters:
none. -
Returns:
time to wait.

getActionDelay

protected int getActionDelay()
Returns the time to wait between two actions.

Specified by:
getActionDelay in class Queue
Parameters:
none. -
Returns:
time to wait.