|
SNMP Stack 4_12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.westhawk.snmp.beans.SNMPBean | +--uk.co.westhawk.snmp.beans.SNMPRunBean | +--uk.co.westhawk.snmp.beans.InterfaceIndexesBean
This bean collects information about the number of interfaces on a system and their index.
The number is the number of network interfaces (regardless of their current state) present on this system. The number will remain the same untill the next time the SNMP server is restarted. The interfaces may go up and down while running.
The properties in the parent classes should be set, before calling the action() method. Via a PropertyChangeEvent the application/applet will be notified.
SNMPBean.setHost(java.lang.String)
,
SNMPBean.setPort(int)
,
SNMPBean.setCommunityName(java.lang.String)
,
SNMPRunBean.setUpdateInterval(int)
,
SNMPBean.addPropertyChangeListener(java.beans.PropertyChangeListener)
,
SNMPBean.action()
,
InterfaceGetNextPdu
Fields inherited from class uk.co.westhawk.snmp.beans.SNMPRunBean |
interval, me, running |
Fields inherited from class uk.co.westhawk.snmp.beans.SNMPBean |
community, context, host, message, port, propertyChangeListener |
Constructor Summary | |
InterfaceIndexesBean()
The default constructor. |
|
InterfaceIndexesBean(java.lang.String h,
int p)
The constructor that will set the host and the port no. |
Method Summary | |
void |
action()
This method starts the action of the bean. |
int |
getInterfaceCount()
Returns the number of current interfaces. |
java.util.Enumeration |
getInterfaceIndexes()
Returns the indexes (as Strings) of the current interfaces (the list of ifIndex). |
java.util.Date |
getLastUpdateDate()
Returns the date of the moment when this bean was last updated. |
void |
run()
Implements the running of the bean. |
void |
update(java.util.Observable obs,
java.lang.Object ov)
This method is called when the Pdu response is received. |
Methods inherited from class uk.co.westhawk.snmp.beans.SNMPRunBean |
getUpdateInterval, isRunning, setRunning, setUpdateInterval, setUpdateInterval |
Methods inherited from class uk.co.westhawk.snmp.beans.SNMPBean |
addPropertyChangeListener, firePropertyChange, getCommunityName, getHost, getMessage, getPort, isHostPortReachable, removePropertyChangeListener, setCommunityName, setHost, setMessage, setPort, setPort |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InterfaceIndexesBean()
public InterfaceIndexesBean(java.lang.String h, int p)
h
- the hostnamep
- the port noSNMPBean.setHost(java.lang.String)
,
SNMPBean.setPort(int)
Method Detail |
public java.util.Date getLastUpdateDate()
public java.util.Enumeration getInterfaceIndexes()
public int getInterfaceCount()
public void action()
action
in class SNMPBean
public void run()
run
in class SNMPRunBean
SNMPRunBean.isRunning()
public void update(java.util.Observable obs, java.lang.Object ov)
update
in interface java.util.Observer
SNMPBean.addPropertyChangeListener(java.beans.PropertyChangeListener)
|
SNMP Stack 4_12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |