public final class ScheduledHarvest
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable
Constructor and Description |
---|
ScheduledHarvest()
Constructor for the ScheduledHarvest object
|
ScheduledHarvest(java.lang.String repositoryName,
java.lang.String setSpec,
java.lang.String baseURL,
java.lang.String metadataPrefix,
java.lang.String harvestingInterval,
java.lang.String intervalGranularity,
java.lang.String runAtTime,
java.lang.String enabledDisabled,
java.io.File harvestDir,
boolean spl,
boolean isZip,
boolean def,
boolean doZip,
java.lang.String dupAllow)
Constructor for the ScheduledHarvest object
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compare for sorting purposes
|
boolean |
equals(java.lang.Object o)
Checks equality of two ScheduledHarvest objects.
|
java.lang.String |
getAllowDupDir()
Gets the allowDupDir attribute of the ScheduledHarvest object
|
java.lang.String |
getBackupOne()
Gets the backupOne attribute of the ScheduledHarvest object
|
java.lang.String |
getBackupThree()
Gets the backupThree attribute of the ScheduledHarvest object
|
java.lang.String |
getBackupTwo()
Gets the backupTwo attribute of the ScheduledHarvest object
|
java.lang.String |
getBaseURL()
Gets the baseURL attribute of the ScheduledHarvest object
|
static java.lang.String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:
|
boolean |
getDefaultDir()
Gets the defaultDir attribute of the ScheduledHarvest object
|
boolean |
getDoZipResult()
Determine if the harvested files should be zipped
|
java.lang.String |
getEnabledDisabled()
Gets the enabledDisabled attribute of the ScheduledHarvest object
|
boolean |
getHarvestAll()
Gets the harvestAll attribute of the ScheduledHarvest object
|
java.io.File |
getHarvestDir()
Gets the harvestDir attribute of the ScheduledHarvest object
|
java.lang.String |
getHarvestingInterval()
Gets the harvestingInterval attribute of the ScheduledHarvest object
|
java.lang.String |
getIntervalGranularity()
Gets the intervalGranularity attribute of the ScheduledHarvest object
|
java.lang.String |
getIntervalGranularityLabel()
Gets the intervalGranularityLabel attribute of the ScheduledHarvest object
|
boolean |
getIsZipPresent()
Gets the isZipPresent attribute of the ScheduledHarvest object
|
java.util.Date |
getLastHarvestTime()
Gets the lastHarvestTime attribute of the ScheduledHarvest object
|
java.lang.String |
getMetadataPrefix()
Gets the metadataPrefix attribute of the ScheduledHarvest object
|
int |
getNumHarvestedLast()
Gets the numHarvestedLast attribute of the ScheduledHarvest object
|
java.lang.String |
getRepositoryName()
Gets the repositoryName attribute of the ScheduledHarvest object
|
java.lang.String |
getRepositoryNameEscaped()
RepositoryName with quotes escaped for use in JavaScript literals.
|
java.lang.String |
getRunAtTime()
Gets the time of day to begin the regular harvests in 24 hour time, for example 23:15.
|
java.lang.String |
getRunAtTimeDisplay()
Gets the time of day this scheduled harvest is set to run, for display, for example 1:00 PM.
|
java.lang.String |
getSetSpec()
Gets the setSpec attribute of the ScheduledHarvest object
|
java.lang.String |
getSetSpecHtml()
Gets the setSpecHtml attribute of the ScheduledHarvest object
|
boolean |
getSplitBySet()
Gets the splitBySet attribute of the ScheduledHarvest object
|
java.lang.Long |
getUid()
Gets the uid attribute of the ScheduledHarvest object
|
boolean |
getWarnR()
Gets the warnR attribute of the ScheduledHarvest object
|
java.lang.String |
getZipLatest()
Gets the zipLatest attribute of the ScheduledHarvest object
|
void |
setAllowDupDir(java.lang.String v)
Sets the allowDupDir attribute of the ScheduledHarvest object
|
void |
setBackupOne(java.lang.String bOne)
Sets the backupOne attribute of the ScheduledHarvest object
|
void |
setBackupThree(java.lang.String bThree)
Sets the backupThree attribute of the ScheduledHarvest object
|
void |
setBackupTwo(java.lang.String bTwo)
Sets the backupTwo attribute of the ScheduledHarvest object
|
void |
setBaseURL(java.lang.String val)
Sets the baseURL attribute of the ScheduledHarvest object
|
static void |
setDebug(boolean db)
Sets the debug attribute object
|
void |
setDefaultDir(boolean def)
Sets the defaultDir attribute of the ScheduledHarvest object
|
void |
setEnabledDisabled(java.lang.String val)
Sets the enabledDisabled attribute of the ScheduledHarvest object
|
void |
setHarvestAll(boolean h)
Sets the harvestAll attribute of the ScheduledHarvest object
|
void |
setHarvestDir(java.io.File hd)
Sets the harvestDir attribute of the ScheduledHarvest object
|
void |
setHarvestingInterval(java.lang.String val)
Sets the harvestingInterval attribute of the ScheduledHarvest object
|
void |
setIntervalGranularity(java.lang.String val)
Sets the intervalGranularity attribute of the ScheduledHarvest object
|
void |
setIsZipPresent(boolean isZip)
Sets the isZipPresent attribute of the ScheduledHarvest object
|
void |
setLastHarvestTime(java.util.Date val)
Sets the lastHarvestTime attribute of the ScheduledHarvest object
|
void |
setMetadataPrefix(java.lang.String val)
Sets the metadataPrefix attribute of the ScheduledHarvest object
|
void |
setNumHarvestedLast(int n)
Sets the numHarvestedLast attribute of the ScheduledHarvest object
|
void |
setRepositoryName(java.lang.String val)
Sets the repositoryName attribute of the ScheduledHarvest object
|
void |
setRunAtTime(java.lang.String runAtTime)
Sets the time of day to begin the regular harvests, in 24 hour time for example 23:15.
|
void |
setSetSpec(java.lang.String val)
Sets the setSpec attribute of the ScheduledHarvest object
|
void |
setSplitBySet(boolean spl)
Sets the splitBySet attribute of the ScheduledHarvest object
|
void |
setUid(java.lang.Long val)
Sets the uid attribute of the ScheduledHarvest object
|
void |
setWarnR(boolean w)
Sets the warnR attribute of the ScheduledHarvest object
|
void |
setZipLatest(java.lang.String z)
Sets the zipLatest attribute of the ScheduledHarvest object
|
java.lang.String |
toString()
Provides a String representataion for this ScheduledHarvest.
|
public ScheduledHarvest()
public ScheduledHarvest(java.lang.String repositoryName, java.lang.String setSpec, java.lang.String baseURL, java.lang.String metadataPrefix, java.lang.String harvestingInterval, java.lang.String intervalGranularity, java.lang.String runAtTime, java.lang.String enabledDisabled, java.io.File harvestDir, boolean spl, boolean isZip, boolean def, boolean doZip, java.lang.String dupAllow)
repositoryName
- Name of the repository.setSpec
- setSpec to be harvested, or null for none.baseURL
- BaseURL.metadataPrefix
- MetadataPrefix.harvestingInterval
- Interval for harvesting.intervalGranularity
- Interval granularity.runAtTime
- The time of day to begin the harvest in 24 hour time for example 23:15, or
null to schedule immediatelyenabledDisabled
- One of exactly enabled or disabled.harvestDir
- Description of the Parameterspl
- Description of the ParameterisZip
- Description of the Parameterdef
- Description of the ParameterdupAllow
- Description of the ParameterdoZip
- True to zip the resulting harvestpublic java.lang.Long getUid()
public boolean getWarnR()
public java.lang.String getAllowDupDir()
public boolean getDefaultDir()
public int getNumHarvestedLast()
public java.lang.String getBackupOne()
public java.lang.String getZipLatest()
public java.lang.String getBackupTwo()
public java.lang.String getBackupThree()
public boolean getIsZipPresent()
public java.lang.String getRepositoryName()
public java.lang.String getRepositoryNameEscaped()
public java.io.File getHarvestDir()
public boolean getSplitBySet()
public java.lang.String getBaseURL()
public boolean getDoZipResult()
public java.lang.String getSetSpec()
public java.lang.String getSetSpecHtml()
public java.lang.String getMetadataPrefix()
public java.lang.String getHarvestingInterval()
public java.lang.String getIntervalGranularity()
public java.lang.String getIntervalGranularityLabel()
public java.lang.String getEnabledDisabled()
public java.util.Date getLastHarvestTime()
public boolean getHarvestAll()
public java.lang.String getRunAtTimeDisplay()
public java.lang.String getRunAtTime()
public void setRunAtTime(java.lang.String runAtTime)
runAtTime
- The hour and minute in 24 hour time, for example 23:15public void setHarvestAll(boolean h)
h
- The new harvestAll valuepublic void setAllowDupDir(java.lang.String v)
v
- The new allowDupDir valuepublic void setNumHarvestedLast(int n)
n
- The new numHarvestedLast valuepublic void setUid(java.lang.Long val)
val
- The new uid valuepublic void setDefaultDir(boolean def)
def
- The new defaultDir valuepublic void setBackupOne(java.lang.String bOne)
bOne
- The new backupOne valuepublic void setZipLatest(java.lang.String z)
z
- The new zipLatest valuepublic void setBackupTwo(java.lang.String bTwo)
bTwo
- The new backupTwo valuepublic void setBackupThree(java.lang.String bThree)
bThree
- The new backupThree valuepublic void setIsZipPresent(boolean isZip)
isZip
- The new isZipPresent valuepublic void setWarnR(boolean w)
w
- The new warnR valuepublic void setHarvestDir(java.io.File hd)
hd
- The new harvestDir valuepublic void setSplitBySet(boolean spl)
spl
- The new splitBySet valuepublic void setRepositoryName(java.lang.String val)
val
- The new repositoryName valuepublic void setBaseURL(java.lang.String val)
val
- The new baseURL valuepublic void setSetSpec(java.lang.String val)
val
- The new setSpec valuepublic void setMetadataPrefix(java.lang.String val)
val
- The new metadataPrefix valuepublic void setHarvestingInterval(java.lang.String val)
val
- The new harvestingInterval valuepublic void setIntervalGranularity(java.lang.String val)
val
- The new intervalGranularity valuepublic void setEnabledDisabled(java.lang.String val)
val
- The new enabledDisabled valuepublic void setLastHarvestTime(java.util.Date val)
val
- The new lastHarvestTime valuepublic java.lang.String toString()
equals(Object)
method.toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The ScheduledHarvest to compare to thispublic int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- The object to compare to.public static java.lang.String getDateStamp()
public static void setDebug(boolean db)
db
- The new debug value