Class SnmpInfo


  • public abstract class SnmpInfo
    extends java.lang.Object
    This class is used to format the Snmp block into an appropiate string for storage in the event data storage.
    Author:
    Brian Weaver , OpenNMS
    • Constructor Summary

      Constructors 
      Constructor Description
      SnmpInfo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Snmp createSnmp​(java.lang.String eventSnmp)
      Tries to create Snmp Object from formatted eventSnmp String.
      static java.lang.String format​(Snmp info, int maxlen)
      Converts the SNMP information from the event into a string that can be stored into the database.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SnmpInfo

        public SnmpInfo()
    • Method Detail

      • createSnmp

        public static Snmp createSnmp​(java.lang.String eventSnmp)
        Tries to create Snmp Object from formatted eventSnmp String.
        Parameters:
        eventSnmp - formatted snmp string that has all the @Snmp fields.
        Returns:
        snmp Snmp object created or null if it can't be created.