Class Trapd

    • Constructor Detail

      • Trapd

        public Trapd()

        Constructs a new Trapd object that receives and forwards trap messages via JSDT. The session is initialized with the default client name of OpenNMS.trapd. The trap session is started on the default port, as defined by the SNMP library.

        See Also:
        SnmpTrapSession
    • Method Detail

      • onStart

        protected void onStart()
        Create the SNMP trap session and create the communication channel to communicate with eventd.
        Overrides:
        onStart in class AbstractServiceDaemon
        Throws:
        java.lang.reflect.UndeclaredThrowableException - if an unexpected database, or IO exception occurs.
        See Also:
        SnmpTrapSession, SnmpTrapHandler
      • onStop

        protected void onStop()
        Stops the currently running service. If the service is not running then the command is silently discarded.
        Overrides:
        onStop in class AbstractServiceDaemon
      • handleReloadEvent

        public void handleReloadEvent​(IEvent e)
      • publishListenerConfig

        public void publishListenerConfig()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getLoggingCategory

        public static java.lang.String getLoggingCategory()