Class AuditorImpl

    • Constructor Detail

    • Method Detail

      • setMaxValues

        protected void setMaxValues​(int totalSize,
                                    int fileSize,
                                    Duration duration)
      • setLogTimeout

        public void setLogTimeout​(Duration logTimeout)
      • setLogDir

        public void setLogDir​(String logDir)
      • getQueuedPacketsNumber

        public int getQueuedPacketsNumber()
        Description copied from interface: Auditor
        Returns the number of queued packets that are still in memory and need to be saved to a permanent store.
        Specified by:
        getQueuedPacketsNumber in interface Auditor
        Returns:
        the number of queued packets that are still in memory.
      • audit

        public void audit​(org.xmpp.packet.Packet packet,
                          Session session)
        Description copied from interface: Auditor
        Audit an XMPP packet.
        Specified by:
        audit in interface Auditor
        Parameters:
        packet - the packet being audited
        session - the session used for sending or receiving the packet
      • stop

        public void stop()
        Description copied from interface: Auditor
        Prepares the auditor for system shutdown.
        Specified by:
        stop in interface Auditor