|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.jobs.JobDescription
public class JobDescription
This is a paper object describing a job. Each job in the lcf framework has: - an identifier; - a description; - a repository connection; - one of a number of scheduling options: starting every n hours/days/weeks/months, on specific dates, or "continuous" (which basically establishes a priority queue based on modification frequency); - "seeds" (or starting points), which are the places that scanning begins. Also remember that since incremental deletion must occur on a job-by-job basis, the scanning data also records the job that performed the scan, so that each job can rescan previous ingested data, and delete documents that have been removed.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected java.lang.String |
connectionName
|
protected java.lang.String |
description
|
protected DocumentSpecification |
documentSpecification
|
protected java.lang.Long |
expiration
|
protected java.util.HashMap |
hopCountFilters
|
protected int |
hopcountMode
|
protected java.lang.Long |
id
|
protected java.lang.Long |
interval
|
protected boolean |
isNew
|
protected java.lang.String |
outputConnectionName
|
protected OutputSpecification |
outputSpecification
|
protected int |
priority
|
protected java.lang.Float |
rate
|
protected boolean |
readOnly
|
protected java.lang.Long |
reseedInterval
|
protected ScheduleList |
scheduleList
|
protected int |
startMethod
|
protected int |
type
|
| Fields inherited from interface org.apache.manifoldcf.crawler.interfaces.IJobDescription |
|---|
HOPCOUNT_ACCURATE, HOPCOUNT_NEVERDELETE, HOPCOUNT_NODELETE, START_DISABLE, START_WINDOWBEGIN, START_WINDOWINSIDE, TYPE_CONTINUOUS, TYPE_SPECIFIED |
| Constructor Summary | |
|---|---|
JobDescription()
|
|
| Method Summary | |
|---|---|
void |
addHopCountFilter(java.lang.String linkType,
java.lang.Long maxHops)
Add a hopcount filter to the job. |
void |
addScheduleRecord(ScheduleRecord record)
Add a record. |
void |
clearHopCountFilters()
Clear the set of hopcount filters for the job. |
void |
clearScheduleRecords()
Clear all the scheduling records. |
void |
deleteScheduleRecord(int index)
Delete a specified schedule record. |
JobDescription |
duplicate(boolean readOnly)
Duplicate method, with optional "readonly" flag. |
java.lang.String |
getConnectionName()
Get the connection name. |
java.lang.String |
getDescription()
Get the description. |
java.lang.Long |
getExpiration()
Get the expiration time, in milliseconds. |
java.util.Map |
getHopCountFilters()
Get the set of hopcount filters the job has defined. |
int |
getHopcountMode()
Get the hopcount mode. |
java.lang.Long |
getID()
Get the id. |
java.lang.Long |
getInterval()
Get the rescheduling interval, in milliseconds. |
boolean |
getIsNew()
Get isnew. |
java.lang.String |
getOutputConnectionName()
Get the output connection name. |
OutputSpecification |
getOutputSpecification()
Get the output specification. |
int |
getPriority()
Get the job priority. |
java.lang.Long |
getReseedInterval()
Get the reseeding interval, in milliseconds. |
ScheduleRecord |
getScheduleRecord(int index)
Get a specified schedule record. |
int |
getScheduleRecordCount()
Get the number of schedule records. |
DocumentSpecification |
getSpecification()
Get the document specification. |
int |
getStartMethod()
Get the job's start method. |
int |
getType()
Get the job type. |
void |
makeReadOnly()
Make the description "read only". |
void |
setConnectionName(java.lang.String connectionName)
Set the connection name. |
void |
setDescription(java.lang.String description)
Set the description. |
void |
setExpiration(java.lang.Long time)
Set the expiration time, in milliseconds. |
void |
setHopcountMode(int mode)
Set the hopcount mode. |
void |
setID(java.lang.Long id)
Set the id. |
void |
setInterval(java.lang.Long interval)
Set the rescheduling interval, in milliseconds. |
void |
setIsNew(boolean isNew)
Set isnew. |
void |
setOutputConnectionName(java.lang.String connectionName)
Set the output connection name. |
void |
setPriority(int priority)
Set the job priority. |
void |
setReseedInterval(java.lang.Long interval)
Set the reseeding interval, in milliseconds. |
void |
setStartMethod(int startMethod)
Set the job's start method. |
void |
setType(int type)
Set the job type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected boolean isNew
protected java.lang.Long id
protected java.lang.String description
protected java.lang.String outputConnectionName
protected java.lang.String connectionName
protected int type
protected int startMethod
protected int priority
protected ScheduleList scheduleList
protected java.lang.Float rate
protected java.lang.Long interval
protected java.lang.Long expiration
protected java.lang.Long reseedInterval
protected OutputSpecification outputSpecification
protected DocumentSpecification documentSpecification
protected java.util.HashMap hopCountFilters
protected int hopcountMode
protected boolean readOnly
| Constructor Detail |
|---|
public JobDescription()
| Method Detail |
|---|
public JobDescription duplicate(boolean readOnly)
public void makeReadOnly()
public void setIsNew(boolean isNew)
isNew - is true if the object is new.public boolean getIsNew()
getIsNew in interface IJobDescriptionpublic void setID(java.lang.Long id)
id - is the id.public java.lang.Long getID()
getID in interface IJobDescriptionpublic void setDescription(java.lang.String description)
setDescription in interface IJobDescriptiondescription - is the description.public java.lang.String getDescription()
getDescription in interface IJobDescriptionpublic void setOutputConnectionName(java.lang.String connectionName)
setOutputConnectionName in interface IJobDescriptionconnectionName - is the connection name.public java.lang.String getOutputConnectionName()
getOutputConnectionName in interface IJobDescriptionpublic void setConnectionName(java.lang.String connectionName)
setConnectionName in interface IJobDescriptionconnectionName - is the connection name.public java.lang.String getConnectionName()
getConnectionName in interface IJobDescriptionpublic void setType(int type)
setType in interface IJobDescriptiontype - is the type (as an integer).public int getType()
getType in interface IJobDescriptionpublic void setStartMethod(int startMethod)
setStartMethod in interface IJobDescriptionstartMethod - is the start description.public int getStartMethod()
getStartMethod in interface IJobDescriptionpublic void clearScheduleRecords()
clearScheduleRecords in interface IJobDescriptionpublic void addScheduleRecord(ScheduleRecord record)
addScheduleRecord in interface IJobDescriptionrecord - is the record to add.public int getScheduleRecordCount()
getScheduleRecordCount in interface IJobDescriptionpublic ScheduleRecord getScheduleRecord(int index)
getScheduleRecord in interface IJobDescriptionindex - is the record number.
public void deleteScheduleRecord(int index)
deleteScheduleRecord in interface IJobDescriptionindex - is the record number.public void setInterval(java.lang.Long interval)
setInterval in interface IJobDescriptioninterval - is the default interval, or null for infinite.public java.lang.Long getInterval()
getInterval in interface IJobDescriptionpublic void setExpiration(java.lang.Long time)
setExpiration in interface IJobDescriptiontime - is the maximum expiration time of a document, in milliseconds, or null if none.public java.lang.Long getExpiration()
getExpiration in interface IJobDescriptionpublic void setReseedInterval(java.lang.Long interval)
setReseedInterval in interface IJobDescriptioninterval - is the interval, or null for infinite.public java.lang.Long getReseedInterval()
getReseedInterval in interface IJobDescriptionpublic OutputSpecification getOutputSpecification()
getOutputSpecification in interface IJobDescriptionpublic DocumentSpecification getSpecification()
getSpecification in interface IJobDescriptionpublic void setPriority(int priority)
setPriority in interface IJobDescriptionpriority - is the priority.public int getPriority()
getPriority in interface IJobDescriptionpublic java.util.Map getHopCountFilters()
getHopCountFilters in interface IJobDescriptionpublic void clearHopCountFilters()
clearHopCountFilters in interface IJobDescription
public void addHopCountFilter(java.lang.String linkType,
java.lang.Long maxHops)
addHopCountFilter in interface IJobDescriptionlinkType - is the type of link the filter applies to.maxHops - is the maximum hop count. Use null to remove a filter.public int getHopcountMode()
getHopcountMode in interface IJobDescriptionpublic void setHopcountMode(int mode)
setHopcountMode in interface IJobDescription
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||