Class NTPrintQBean

All Implemented Interfaces:
Runnable, Observer

public class NTPrintQBean extends SNMPRunBean implements Observer

This bean collects the names of the print queues installed on a NT server. The NT mib is described in the LAN Manager MIB II for Windows NT Objects . You will have to register to the MSDN before accessing this page.

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

  • 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
    • getIndices

      public Enumeration getIndices()
      Returns the indices of the NT print queues. The OID of this print queue is a concatenation of the name (svPrintQName) OID and the print queue specific index. The index should be used to get the other properties of this print queue.
      See Also:
    • getIndex

      public String getIndex(String name)
      Returns the index of one of the print queues. The OID of this print queue is a concatenation of the name (svPrintQName) OID and the print queue specific index. The index should be used to get the other properties of this print queue.
      Parameters:
      name - The name of the print queue
      Returns:
      the print queue index, might be null if no print queue with such name exists
      See Also:
    • getNames

      public Enumeration getNames()
      Returns the names of the NT print queues (the list of svPrintQName).
    • getCount

      public int getCount()
      Returns the number of NT print queues.
    • 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: