dk.netarkivet.harvester.datamodel
Class SparseFullHarvest

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.SparseFullHarvest

public class SparseFullHarvest
extends java.lang.Object

Sparse version of FullHarvest to be used for GUI purposes only. Immutable. For GUI purposes only.

See Also:
FullHarvest

Constructor Summary
SparseFullHarvest(java.lang.Long oid, java.lang.String harvestDefName, java.lang.String comments, int numEvents, boolean active, long edition, long maxCountObjects, long maxBytes, long maxJobRunningTime, java.lang.Long previousFullHarvest)
          Create new instance of SparseFullHarvest.
 
Method Summary
 java.lang.String getComments()
          Comments for harvest definition.
 long getEdition()
          DAO edition of harvest definition.
 long getMaxBytes()
          Get the maximum number of bytes that this fullharvest will harvest per domain, -1 for no limit.
 long getMaxCountObjects()
          Get the maximum number of objects that this fullharvest will harvest per domain, -1 for no limit.
 long getMaxJobRunningTime()
          Get the maximum number of time in seconds that each job in this fullharvest will take.
 java.lang.String getName()
          Name of harvest definition.
 int getNumEvents()
          Number of times this harvest has run.
 java.lang.Long getOid()
          ID of this harvest.
 java.lang.Long getPreviousHarvestDefinitionOid()
          Get ID of HarvestDefinition which this is based on, or null for none.
 boolean isActive()
          Whether harvest is active.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparseFullHarvest

public SparseFullHarvest(java.lang.Long oid,
                         java.lang.String harvestDefName,
                         java.lang.String comments,
                         int numEvents,
                         boolean active,
                         long edition,
                         long maxCountObjects,
                         long maxBytes,
                         long maxJobRunningTime,
                         java.lang.Long previousFullHarvest)
Create new instance of SparseFullHarvest.

Parameters:
oid - id of this harvest.
harvestDefName - the name of the harvest definition.
comments - comments.
numEvents - Number of times this harvest has run.
active - Whether this harvest definition is active.
edition - DAO edition of harvest.
maxCountObjects - Limit for how many objects can be harvested
maxBytes - Limit for how many bytes can be harvested
maxJobRunningTime - Limit on how much time can be used for this job. See getMaxJobRunningTime()
previousFullHarvest - This id of the harvestDefinition used to create this Fullharvest definition. May be null for none
Throws:
ArgumentNotValid - if oid, name or comments is null, or name is empty.
Method Detail

getPreviousHarvestDefinitionOid

public java.lang.Long getPreviousHarvestDefinitionOid()
Get ID of HarvestDefinition which this is based on, or null for none.

Returns:
The previous HarvestDefinition, or null for none

getMaxCountObjects

public long getMaxCountObjects()
Get the maximum number of objects that this fullharvest will harvest per domain, -1 for no limit.

Returns:
Total download limit in objects per domain.

getMaxBytes

public long getMaxBytes()
Get the maximum number of bytes that this fullharvest will harvest per domain, -1 for no limit.

Returns:
Total download limit in bytes per domain.

getMaxJobRunningTime

public long getMaxJobRunningTime()
Get the maximum number of time in seconds that each job in this fullharvest will take. 0 for no limit.

Returns:
the maximum number of time in seconds for each job in this fullharvest.

getName

public java.lang.String getName()
Name of harvest definition.

Returns:
Name of harvest definition.

getComments

public java.lang.String getComments()
Comments for harvest definition.

Returns:
Comments for harvest definition.

getNumEvents

public int getNumEvents()
Number of times this harvest has run.

Returns:
Number of times this harvest has run.

getOid

public java.lang.Long getOid()
ID of this harvest.

Returns:
ID of this harvest.

isActive

public boolean isActive()
Whether harvest is active.

Returns:
Whether harvest is active.

getEdition

public long getEdition()
DAO edition of harvest definition.

Returns:
DAO edition of harvest definition.