public class DomainStats extends Object implements Serializable
Constructor and Description |
---|
DomainStats(long initObjectCount,
long initByteCount,
StopReason defaultStopReason)
Constructor for a DomainStats object.
|
Modifier and Type | Method and Description |
---|---|
long |
getByteCount() |
long |
getObjectCount() |
StopReason |
getStopReason() |
void |
setByteCount(long byteCount) |
void |
setObjectCount(long objectCount)
Set objectcount to something new.
|
void |
setStopReason(StopReason stopReason)
Set stopreason to something new.
|
public DomainStats(long initObjectCount, long initByteCount, StopReason defaultStopReason)
initObjectCount
- Start counting objects from this numberinitByteCount
- Start counting bytes from this numberdefaultStopReason
- The default StopReason for a given domain.ArgumentNotValid
- If initObjectCount < 0, initByteCount < 0, or defaultStopReason is null.public long getByteCount()
public void setByteCount(long byteCount)
byteCount
- The byteCount to set.ArgumentNotValid
- If byteCount is a negative number.public long getObjectCount()
public void setObjectCount(long objectCount)
objectCount
- The objectCount to set.ArgumentNotValid
- If objectCount is a negative number.public StopReason getStopReason()
public void setStopReason(StopReason stopReason)
stopReason
- The stopReason to set.ArgumentNotValid
- If argument is nullCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.