|
|||||||||
| 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
net.fenyo.gnetwatch.actions.ActionSNMP
public class ActionSNMP
Instances of this action class use SNMP to get the interface list of their target, and to get SNMP counters for each interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.fenyo.gnetwatch.actions.Action |
|---|
Action.InterruptCause |
| Field Summary | |
|---|---|
private boolean |
interfaces_created
|
private boolean |
interrupted
|
private java.util.Map<java.lang.Integer,java.lang.Long> |
last_total_bytes_received
|
private java.util.Map<java.lang.Integer,java.lang.Long> |
last_total_bytes_received_time
|
private java.util.Map<java.lang.Integer,java.lang.Long> |
last_total_bytes_sent
|
private java.util.Map<java.lang.Integer,java.lang.Long> |
last_total_bytes_sent_time
|
private static Log |
log
|
private java.util.Map<java.lang.Integer,TargetInterface> |
targets
|
| Constructor Summary | |
|---|---|
ActionSNMP()
Constructor. |
|
ActionSNMP(Target target,
Background background)
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
disposed()
Called when this element is being removed. |
long |
getMaxDelay()
Returns the timeout associated with this action. |
java.lang.String |
getQueueName()
Returns the preferred queue. |
void |
interrupt(Action.InterruptCause cause)
Asks this action to stop rapidely. |
void |
invoke()
Gets the interface list to create interfaces and gets snmp counters. |
| Methods inherited from class net.fenyo.gnetwatch.actions.Action |
|---|
canManageThisChild, getBackground, getTarget, initialize, setBackground, setTarget |
| 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 boolean interrupted
private boolean interfaces_created
private java.util.Map<java.lang.Integer,TargetInterface> targets
private java.util.Map<java.lang.Integer,java.lang.Long> last_total_bytes_received
private java.util.Map<java.lang.Integer,java.lang.Long> last_total_bytes_sent
private java.util.Map<java.lang.Integer,java.lang.Long> last_total_bytes_received_time
private java.util.Map<java.lang.Integer,java.lang.Long> last_total_bytes_sent_time
| Constructor Detail |
|---|
public ActionSNMP(Target target,
Background background)
target - target this action works on.background - queue manager by which this action will add events.public ActionSNMP()
none. - | Method Detail |
|---|
public java.lang.String getQueueName()
getQueueName in class Actionnone. -
public long getMaxDelay()
getMaxDelay in class Actionnone. -
public void interrupt(Action.InterruptCause cause)
interrupt in class Actioncause - cause.
java.io.IOException - IO exception.
public void invoke()
throws java.io.IOException,
java.lang.InterruptedException
invoke in class Actionnone. -
java.io.IOException - IO exception.
java.lang.InterruptedException - exception.protected void disposed()
disposed in class Actionnone. -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||