| |
|
| java.lang.Object net.fenyo.gnetwatch.GUI.VisualElement net.fenyo.gnetwatch.actions.Action
All known Subclasses: net.fenyo.gnetwatch.actions.ActionNmap, net.fenyo.gnetwatch.actions.ActionPing, net.fenyo.gnetwatch.actions.ActionSNMP, net.fenyo.gnetwatch.actions.ActionHTTP, net.fenyo.gnetwatch.actions.ActionFlood,
Action | public class Action extends VisualElement (Code) | | Action is the base class for any action: ActionFlood, ActionPing, ActionSNMP, etc.
An action applies an operation to a target and adds events to this target depending
on the result of the operation and the computed RTT.
author: Alexandre Fenyo version: $Id: Action.java,v 1.20 2007/03/12 05:04:15 fenyo Exp $ |
Inner Class :public enum InterruptCause | |
Method Summary | |
public boolean | canManageThisChild(VisualElement visual_element) Checks that another visual element type can be under this one.
Parameters: visual_element - element to check against. | protected void | disposed() Called when this element is being removed.
none. | public long | getMaxDelay() Returns the timeout associated with this action.
none. | public String | getQueueName() Returns the preferred queue.
none. | protected Target | getTarget() Returns the associated target.
none. | protected void | initialize(GUI gui) Called to inform about the current GUI.
Parameters: gui - current GUI instance. | public void | interrupt(InterruptCause cause) Asks this action to stop rapidely.
Parameters: cause - cause. | public void | invoke() Asks this action to do its job.
none. | public void | setBackground(Background background) Sets the background manager.
Parameters: background - background manager. | public void | setTarget(Target target) Sets the target.
Parameters: target - target. |
Action | protected Action(Target target, Background background)(Code) | | Constructor.
Parameters: target - target this action works on. Parameters: background - queue manager by which this action will add events. |
Action | protected Action()(Code) | | Constructor.
none. |
canManageThisChild | public boolean canManageThisChild(VisualElement visual_element)(Code) | | Checks that another visual element type can be under this one.
Parameters: visual_element - element to check against. boolean true if this element can be under this action. |
disposed | protected void disposed()(Code) | | Called when this element is being removed.
none. void. |
getMaxDelay | public long getMaxDelay()(Code) | | Returns the timeout associated with this action.
none. long timeout. |
getQueueName | public String getQueueName()(Code) | | Returns the preferred queue.
none. String preferred queue. |
getTarget | protected Target getTarget()(Code) | | Returns the associated target.
none. Target associated target. |
initialize | protected void initialize(GUI gui)(Code) | | Called to inform about the current GUI.
Parameters: gui - current GUI instance. void. |
interrupt | public void interrupt(InterruptCause cause) throws IOException(Code) | | Asks this action to stop rapidely.
Parameters: cause - cause. void. throws: IOException - IO exception. |
setBackground | public void setBackground(Background background)(Code) | | Sets the background manager.
Parameters: background - background manager. void. |
setTarget | public void setTarget(Target target)(Code) | | Sets the target.
Parameters: target - target. void. |
|
|
|