Class OneNTServiceBean

All Implemented Interfaces:
Runnable, Observer

public class OneNTServiceBean extends SNMPRunBean implements Observer

This bean collects information about one NT network service 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:56 $
Author:
Birgit Arkesteijn
See Also:
  • Field Details

    • msg_inst_state

      public static final String[] msg_inst_state
    • msg_oper_state

      public static final String[] msg_oper_state
    • cannot_be_uninstalled

      public static final int cannot_be_uninstalled
      See Also:
    • can_be_uninstalled

      public static final int can_be_uninstalled
      See Also:
    • cannot_be_paused

      public static final int cannot_be_paused
      See Also:
    • can_be_paused

      public static final int can_be_paused
      See Also:
  • Constructor Details

  • Method Details

    • setIndex

      public void setIndex(String ind)
      Sets the index of the NT network service that will be requested.
      Parameters:
      ind - the index
      See Also:
    • getIndex

      public String getIndex()
      Returns the index of the NT network service.
      Returns:
      the index
      See Also:
    • getName

      public String getName()
      Returns the name of the NT network service.
      Returns:
      the name
    • getInstalledState

      public String getInstalledState()
      Returns the installation status of the NT network service.
      Returns:
      the installation status
      See Also:
    • getOperatingState

      public String getOperatingState()
      Returns the operating status of the NT network service.
      Returns:
      the operating status
      See Also:
    • getCanBeUninstalled

      public boolean getCanBeUninstalled()
      Returns if the NT network service can be uninstalled.
      Returns:
      the uninstalled option
      See Also:
    • getCanBePaused

      public boolean getCanBePaused()
      Returns if the NT network service can be paused.
      Returns:
      the paused option
      See Also:
    • 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
    • action

      public void action()
      This method starts sending the SNMP request. All properties should be set before this method is called. The actual sending will take place in the run method. It makes a new snmp context and initialises all variables before starting.
      Specified by:
      action in class SNMPBean
    • run

      public void run()
      The run method according to the Runnable interface. This method will send the Pdu request, 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)
      The update method according to the Observer interface, it will be called when the Pdu response is received. The property change event is fired.
      Specified by:
      update in interface Observer
      See Also: