Class PollableInterface


  • public class PollableInterface
    extends java.lang.Object
    Represents an SNMP PollableInterface
    Version:
    $Id: $
    Author:
    Antonio Russo
    • Constructor Detail

      • PollableInterface

        public PollableInterface​(PollableNetwork parent)

        Constructor for PollableInterface.

        Parameters:
        parent - a PollableNetwork object.
    • Method Detail

      • initialize

        protected void initialize()

        Initialize the service monitor.

        Throws:
        java.lang.RuntimeException - Thrown if an unrecoverable error occurs that prevents the plug-in from functioning.
      • getNodeid

        public int getNodeid()

        getNodeid

        Returns:
        a int.
      • setNodeid

        public void setNodeid​(int nodeid)

        setNodeid

        Parameters:
        nodeid - a int.
      • getIpaddress

        public java.lang.String getIpaddress()

        getIpaddress

        Returns:
        a String object.
      • setIpaddress

        public void setIpaddress​(java.lang.String ipaddress)

        setIpaddress

        Parameters:
        ipaddress - a String object.
      • getNetMask

        public java.lang.String getNetMask()
      • setNetMask

        public void setNetMask​(java.lang.String netMask)
      • createPollableSnmpInterface

        public PollableSnmpInterface createPollableSnmpInterface​(java.lang.String location,
                                                                 java.lang.String name,
                                                                 java.lang.String criteria,
                                                                 boolean hasPort,
                                                                 int port,
                                                                 boolean hasTimeout,
                                                                 int timeout,
                                                                 boolean hasRetries,
                                                                 int retries,
                                                                 boolean hasMaxVarsPerPdu,
                                                                 int maxVarsPerPdu,
                                                                 int[] upValues,
                                                                 int[] downValues)

        createPollableSnmpInterface

        Parameters:
        location -
        name - a String object.
        criteria - a String object.
        hasPort - a boolean.
        port - a int.
        hasTimeout - a boolean.
        timeout - a int.
        hasRetries - a boolean.
        retries - a int.
        hasMaxVarsPerPdu - a boolean.
        maxVarsPerPdu - a int.
        Returns:
        a PollableSnmpInterface object.
      • refresh

        protected void refresh()

        refresh

      • suspend

        protected void suspend()

        suspend

      • activate

        protected void activate()

        activate

      • getSnmpinterfacepollableNodes

        public java.util.Map<java.lang.String,​PollableSnmpInterface> getSnmpinterfacepollableNodes()

        getSnmpinterfacepollableNodes

        Returns:
        a HashMap object.
      • polling

        public boolean polling()

        polling

        Returns:
        a boolean.
      • delete

        protected void delete()

        delete

      • getPackageName

        public java.lang.String getPackageName()

        getPackageName

        Returns:
        a String object.
      • setPackageName

        public void setPackageName​(java.lang.String packageName)

        setPackageName

        Parameters:
        packageName - a String object.