Class AbstractJMSTarget

    • Method Detail

      • send

        protected abstract void send​(javax.jms.Message message)
      • getSession

        protected abstract javax.jms.Session getSession()
      • doProcessEvent

        protected void doProcessEvent​(LogEvent event)
                               throws java.lang.Exception
        Process a log event, via formatting and outputting it.
        Specified by:
        doProcessEvent in class AbstractTarget
        Parameters:
        event - the log event
        Throws:
        java.lang.Exception - if an event processing error occurs
      • open

        protected void open()
        Startup log session.
        Overrides:
        open in class AbstractTarget
      • close

        public void close()
        Shutdown target. Attempting to write to target after close() will cause errors to be logged.
        Specified by:
        close in interface Closeable
        Overrides:
        close in class AbstractTarget
      • openConnection

        protected abstract void openConnection()
      • closeConnection

        protected abstract void closeConnection()