|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.fenyo.gnetwatch.GUI.VisualElement
net.fenyo.gnetwatch.actions.Action
public class Action
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.
| Nested Class Summary | |
|---|---|
static class |
Action.InterruptCause
|
| Field Summary | |
|---|---|
private Background |
background
|
private static Log |
log
|
private Target |
target
|
| Constructor Summary | |
|---|---|
protected |
Action()
Default constructor. |
protected |
Action(Target target,
Background background)
Constructor. |
| Method Summary | |
|---|---|
boolean |
canManageThisChild(VisualElement visual_element)
Checks that another visual element type can be under this one. |
protected void |
disposed()
Called when this element is being removed. |
Background |
getBackground()
|
long |
getMaxDelay()
Returns the timeout associated with this action. |
java.lang.String |
getQueueName()
Returns the preferred queue. |
Target |
getTarget()
Returns the associated target. |
protected void |
initialize(GUI gui)
Called to inform about the current GUI. |
void |
interrupt(Action.InterruptCause cause)
Asks this action to stop rapidely. |
void |
invoke()
Asks this action to do its job. |
void |
setBackground(Background background)
Sets the background manager. |
void |
setTarget(Target target)
Sets the target. |
| Methods inherited from class net.fenyo.gnetwatch.GUI.VisualElement |
|---|
addParent, contains, duplicateTreeItemOnce, expandTreeItems, getAllParents, getChildren, getDescription, getGUI, getId, getItem, getParents, getProgress, getSubElements, getSubElements, getTreeItems, getType, informSelected, isDisposed, isThisOurTreeItem, removeVisualElements, 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 |
| Field Detail |
|---|
private static Log log
private Target target
private Background background
| Constructor Detail |
|---|
protected Action(Target target,
Background background)
target - target this action works on.background - queue manager by which this action will add events.protected Action()
none. - | Method Detail |
|---|
public void setTarget(Target target)
target - target.public void setBackground(Background background)
background - background manager.public Background getBackground()
protected void initialize(GUI gui)
initialize in class VisualElementgui - current GUI instance.public Target getTarget()
none. -
public java.lang.String getQueueName()
none. -
public long getMaxDelay()
none. -
public void interrupt(Action.InterruptCause cause)
throws java.io.IOException
cause - cause.
java.io.IOException - IO exception.
public void invoke()
throws java.io.IOException,
java.lang.InterruptedException
none. -
java.io.IOException - IO exception.
java.lang.InterruptedException - exception.public boolean canManageThisChild(VisualElement visual_element)
canManageThisChild in class VisualElementvisual_element - element to check against.
protected void disposed()
disposed in class VisualElementnone. -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||