net.fenyo.gnetwatch.activities
Class GenericProcessQueue

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

public class GenericProcessQueue
extends Queue
implements java.lang.Runnable

This queue holds generic process actions.

Version:
$Id: GenericProcessQueue.java,v 1.1 2008/05/21 16:46:06 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private static Log log
           
 
Constructor Summary
GenericProcessQueue(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.
 
Methods inherited from class net.fenyo.gnetwatch.activities.Queue
addAction, end, getConfig, inform, informCycle, 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
Constructor Detail

GenericProcessQueue

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

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

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.