Class SnmpIfAdmin


  • public class SnmpIfAdmin
    extends Object

    SnmpIfAdmin class.

    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    micmas Per modificare il modello associato al commento di questo tipo generato, aprire Finestra>Preferenze>Java>Generazione codice>Codice e commenti
    • Method Detail

      • setIfAdminUp

        public boolean setIfAdminUp​(int ifindex)
                             throws SQLException

        Set admin interface status to "up".

        Parameters:
        ifindex - interface index to set
        Returns:
        The status of interface
        Throws:
        SnmpBadConversionException - Throw if returned code is not an integer
        SQLException - if any.
      • setIfAdminDown

        public boolean setIfAdminDown​(int ifindex)
                               throws SQLException

        setIfAdminDown

        Parameters:
        ifindex - a int.
        Returns:
        a boolean.
        Throws:
        SQLException - if any.
      • isIfAdminStatusUp

        public boolean isIfAdminStatusUp()

        isIfAdminStatusUp

        Returns:
        a boolean.
      • isIfAdminStatusDown

        public boolean isIfAdminStatusDown()

        isIfAdminStatusDown

        Returns:
        a boolean.
      • getIfAdminStatus

        public int getIfAdminStatus​(int ifindex)

        Get desired admin interface status.

        Parameters:
        ifindex - interface index to get
        Returns:
        The status of interface
        Throws:
        SnmpBadConversionException - Throw if returned code is not an integer
      • getReadableAdminStatus

        public static String getReadableAdminStatus​(int value)

        Get status in readable human format.

        Parameters:
        value - a int.
        Returns:
        The status of interface in human format
      • setIfAdmin

        public boolean setIfAdmin​(int ifindex,
                                  int value)
                           throws SQLException

        Set admin interface status to value.

        Parameters:
        ifindex - interface index to set
        value - desired interface status value
        Returns:
        The status of interface after operation
        Throws:
        SnmpBadConversionException - Throw if returned code is not an integer
        SQLException - if any.
      • isValidState

        public static boolean isValidState​(int status)

        isValidState

        Parameters:
        status - a int.
        Returns:
        a boolean.