Class GeneralStatistics

    • Method Detail

      • update

        public void update​(Report report,
                           com.jscape.inet.mft.LogRecord record)
        Description copied from interface: Metrics
        Updates metrics with log record.
        Specified by:
        update in interface Metrics<GeneralStatistics.Visitor>
        Parameters:
        report - report instance
        record - log record
      • accept

        public java.lang.Object accept​(GeneralStatistics.Visitor visitor)
                                throws com.jscape.util.Visitable.VisitorException
        Description copied from interface: com.jscape.util.Visitable
        Backwards dispatching entry point.
        Specified by:
        accept in interface com.jscape.util.Visitable<GeneralStatistics.Visitor>
        Parameters:
        visitor - a visitor instance
        Returns:
        a visit result if any
        Throws:
        com.jscape.util.Visitable.VisitorException - if an error occurs
      • getTotalSessions

        public long getTotalSessions()
        Returns total sessions count.
        Returns:
        total sessions count
      • setTotalSessions

        public void setTotalSessions​(long value)
        Sets total sessions count.
        Parameters:
        value - total sessions count
      • getTotalUniqueIps

        public long getTotalUniqueIps()
        Returns total unique IPs count.
        Returns:
        total unique IPs count
      • setTotalUniqueIps

        public void setTotalUniqueIps​(int value)
      • getUniqueIps

        public java.util.Set getUniqueIps()
        Returns unique IPs set.
        Returns:
        unique IPs set
      • setUniqueIps

        public void setUniqueIps​(java.util.Set uniqueIps)
        Sets unique IPs set.
        Parameters:
        uniqueIps - unique IPs set
      • getTotalUploads

        public long getTotalUploads()
        Returns total uploads count.
        Returns:
        total uploads count
      • setTotalUploads

        public void setTotalUploads​(long value)
        Sets total uploads count.
        Parameters:
        value - total uploads count
      • getTotalDownloads

        public long getTotalDownloads()
        Returns total downloads count.
        Returns:
        total downloads count
      • setTotalDownloads

        public void setTotalDownloads​(long value)
        Sets total downloads count.
        Parameters:
        value - total downloads count
      • getTotalBytesUploaded

        public long getTotalBytesUploaded()
        Returns total bytes uploaded.
        Returns:
        total bytes uploaded
      • setTotalBytesUploaded

        public void setTotalBytesUploaded​(long value)
        Sets total bytes uploaded.
        Parameters:
        value - total bytes uploaded
      • getTotalBytesDownloaded

        public long getTotalBytesDownloaded()
        Returns total bytes downloaded.
        Returns:
        total bytes downloaded
      • setTotalBytesDownloaded

        public void setTotalBytesDownloaded​(long value)
        Sets total bytes downloaded.
        Parameters:
        value - total bytes downloaded
      • getTotalExternalUploads

        public long getTotalExternalUploads()
        Returns total external uploads count.
        Returns:
        total external uploads count.
      • setTotalExternalUploads

        public void setTotalExternalUploads​(long value)
        Sets total external uploads count.
        Parameters:
        value - total external uploads count.
      • getTotalExternalDownloads

        public long getTotalExternalDownloads()
        Returns total external downloads count.
        Returns:
        total external downloads count.
      • setTotalExternalDownloads

        public void setTotalExternalDownloads​(long value)
        Sets total external downloads count.
        Parameters:
        value - total external downloads count.
      • getTotalExternalBytesUploaded

        public long getTotalExternalBytesUploaded()
        Returns total external bytes uploaded.
        Returns:
        total external bytes uploaded
      • setTotalExternalBytesUploaded

        public void setTotalExternalBytesUploaded​(long value)
        Sets total external bytes uploaded.
        Parameters:
        value - total external bytes uploaded
      • getTotalExternalBytesDownloaded

        public long getTotalExternalBytesDownloaded()
        Returns total external bytes downloaded.
        Returns:
        total external bytes downloaded
      • setTotalExternalBytesDownloaded

        public void setTotalExternalBytesDownloaded​(long value)
        Sets total external bytes downloaded.
        Parameters:
        value - total external bytes downloaded
      • getTotalAttachmentsSent

        public long getTotalAttachmentsSent()
        Returns total attachments sent count.
        Returns:
        total attachments sent count.
      • setTotalAttachmentsSent

        public void setTotalAttachmentsSent​(long value)
        Sets total attachments sent count.
        Parameters:
        value - total attachments sent count.
      • getTotalAttachmentsReceived

        public long getTotalAttachmentsReceived()
        Returns total attachments received count.
        Returns:
        total attachments received count.
      • setTotalAttachmentsReceived

        public void setTotalAttachmentsReceived​(long value)
        Sets total attachments received count.
        Parameters:
        value - total attachments received count.
      • getTotalBytesAttachmentSent

        public long getTotalBytesAttachmentSent()
        Returns total bytes attachment sent.
        Returns:
        total bytes attachment sent.
      • setTotalBytesAttachmentSent

        public void setTotalBytesAttachmentSent​(long value)
        Sets total bytes attachment sent.
        Parameters:
        value - total bytes attachment sent.
      • getTotalBytesAttachmentReceived

        public long getTotalBytesAttachmentReceived()
        Returns total bytes attachment received.
        Returns:
        total bytes attachment received.
      • setTotalBytesAttachmentReceived

        public void setTotalBytesAttachmentReceived​(long value)
        Sets total bytes attachment received.
        Parameters:
        value - total bytes attachment received.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object