dk.netarkivet.harvester.harvesting.distribute
Class DomainStats

java.lang.Object
  extended by dk.netarkivet.harvester.harvesting.distribute.DomainStats
All Implemented Interfaces:
java.io.Serializable

public class DomainStats
extends java.lang.Object
implements java.io.Serializable

Tuple class to hold domain harvest statistics for a single domain.

See Also:
Serialized Form

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

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