public class JobDescription extends java.lang.Object implements IJobDescription
Modifier and Type | Class and Description |
---|---|
protected static class |
JobDescription.Notification |
protected static class |
JobDescription.PipelineStage |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
protected java.lang.String |
connectionName |
protected java.lang.String |
description |
protected Specification |
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.Long |
maxInterval |
protected java.util.List<JobDescription.Notification> |
notifications |
protected java.util.List<JobDescription.PipelineStage> |
pipelineStages |
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 |
HOPCOUNT_ACCURATE, HOPCOUNT_NEVERDELETE, HOPCOUNT_NODELETE, START_DISABLE, START_WINDOWBEGIN, START_WINDOWINSIDE, TYPE_CONTINUOUS, TYPE_SPECIFIED
Constructor and Description |
---|
JobDescription() |
Modifier and Type | Method and Description |
---|---|
void |
addHopCountFilter(java.lang.String linkType,
java.lang.Long maxHops)
Add a hopcount filter to the job.
|
Specification |
addNotification(java.lang.String notificationConnectionName,
java.lang.String notificationDescription)
Add a notification.
|
Specification |
addPipelineStage(int prerequisiteStage,
boolean isOutput,
java.lang.String pipelineStageConnectionName,
java.lang.String pipelineStageDescription)
Add a pipeline connection.
|
void |
addScheduleRecord(ScheduleRecord record)
Add a record.
|
void |
clearHopCountFilters()
Clear the set of hopcount filters for the job.
|
void |
clearNotifications()
Clear notification connections.
|
void |
clearPipeline()
Clear pipeline connections
|
void |
clearScheduleRecords()
Clear all the scheduling records.
|
int |
countNotifications()
Get a count of pipeline connections.
|
int |
countPipelineStages()
Get a count of pipeline stages
|
void |
deleteNotification(int index)
Delete a notification.
|
void |
deletePipelineStage(int index)
Delete a pipeline stage.
|
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.Long |
getMaxInterval()
Get the maximum rescheduling interval, in milliseconds.
|
java.lang.String |
getNotificationConnectionName(int index)
Get a specific notification connection name.
|
java.lang.String |
getNotificationDescription(int index)
Get a specific notification description.
|
Specification |
getNotificationSpecification(int index)
Get a specific notification specification.
|
java.lang.String |
getPipelineStageConnectionName(int index)
Get a specific pipeline connection name.
|
java.lang.String |
getPipelineStageDescription(int index)
Get a specific pipeline stage description.
|
boolean |
getPipelineStageIsOutputConnection(int index)
Check if a pipeline stage is an output connection.
|
int |
getPipelineStagePrerequisite(int index)
Get the prerequisite stage number for a pipeline stage.
|
Specification |
getPipelineStageSpecification(int index)
Get a specific pipeline stage 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.
|
Specification |
getSpecification()
Get the document specification.
|
int |
getStartMethod()
Get the job's start method.
|
int |
getType()
Get the job type.
|
Specification |
insertNotification(int index,
java.lang.String notificationConnectionName,
java.lang.String notificationDescription)
Insert a new notification.
|
Specification |
insertPipelineStage(int index,
boolean isOutput,
java.lang.String pipelineStageConnectionName,
java.lang.String pipelineStageDescription)
Insert a new pipeline stage.
|
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 |
setMaxInterval(java.lang.Long interval)
Set the maximum rescheduling interval, in milliseconds, or null if forever.
|
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.
|
public static final java.lang.String _rcsid
protected boolean isNew
protected java.lang.Long id
protected java.lang.String description
protected java.lang.String connectionName
protected final java.util.List<JobDescription.PipelineStage> pipelineStages
protected final java.util.List<JobDescription.Notification> notifications
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 maxInterval
protected java.lang.Long expiration
protected java.lang.Long reseedInterval
protected Specification documentSpecification
protected java.util.HashMap hopCountFilters
protected int hopcountMode
protected boolean readOnly
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 IJobDescription
public void setID(java.lang.Long id)
id
- is the id.public java.lang.Long getID()
getID
in interface IJobDescription
public void setDescription(java.lang.String description)
setDescription
in interface IJobDescription
description
- is the description.public java.lang.String getDescription()
getDescription
in interface IJobDescription
public void setConnectionName(java.lang.String connectionName)
setConnectionName
in interface IJobDescription
connectionName
- is the connection name.public java.lang.String getConnectionName()
getConnectionName
in interface IJobDescription
public void clearPipeline()
clearPipeline
in interface IJobDescription
public Specification addPipelineStage(int prerequisiteStage, boolean isOutput, java.lang.String pipelineStageConnectionName, java.lang.String pipelineStageDescription)
addPipelineStage
in interface IJobDescription
prerequisiteStage
- is the prerequisite stage number for this connection, or -1 if there is none.isOutput
- is true if the pipeline stage is an output connection.pipelineStageConnectionName
- is the name of the pipeline connection to add.pipelineStageDescription
- is a description of the pipeline stage being added.public int countPipelineStages()
countPipelineStages
in interface IJobDescription
public Specification insertPipelineStage(int index, boolean isOutput, java.lang.String pipelineStageConnectionName, java.lang.String pipelineStageDescription)
insertPipelineStage
in interface IJobDescription
index
- is the index to insert pipeline stage beforepipelineStageConnectionName
- is the connection name.pipelineStageDescription
- is the description.public int getPipelineStagePrerequisite(int index)
getPipelineStagePrerequisite
in interface IJobDescription
index
- is the index of the pipeline stage to get.public boolean getPipelineStageIsOutputConnection(int index)
getPipelineStageIsOutputConnection
in interface IJobDescription
index
- is the index of the pipeline stage to check.public java.lang.String getPipelineStageConnectionName(int index)
getPipelineStageConnectionName
in interface IJobDescription
index
- is the index of the pipeline stage whose connection name to get.public java.lang.String getPipelineStageDescription(int index)
getPipelineStageDescription
in interface IJobDescription
index
- is the index of the pipeline stage whose description to get.public Specification getPipelineStageSpecification(int index)
getPipelineStageSpecification
in interface IJobDescription
index
- is the index of the pipeline stage whose specification is needed.public void deletePipelineStage(int index)
deletePipelineStage
in interface IJobDescription
index
- is the index of the pipeline stage to delete.public void clearNotifications()
clearNotifications
in interface IJobDescription
public Specification addNotification(java.lang.String notificationConnectionName, java.lang.String notificationDescription)
addNotification
in interface IJobDescription
notificationConnectionName
- is the name of the notification connection to add.notificationDescription
- is a description of the notification being added.public int countNotifications()
countNotifications
in interface IJobDescription
public java.lang.String getNotificationConnectionName(int index)
getNotificationConnectionName
in interface IJobDescription
index
- is the index of the notification whose connection name to get.public java.lang.String getNotificationDescription(int index)
getNotificationDescription
in interface IJobDescription
index
- is the index of the notification whose description to get.public Specification getNotificationSpecification(int index)
getNotificationSpecification
in interface IJobDescription
index
- is the index of the notification whose specification is needed.public void deleteNotification(int index)
deleteNotification
in interface IJobDescription
index
- is the index of the notification to delete.public Specification insertNotification(int index, java.lang.String notificationConnectionName, java.lang.String notificationDescription)
insertNotification
in interface IJobDescription
index
- is the index to insert pipeline stage beforenotificationConnectionName
- is the connection name.notificationDescription
- is the description.public void setType(int type)
setType
in interface IJobDescription
type
- is the type (as an integer).public int getType()
getType
in interface IJobDescription
public void setStartMethod(int startMethod)
setStartMethod
in interface IJobDescription
startMethod
- is the start description.public int getStartMethod()
getStartMethod
in interface IJobDescription
public void clearScheduleRecords()
clearScheduleRecords
in interface IJobDescription
public void addScheduleRecord(ScheduleRecord record)
addScheduleRecord
in interface IJobDescription
record
- is the record to add.public int getScheduleRecordCount()
getScheduleRecordCount
in interface IJobDescription
public ScheduleRecord getScheduleRecord(int index)
getScheduleRecord
in interface IJobDescription
index
- is the record number.public void deleteScheduleRecord(int index)
deleteScheduleRecord
in interface IJobDescription
index
- is the record number.public void setInterval(java.lang.Long interval)
setInterval
in interface IJobDescription
interval
- is the default interval, or null for infinite.public java.lang.Long getInterval()
getInterval
in interface IJobDescription
public void setMaxInterval(java.lang.Long interval)
setMaxInterval
in interface IJobDescription
interval
- is the maximum interval.public java.lang.Long getMaxInterval()
getMaxInterval
in interface IJobDescription
public void setExpiration(java.lang.Long time)
setExpiration
in interface IJobDescription
time
- is the maximum expiration time of a document, in milliseconds, or null if none.public java.lang.Long getExpiration()
getExpiration
in interface IJobDescription
public void setReseedInterval(java.lang.Long interval)
setReseedInterval
in interface IJobDescription
interval
- is the interval, or null for infinite.public java.lang.Long getReseedInterval()
getReseedInterval
in interface IJobDescription
public Specification getSpecification()
getSpecification
in interface IJobDescription
public void setPriority(int priority)
setPriority
in interface IJobDescription
priority
- is the priority.public int getPriority()
getPriority
in interface IJobDescription
public java.util.Map getHopCountFilters()
getHopCountFilters
in interface IJobDescription
public void clearHopCountFilters()
clearHopCountFilters
in interface IJobDescription
public void addHopCountFilter(java.lang.String linkType, java.lang.Long maxHops)
addHopCountFilter
in interface IJobDescription
linkType
- 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 IJobDescription
public void setHopcountMode(int mode)
setHopcountMode
in interface IJobDescription