Class DomainStats

    • Constructor Detail

      • DomainStats

        public DomainStats​(long initObjectCount,
                           long initByteCount,
                           StopReason defaultStopReason)
        Constructor for a DomainStats object.
        Parameters:
        initObjectCount - Start counting objects from this number
        initByteCount - Start counting bytes from this number
        defaultStopReason - The default StopReason for a given domain.
        Throws:
        ArgumentNotValid - If initObjectCount < 0, initByteCount < 0, or defaultStopReason is null.
    • Method Detail

      • getByteCount

        public long getByteCount()
        Returns:
        the byteCount.
      • setByteCount

        public void setByteCount​(long byteCount)
        Parameters:
        byteCount - The byteCount to set.
        Throws:
        ArgumentNotValid - If byteCount is a negative number.
      • getObjectCount

        public long getObjectCount()
        Returns:
        the objectCount.
      • setObjectCount

        public void setObjectCount​(long objectCount)
        Set objectcount to something new.
        Parameters:
        objectCount - The objectCount to set.
        Throws:
        ArgumentNotValid - If objectCount is a negative number.
      • getStopReason

        public StopReason getStopReason()
        Returns:
        the stopReason.
      • setStopReason

        public void setStopReason​(StopReason stopReason)
        Set stopreason to something new.
        Parameters:
        stopReason - The stopReason to set.
        Throws:
        ArgumentNotValid - If argument is null