Class AscendActiveSessionBean

All Implemented Interfaces:
Runnable, Observer

public class AscendActiveSessionBean extends SNMPRunBean implements Observer

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 Details

    • ssnActiveCallReferenceNum

      public static final String ssnActiveCallReferenceNum
      A unique number identifying this active session. See the session.mib
      See Also:
    • ssnActiveUserName

      public static final String ssnActiveUserName
      The name of the remote user. See the session.mib
      See Also:
    • ssnActiveUserIPAddress

      public static final String ssnActiveUserIPAddress
      The IP address of the remote user. See the session.mib
      See Also:
    • ssnActiveUserSubnetMask

      public static final String ssnActiveUserSubnetMask
      The subnet mask of the remote user. See the session.mib
      See Also:
    • ssnActiveCurrentService

      public static final String ssnActiveCurrentService
      The current service provided to the remote user. See the session.mib
      See Also:
  • Constructor Details

  • Method Details

    • getLastUpdateDate

      public Date 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

      public String getUserName()
      Returns the name of the remote user of the Ascend active session.
      Returns:
      the name
    • getUserIPAddress

      public String getUserIPAddress()
      Returns the IP address of the remote user of the Ascend active session.
      Returns:
      the IP address
    • getUserSubnetMask

      public String getUserSubnetMask()
      Returns the subnet mask of the remote user of the Ascend active session.
      Returns:
      the subnet mask
    • getCurrentService

      public String 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.
      Specified by:
      action in class SNMPBean
    • 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 interface Runnable
      Specified by:
      run in class SNMPRunBean
      See Also:
    • update

      public void update(Observable obs, Object ov)
      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.
      Specified by:
      update in interface Observer
      See Also: