Class OnmsSnmpCollection


  • public class OnmsSnmpCollection
    extends java.lang.Object
    Represents SNMP collection data for a single collection period. It is particularly used to create a CollectionSet for a specific remote agent with createCollectionSet(org.opennms.netmgt.collectd.SnmpCollectionAgent) and to provide data to CollectionSet and other classes that are created during collection.
    Version:
    $Id: $
    Author:
    ranger
    • Method Detail

      • getName

        public java.lang.String getName()

        getName

        Returns:
        a String object.
      • getSnmpPort

        public int getSnmpPort​(int current)

        getSnmpPort

        Parameters:
        current - a int.
        Returns:
        a int.
      • getSnmpRetries

        public int getSnmpRetries​(int current)

        getSnmpRetries

        Parameters:
        current - a int.
        Returns:
        a int.
      • getSnmpTimeout

        public int getSnmpTimeout​(int current)

        getSnmpTimeout

        Parameters:
        current - a int.
        Returns:
        a int.
      • getSnmpReadCommunity

        public java.lang.String getSnmpReadCommunity​(java.lang.String current)

        getSnmpReadCommunity

        Parameters:
        current - a String object.
        Returns:
        a String object.
      • getSnmpWriteCommunity

        public java.lang.String getSnmpWriteCommunity​(java.lang.String current)

        getSnmpWriteCommunity

        Parameters:
        current - a String object.
        Returns:
        a String object.
      • getSnmpProxyFor

        public java.net.InetAddress getSnmpProxyFor​(java.net.InetAddress current)

        getSnmpProxyFor

        Parameters:
        current - a InetAddress object.
        Returns:
        a InetAddress object.
      • getSnmpVersion

        public int getSnmpVersion​(int current)

        getSnmpVersion

        Parameters:
        current - a int.
        Returns:
        a int.
      • getSnmpMaxVarsPerPdu

        public int getSnmpMaxVarsPerPdu​(int current)

        getSnmpMaxVarsPerPdu

        Parameters:
        current - a int.
        Returns:
        a int.
      • getSnmpMaxRepetitions

        public int getSnmpMaxRepetitions​(int current)

        getSnmpMaxRepetitions

        Parameters:
        current - a int.
        Returns:
        a int.
      • getSnmpMaxRequestSize

        public int getSnmpMaxRequestSize​(int current)

        getSnmpMaxRequestSize

        Parameters:
        current - a int.
        Returns:
        a int.
      • getSnmpSecurityName

        public java.lang.String getSnmpSecurityName​(java.lang.String current)

        getSnmpSecurityName

        Parameters:
        current - a String object.
        Returns:
        a String object.
      • getSnmpAuthPassPhrase

        public java.lang.String getSnmpAuthPassPhrase​(java.lang.String current)

        getSnmpAuthPassPhrase

        Parameters:
        current - a String object.
        Returns:
        a String object.
      • getSnmpAuthProtocol

        public java.lang.String getSnmpAuthProtocol​(java.lang.String current)

        getSnmpAuthProtocol

        Parameters:
        current - a String object.
        Returns:
        a String object.
      • getSnmpPrivPassPhrase

        public java.lang.String getSnmpPrivPassPhrase​(java.lang.String current)

        getSnmpPrivPassPhrase

        Parameters:
        current - a String object.
        Returns:
        a String object.
      • getSnmpPrivProtocol

        public java.lang.String getSnmpPrivProtocol​(java.lang.String current)

        getSnmpPrivProtocol

        Parameters:
        current - a String object.
        Returns:
        a String object.
      • getStorageFlag

        public java.lang.String getStorageFlag()

        getStorageFlag

        Returns:
        a String object.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String object.
      • getGenericIndexResourceTypes

        public java.util.Collection<ResourceType> getGenericIndexResourceTypes​(SnmpCollectionAgent agent)

        getGenericIndexResourceTypes

        Parameters:
        agent - a CollectionAgent object.
        Returns:
        a Collection object.