Package uk.co.westhawk.snmp.beans
Class AscendActiveSessionBean
java.lang.Object
uk.co.westhawk.snmp.beans.SNMPBean
uk.co.westhawk.snmp.beans.SNMPRunBean
uk.co.westhawk.snmp.beans.AscendActiveSessionBean
This bean is written for the Ascend Router from Lucent Technologies, Inc. The Ascend Enterprise MIBs can be downloaded from ByteSphere.
This bean collects information about the active session on an Ascend router.
The properties in the parent classes should be set, before calling the action() method. Via a PropertyChangeEvent the application/applet will be notified.
- Version:
- $Revision: 1.13 $ $Date: 2006/01/25 18:08:55 $
- Author:
- Birgit Arkesteijn
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
A unique number identifying this active session.static final String
The current service provided to the remote user.static final String
The IP address of the remote user.static final String
The name of the remote user.static final String
The subnet mask of the remote user. -
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.AscendActiveSessionBean
(String h, int p) The constructor that will set the host and the port no.AscendActiveSessionBean
(String h, int p, String b) The constructor that will set the host, the port no and the local bind address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
action()
This method starts the action of the bean.Returns the current service provided to the remote user of the Ascend active session.Returns the date of the moment when this bean was last updated.Returns the IP address of the remote user of the Ascend active session.Returns the name of the remote user of the Ascend active session.Returns the subnet mask of the remote user of the Ascend active session.void
run()
Implements the running of the bean.void
update
(Observable obs, 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, getBindAddress, getCommunityName, getHost, getMessage, getPort, getSocketType, removePropertyChangeListener, setBindAddress, setCommunityName, setHost, setPort, setPort, setSocketType
-
Field Details
-
ssnActiveCallReferenceNum
A unique number identifying this active session. See the session.mib- See Also:
-
ssnActiveUserName
The name of the remote user. See the session.mib- See Also:
-
ssnActiveUserIPAddress
The IP address of the remote user. See the session.mib- See Also:
-
ssnActiveUserSubnetMask
The subnet mask of the remote user. See the session.mib- See Also:
-
ssnActiveCurrentService
The current service provided to the remote user. See the session.mib- See Also:
-
-
Constructor Details
-
AscendActiveSessionBean
public AscendActiveSessionBean()The default constructor. -
AscendActiveSessionBean
The constructor that will set the host and the port no.- Parameters:
h
- the hostnamep
- the port no- See Also:
-
AscendActiveSessionBean
The constructor that will set the host, the port no and the local bind address.- Parameters:
h
- the hostnamep
- the port nob
- the local bind address- Since:
- 4_14
- See Also:
-
-
Method Details
-
getLastUpdateDate
Returns the date of the moment when this bean was last updated. This might be null when the first time the update was not finished.- Returns:
- the last update date
-
getUserName
Returns the name of the remote user of the Ascend active session.- Returns:
- the name
-
getUserIPAddress
Returns the IP address of the remote user of the Ascend active session.- Returns:
- the IP address
-
getUserSubnetMask
Returns the subnet mask of the remote user of the Ascend active session.- Returns:
- the subnet mask
-
getCurrentService
Returns the current service provided to the remote user of the Ascend active session.- Returns:
- the current service
-
action
public void action()This method starts the action of the bean. It will initialises all variables before starting. -
run
public void run()Implements the running of the bean. It will send the Pdu, if the previous one is not still in flight.- Specified by:
run
in interfaceRunnable
- Specified by:
run
in classSNMPRunBean
- See Also:
-
update
This method is called when the Pdu response is received. When all answers are received it will fire the property change event. The answers are stored in a hashtable, this is done because the speed can only be calculated with the previous answer.
-