|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.harvesting.distribute.DomainStats
public class DomainStats
Tuple class to hold domain harvest statistics for a single domain.
Constructor Summary | |
---|---|
DomainStats(long initObjectCount,
long initByteCount,
StopReason defaultStopReason)
Constructor for a DomainStats object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |