public class Jobs extends BaseTable
Field | Type | Description |
---|---|---|
id | BIGINT | Primary Key |
description | VARCHAR(255) | |
status | CHAR(1) | operational field |
lasttime | BIGINT | operational field |
starttime | BIGINT | operational field |
lastchecktime | BIGINT | operational field |
seedingversion | LONGTEXT | operational field |
endtime | BIGINT | operational field |
docspec | LONGTEXT | |
connectionname | VARCHAR(32) | Reference:repoconnections.connectionname |
type | CHAR(1) | |
intervaltime | BIGINT | |
maxintervaltime | BIGINT | |
expirationtime | BIGINT | |
windowend | BIGINT | |
priority | BIGINT | |
startmethod | CHAR(1) | |
errortext | LONGTEXT | |
reseedinterval | BIGINT | |
reseedtime | BIGINT | |
hopcountmode | CHAR(1) | |
processid | VARCHAR(16) | |
failtime | BIGINT | |
failcount | BIGINT | |
assessmentstate | CHAR(1) |
Modifier and Type | Class and Description |
---|---|
protected static class |
Jobs.JobObjectDescription
Job object description class.
|
protected static class |
Jobs.JobObjectExecutor
This is the executor object for locating job objects.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
static int |
ASSESSMENT_KNOWN |
static int |
ASSESSMENT_UNKNOWN |
protected static java.util.Map<java.lang.String,java.lang.Integer> |
assessmentMap |
static java.lang.String |
assessmentStateField
Set to N when the job needs connector-installed assessment
|
protected ICacheManager |
cacheManager |
protected IRepositoryConnectionManager |
connectionMgr |
static java.lang.String |
connectionNameField |
static java.lang.String |
descriptionField |
static java.lang.String |
documentSpecField |
static java.lang.String |
endTimeField
If inactive, the end time of the LAST session, if any.
|
static java.lang.String |
errorField
If non-null, this is the last error that occurred (which aborted the last task, either running the job or doing the
delete cleanup).
|
static java.lang.String |
expirationField
This is the expiration time of documents for a given job (in ms.)
|
static java.lang.String |
failCountField
When non-null, indicates the number of retries remaining, after which the attempt will be considered to have actually failed
|
static java.lang.String |
failTimeField
When non-null, indicates the time that, when a ServiceInterruption occurs, the attempt will be considered to have actually failed
|
protected int |
FETCH_MAX |
static int |
HOPCOUNT_ACCURATE |
static int |
HOPCOUNT_NEVERDELETE |
static int |
HOPCOUNT_NODELETE |
static java.lang.String |
hopcountModeField
For a job whose connector supports hopcounts, this describes how those hopcounts are handled.
|
protected HopFilterManager |
hopFilterManager |
protected static java.util.Map<java.lang.String,java.lang.Integer> |
hopmodeMap |
static java.lang.String |
idField |
static java.lang.String |
intervalField
This is the minimum reschedule interval for a document being crawled adaptively (in ms.)
|
protected static java.lang.String |
jobsLock |
static java.lang.String |
lastTimeField
The last time this job was assessed, in ms.
|
protected ILockManager |
lockManager |
static java.lang.String |
maxIntervalField
This is the maximum reschedule interval for a document being crawled adaptively (in ms.)
|
protected NotificationManager |
notificationManager |
protected IOutputConnectionManager |
outputMgr |
protected PipelineManager |
pipelineManager |
static java.lang.String |
priorityField
This is the job's priority vs.
|
static java.lang.String |
processIDField
Process id field, for keeping track of which process owns transient state
|
static java.lang.String |
reseedIntervalField
If this is an adaptive job, what should the reseed interval be (in milliseconds)
|
static java.lang.String |
reseedTimeField
For an adaptive job, this is the next time to reseed the job.
|
protected ScheduleManager |
scheduleManager |
static java.lang.String |
seedingVersionField
This text data represents the seeding version string, which for many connectors is simply the last time seeding was done
|
static int |
START_DISABLE |
static int |
START_WINDOWBEGIN |
static int |
START_WINDOWINSIDE |
protected static java.util.Map<java.lang.String,java.lang.Integer> |
startMap |
static java.lang.String |
startMethodField
How/when to start the job
|
static java.lang.String |
startTimeField
If active, paused, activewait, or pausedwait, the start time of the current session, else null.
|
static int |
STATUS_ABORTING |
static int |
STATUS_ABORTINGFORRESTART |
static int |
STATUS_ABORTINGFORRESTARTMINIMAL |
static int |
STATUS_ABORTINGFORRESTARTSEEDING |
static int |
STATUS_ABORTINGFORRESTARTSEEDINGMINIMAL |
static int |
STATUS_ABORTINGSHUTTINGDOWN |
static int |
STATUS_ABORTINGSTARTINGUPFORRESTART |
static int |
STATUS_ABORTINGSTARTINGUPFORRESTARTMINIMAL |
static int |
STATUS_ACTIVE |
static int |
STATUS_ACTIVE_NEITHER |
static int |
STATUS_ACTIVE_NOOUTPUT |
static int |
STATUS_ACTIVE_UNINSTALLED |
static int |
STATUS_ACTIVESEEDING |
static int |
STATUS_ACTIVESEEDING_NEITHER |
static int |
STATUS_ACTIVESEEDING_NOOUTPUT |
static int |
STATUS_ACTIVESEEDING_UNINSTALLED |
static int |
STATUS_ACTIVEWAIT |
static int |
STATUS_ACTIVEWAITING |
static int |
STATUS_ACTIVEWAITINGSEEDING |
static int |
STATUS_ACTIVEWAITSEEDING |
static int |
STATUS_DELETESTARTINGUP |
static int |
STATUS_DELETING |
static int |
STATUS_DELETING_NOOUTPUT |
static int |
STATUS_INACTIVE |
static int |
STATUS_NOTIFYINGOFCOMPLETION |
static int |
STATUS_NOTIFYINGOFDELETION |
static int |
STATUS_PAUSED |
static int |
STATUS_PAUSEDSEEDING |
static int |
STATUS_PAUSEDWAIT |
static int |
STATUS_PAUSEDWAITSEEDING |
static int |
STATUS_PAUSING |
static int |
STATUS_PAUSINGSEEDING |
static int |
STATUS_PAUSINGWAITING |
static int |
STATUS_PAUSINGWAITINGSEEDING |
static int |
STATUS_READYFORDELETE |
static int |
STATUS_READYFORDELETENOTIFY |
static int |
STATUS_READYFORNOTIFY |
static int |
STATUS_READYFORSTARTUP |
static int |
STATUS_READYFORSTARTUPMINIMAL |
static int |
STATUS_RESUMING |
static int |
STATUS_RESUMINGSEEDING |
static int |
STATUS_SHUTTINGDOWN |
static int |
STATUS_STARTINGUP |
static int |
STATUS_STARTINGUPMINIMAL |
static java.lang.String |
statusField
Status of this job.
|
protected static java.util.Map<java.lang.String,java.lang.Integer> |
statusMap |
protected IThreadContext |
threadContext |
protected ITransformationConnectionManager |
transMgr |
static int |
TYPE_CONTINUOUS |
static int |
TYPE_SPECIFIED |
static java.lang.String |
typeField |
protected static java.util.Map<java.lang.String,java.lang.Integer> |
typeMap |
static java.lang.String |
windowEndField
If non-null, this is the time that the current execution window closes, in ms since epoch.
|
dbInterface, tableName
Constructor and Description |
---|
Jobs(IThreadContext threadContext,
IDBInterface database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
abortJob(java.lang.Long jobID,
java.lang.String errorText)
Abort a job.
|
void |
abortRestartJob(java.lang.Long jobID,
boolean requestMinimum)
Restart a job.
|
boolean |
activeJobsPresent()
Return true if there is a job in either the ACTIVE or the ACTIVESEEDING state.
|
void |
analyzeTables()
Analyze job tables that need analysis.
|
void |
assessMarkedJobs()
Assess all marked jobs to determine if they can be reactivated.
|
static java.lang.String |
assessmentStateToString(int value)
Go from assessment state to string.
|
boolean |
checkIfNotificationReference(java.lang.String connectionName)
See if there's a reference to a notification connection name.
|
boolean |
checkIfOutputReference(java.lang.String connectionName)
See if there's a reference to an output connection name.
|
boolean |
checkIfReference(java.lang.String connectionName)
See if there's a reference to a connection name.
|
boolean |
checkIfTransformationReference(java.lang.String connectionName)
See if there's a reference to a transformation connection name.
|
boolean |
checkJobActive(java.lang.Long jobID)
Check whether a job's status indicates that it is in ACTIVE or ACTIVESEEDING state.
|
protected boolean |
checkOutputsInstalled(java.lang.String[] outputNames) |
protected boolean |
checkTransformationsInstalled(java.lang.String[] transformationNames) |
boolean |
cleaningJobsPresent()
Return true if there is a job in the
SHUTTINGDOWN state.
|
void |
clearSeedingState(java.lang.Long jobID)
Clear seeding state for a job.
|
IJobDescription |
create()
Create a job.
|
void |
deinstall()
Uninstall.
|
void |
delete(java.lang.Long id)
Delete a job.
|
boolean |
deletingJobsPresent()
Return true if there is a job in the DELETING state.
|
static java.lang.String |
enumeratedValueToString(EnumeratedValues values)
Go from enumerated value to string.
|
IJobDescription[] |
findJobsForConnection(java.lang.String connectionName)
Get the job IDs associated with a given connection name.
|
java.lang.Long[] |
findJobsMatchingNotifications(java.util.List<java.lang.String> notificationConnectionNames)
Find a list of jobs matching specified notification names.
|
java.lang.Long[] |
findJobsMatchingOutputs(java.util.List<java.lang.String> outputConnectionNames)
Find a list of jobs matching specified output names.
|
java.lang.Long[] |
findJobsMatchingTransformations(java.util.List<java.lang.String> transformationConnectionNames)
Find a list of jobs matching specified transformation names.
|
void |
finishJob(java.lang.Long jobID,
long finishTime)
Finish a job.
|
void |
finishJobCleanup(java.lang.Long jobID)
Finish job cleanup.
|
void |
finishResumeJob(java.lang.Long jobID,
long currentTime)
Resume a stopped job (from a pause or activewait).
|
void |
finishStopJob(java.lang.Long jobID,
long currentTime)
Stop a job suddenly (abort, pause, activewait).
|
java.lang.String[] |
getActiveConnectionNames()
Get unique connection names for all active jobs.
|
IResultSet |
getActiveJobConnections()
Get a list of active job identifiers and their associated connection names.
|
IJobDescription[] |
getAll()
Get a list of all jobs which are not in the process of being deleted already.
|
int |
getAnalyzeTime()
Come up with a maximum time (in minutes) for re-analyzing tables.
|
protected static java.lang.String |
getJobIDKey(java.lang.Long jobID) |
protected void |
getJobsChunk(java.util.Map<java.lang.Long,JobDescription> returnValues,
java.lang.String idList,
java.util.ArrayList params)
Read a chunk of repository connections.
|
protected static java.lang.String |
getJobsKey() |
protected JobDescription[] |
getJobsMultiple(java.lang.Long[] ids)
Get multiple jobs (without caching)
|
protected static java.lang.String |
getJobStatusKey() |
boolean |
hasPriorityJobs(int priority)
Are there any jobs that have a specified priority level
|
static java.lang.String |
hopcountModeToString(int value)
Go from hopcount mode to string.
|
void |
install(java.lang.String transTableName,
java.lang.String transNameField,
java.lang.String outputTableName,
java.lang.String outputNameField,
java.lang.String connectionTableName,
java.lang.String connectionNameField,
java.lang.String notificationConnectionTableName,
java.lang.String notificationConnectionNameField)
Install or upgrade this table.
|
void |
invalidateCurrentUnregisteredState(java.lang.Long jobID,
int oldStatusValue)
Invalidate current state with respect to installed connectors, as a result of registration.
|
IJobDescription |
load(java.lang.Long id,
boolean readOnly)
Load a job for editing.
|
IJobDescription[] |
loadMultiple(java.lang.Long[] ids,
boolean[] readOnlies)
Load multiple jobs for editing.
|
protected int |
loadMultipleInternal(IJobDescription[] rval,
int outputIndex,
java.lang.Long[] ids,
boolean[] readOnlies,
int inputIndex,
int length) |
void |
noteConnectionChange(java.lang.String connectionName)
Note a change in connection configuration.
|
void |
noteConnectorDeregistration(java.lang.Long jobID,
int oldStatusValue)
Signal to a job that its underlying connector has gone away.
|
void |
noteConnectorRegistration(java.lang.Long jobID,
int oldStatusValue)
Signal to a job that its underlying connector has returned.
|
void |
noteJobDeleteStarted(java.lang.Long jobID,
long startTime)
Put job into "deleting" state, and set the start time field.
|
void |
noteJobSeeded(java.lang.Long jobID,
java.lang.String seedVersionString)
Note job seeded.
|
void |
noteJobStarted(java.lang.Long jobID,
long startTime,
java.lang.String seedVersionString)
Make job active, and set the start time field.
|
void |
noteNotificationConnectionChange(java.lang.String connectionName)
Note a change in notification connection configuration.
|
void |
noteNotificationConnectorDeregistration(java.lang.Long jobID,
int oldStatusValue)
Signal to a job that its underlying notification connector has gone away.
|
void |
noteNotificationConnectorRegistration(java.lang.Long jobID,
int oldStatusValue)
Signal to a job that its underlying notification connector has returned.
|
void |
noteOutputConnectionChange(java.lang.String connectionName)
Note a change in output connection configuration.
|
void |
noteOutputConnectorDeregistration(java.lang.Long jobID,
int oldStatusValue)
Signal to a job that its underlying output connector has gone away.
|
void |
noteOutputConnectorRegistration(java.lang.Long jobID,
int oldStatusValue)
Signal to a job that its underlying output connector has returned.
|
void |
noteTransformationConnectionChange(java.lang.String connectionName)
Note a change in transformation connection configuration.
|
void |
noteTransformationConnectorDeregistration(java.lang.Long jobID,
int oldStatusValue)
Signal to a job that an underlying transformation connector has gone away.
|
void |
noteTransformationConnectorRegistration(java.lang.Long jobID,
int oldStatusValue)
Signal to a job that an underlying transformation connector has been registered.
|
void |
notificationComplete(java.lang.Long jobID)
Mark job as having properly notified the output connector of completion.
|
void |
pauseJob(java.lang.Long jobID)
Pause a job.
|
ScheduleRecord[][] |
readScheduleRecords(java.lang.Long[] jobIDs)
Read schedule records for a specified set of jobs.
|
void |
resetDeleteStartupWorkerStatus(java.lang.String processID)
Reset delete startup worker thread status.
|
void |
resetNotificationWorkerStatus(java.lang.String processID)
Reset notification worker thread status.
|
void |
resetSeedingWorkerStatus(java.lang.String processID)
Reset as part of restoring seeding worker threads.
|
void |
resetStartupWorkerStatus(java.lang.String processID)
Reset startup worker thread status.
|
void |
restart()
Clean up after all process IDs.
|
void |
restart(java.lang.String processID)
This method is called on a restart.
|
void |
restartCluster() |
void |
restartJob(java.lang.Long jobID)
Restart a job.
|
void |
retryDeleteNotification(java.lang.Long jobID,
long failTime,
int failCount)
Retry delete notification.
|
void |
retryNotification(java.lang.Long jobID,
long failTime,
int failCount)
Retry notification.
|
void |
retrySeeding(java.lang.Long jobID,
long failTime,
int failCount)
Retry seeding.
|
void |
retryStartup(java.lang.Long jobID,
boolean requestMinimum,
long failTime,
int failCount)
Retry startup.
|
void |
returnJobToActive(java.lang.Long jobID)
Put job back into active state, from the shutting-down state.
|
void |
save(IJobDescription jobDescription)
Save a job description.
|
void |
startJob(java.lang.Long jobID,
java.lang.Long windowEnd,
boolean requestMinimum)
Write job status and window end, and clear the endtime field.
|
static java.lang.String |
startMethodToString(int startMethod)
Get from start method to string.
|
static java.lang.String |
statusToString(int status)
Go from status to string.
|
static int |
stringToAssessmentState(java.lang.String value)
Go from string to assessment state.
|
static EnumeratedValues |
stringToEnumeratedValue(java.lang.String value)
Go from string to enumerated value.
|
static int |
stringToHopcountMode(java.lang.String value)
Go from string to hopcount mode.
|
static int |
stringToStartMethod(java.lang.String value)
Go from string to start method.
|
static int |
stringToStatus(java.lang.String value)
Go from string to status.
|
static int |
stringToType(java.lang.String value)
Go from string to type.
|
static java.lang.String |
typeToString(int type)
Go from type to string.
|
void |
unwaitJob(java.lang.Long jobID,
int newStatus,
java.lang.Long windowEnd)
Cause job that is in "wait" state to become un-waited.
|
void |
updateLastTime(java.lang.Long jobID,
long currentTime)
Update a job's last-time field.
|
void |
waitJob(java.lang.Long jobID,
int newStatus)
Cause job that is in active or paused state to become waited.
|
void |
writePermanentStatus(java.lang.Long jobID,
int status)
Update a job's status.
|
void |
writePermanentStatus(java.lang.Long jobID,
int status,
boolean clearFailTime)
Update a job's status.
|
void |
writePermanentStatus(java.lang.Long jobID,
int status,
java.lang.Long reseedTime)
Update a job's status, and its reseed time.
|
void |
writePermanentStatus(java.lang.Long jobID,
int status,
java.lang.Long reseedTime,
boolean clearFailTime)
Update a job's status, and its reseed time.
|
protected void |
writeStatus(java.lang.Long jobID,
int status,
java.lang.Long reseedTime,
java.lang.String processID,
boolean clearFailTime)
Update a job's status, and its reseed time.
|
protected void |
writeStatus(java.lang.Long jobID,
int status,
java.lang.String processID,
boolean clearFailTime)
Update a job's status.
|
void |
writeTransientStatus(java.lang.Long jobID,
int status,
java.lang.Long reseedTime,
java.lang.String processID)
Update a job's status, and its reseed time.
|
void |
writeTransientStatus(java.lang.Long jobID,
int status,
java.lang.String processID)
Update a job's status.
|
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepFor
public static final java.lang.String _rcsid
public static final int STATUS_INACTIVE
public static final int STATUS_ACTIVE
public static final int STATUS_ACTIVESEEDING
public static final int STATUS_ACTIVEWAITING
public static final int STATUS_ACTIVEWAITINGSEEDING
public static final int STATUS_ACTIVEWAIT
public static final int STATUS_ACTIVEWAITSEEDING
public static final int STATUS_PAUSING
public static final int STATUS_PAUSINGSEEDING
public static final int STATUS_PAUSINGWAITING
public static final int STATUS_PAUSINGWAITINGSEEDING
public static final int STATUS_PAUSED
public static final int STATUS_PAUSEDSEEDING
public static final int STATUS_PAUSEDWAIT
public static final int STATUS_PAUSEDWAITSEEDING
public static final int STATUS_SHUTTINGDOWN
public static final int STATUS_RESUMING
public static final int STATUS_RESUMINGSEEDING
public static final int STATUS_ABORTING
public static final int STATUS_STARTINGUP
public static final int STATUS_STARTINGUPMINIMAL
public static final int STATUS_READYFORSTARTUP
public static final int STATUS_READYFORSTARTUPMINIMAL
public static final int STATUS_READYFORDELETE
public static final int STATUS_ABORTINGFORRESTART
public static final int STATUS_ABORTINGFORRESTARTMINIMAL
public static final int STATUS_ABORTINGFORRESTARTSEEDING
public static final int STATUS_ABORTINGFORRESTARTSEEDINGMINIMAL
public static final int STATUS_ABORTINGSTARTINGUPFORRESTART
public static final int STATUS_ABORTINGSTARTINGUPFORRESTARTMINIMAL
public static final int STATUS_READYFORNOTIFY
public static final int STATUS_NOTIFYINGOFCOMPLETION
public static final int STATUS_DELETING
public static final int STATUS_DELETESTARTINGUP
public static final int STATUS_ABORTINGSHUTTINGDOWN
public static final int STATUS_READYFORDELETENOTIFY
public static final int STATUS_NOTIFYINGOFDELETION
public static final int STATUS_ACTIVE_UNINSTALLED
public static final int STATUS_ACTIVESEEDING_UNINSTALLED
public static final int STATUS_DELETING_NOOUTPUT
public static final int STATUS_ACTIVE_NOOUTPUT
public static final int STATUS_ACTIVESEEDING_NOOUTPUT
public static final int STATUS_ACTIVE_NEITHER
public static final int STATUS_ACTIVESEEDING_NEITHER
public static final int ASSESSMENT_KNOWN
public static final int ASSESSMENT_UNKNOWN
public static final int TYPE_CONTINUOUS
public static final int TYPE_SPECIFIED
public static final int START_WINDOWBEGIN
public static final int START_WINDOWINSIDE
public static final int START_DISABLE
public static final int HOPCOUNT_ACCURATE
public static final int HOPCOUNT_NODELETE
public static final int HOPCOUNT_NEVERDELETE
public static final java.lang.String idField
public static final java.lang.String descriptionField
public static final java.lang.String documentSpecField
public static final java.lang.String connectionNameField
public static final java.lang.String typeField
public static final java.lang.String intervalField
public static final java.lang.String maxIntervalField
public static final java.lang.String expirationField
public static final java.lang.String priorityField
public static final java.lang.String startMethodField
public static final java.lang.String reseedIntervalField
public static final java.lang.String statusField
public static final java.lang.String lastTimeField
public static final java.lang.String startTimeField
public static final java.lang.String seedingVersionField
public static final java.lang.String endTimeField
public static final java.lang.String windowEndField
public static final java.lang.String errorField
public static final java.lang.String reseedTimeField
public static final java.lang.String hopcountModeField
public static final java.lang.String processIDField
public static final java.lang.String failTimeField
public static final java.lang.String failCountField
public static final java.lang.String assessmentStateField
protected static java.util.Map<java.lang.String,java.lang.Integer> statusMap
protected static java.util.Map<java.lang.String,java.lang.Integer> typeMap
protected static java.util.Map<java.lang.String,java.lang.Integer> startMap
protected static java.util.Map<java.lang.String,java.lang.Integer> hopmodeMap
protected static java.util.Map<java.lang.String,java.lang.Integer> assessmentMap
protected final ICacheManager cacheManager
protected final ScheduleManager scheduleManager
protected final HopFilterManager hopFilterManager
protected final PipelineManager pipelineManager
protected final NotificationManager notificationManager
protected final IOutputConnectionManager outputMgr
protected final IRepositoryConnectionManager connectionMgr
protected final ITransformationConnectionManager transMgr
protected final ILockManager lockManager
protected final IThreadContext threadContext
protected static final java.lang.String jobsLock
protected final int FETCH_MAX
public Jobs(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
database
- is the database handle.ManifoldCFException
public void install(java.lang.String transTableName, java.lang.String transNameField, java.lang.String outputTableName, java.lang.String outputNameField, java.lang.String connectionTableName, java.lang.String connectionNameField, java.lang.String notificationConnectionTableName, java.lang.String notificationConnectionNameField) throws ManifoldCFException
ManifoldCFException
public void deinstall() throws ManifoldCFException
ManifoldCFException
public int getAnalyzeTime() throws ManifoldCFException
ManifoldCFException
public void analyzeTables() throws ManifoldCFException
ManifoldCFException
public java.lang.Long[] findJobsMatchingNotifications(java.util.List<java.lang.String> notificationConnectionNames) throws ManifoldCFException
ManifoldCFException
public java.lang.Long[] findJobsMatchingTransformations(java.util.List<java.lang.String> transformationConnectionNames) throws ManifoldCFException
ManifoldCFException
public java.lang.Long[] findJobsMatchingOutputs(java.util.List<java.lang.String> outputConnectionNames) throws ManifoldCFException
ManifoldCFException
public ScheduleRecord[][] readScheduleRecords(java.lang.Long[] jobIDs) throws ManifoldCFException
ManifoldCFException
public IJobDescription[] getAll() throws ManifoldCFException
ManifoldCFException
public IResultSet getActiveJobConnections() throws ManifoldCFException
ManifoldCFException
public java.lang.String[] getActiveConnectionNames() throws ManifoldCFException
ManifoldCFException
public boolean hasPriorityJobs(int priority) throws ManifoldCFException
ManifoldCFException
public IJobDescription create() throws ManifoldCFException
ManifoldCFException
public void delete(java.lang.Long id) throws ManifoldCFException
id
- is the job id.ManifoldCFException
public IJobDescription load(java.lang.Long id, boolean readOnly) throws ManifoldCFException
id
- is the job id.ManifoldCFException
public IJobDescription[] loadMultiple(java.lang.Long[] ids, boolean[] readOnlies) throws ManifoldCFException
ids
- is the set of id's to loadreadOnlies
- are boolean values, set to true if the job description to be read is to be designated "read only".ManifoldCFException
protected int loadMultipleInternal(IJobDescription[] rval, int outputIndex, java.lang.Long[] ids, boolean[] readOnlies, int inputIndex, int length) throws ManifoldCFException
ManifoldCFException
public void save(IJobDescription jobDescription) throws ManifoldCFException
jobDescription
- is the job description.ManifoldCFException
public void clearSeedingState(java.lang.Long jobID) throws ManifoldCFException
jobID
- is the job whose state should be cleared.ManifoldCFException
public void restart(java.lang.String processID) throws ManifoldCFException
processID
- is the process to be restarting.ManifoldCFException
public void restart() throws ManifoldCFException
ManifoldCFException
public void restartCluster() throws ManifoldCFException
ManifoldCFException
public void invalidateCurrentUnregisteredState(java.lang.Long jobID, int oldStatusValue) throws ManifoldCFException
ManifoldCFException
public void noteTransformationConnectorDeregistration(java.lang.Long jobID, int oldStatusValue) throws ManifoldCFException
jobID
- is the identifier of the job.oldStatusValue
- is the current status value for the job.ManifoldCFException
public void noteTransformationConnectorRegistration(java.lang.Long jobID, int oldStatusValue) throws ManifoldCFException
jobID
- is the identifier of the job.oldStatusValue
- is the current status value for the job.ManifoldCFException
public void noteOutputConnectorDeregistration(java.lang.Long jobID, int oldStatusValue) throws ManifoldCFException
jobID
- is the identifier of the job.oldStatusValue
- is the current status value for the job.ManifoldCFException
public void noteOutputConnectorRegistration(java.lang.Long jobID, int oldStatusValue) throws ManifoldCFException
jobID
- is the identifier of the job.oldStatusValue
- is the current status value for the job.ManifoldCFException
public void noteNotificationConnectorDeregistration(java.lang.Long jobID, int oldStatusValue) throws ManifoldCFException
jobID
- is the identifier of the job.oldStatusValue
- is the current status value for the job.ManifoldCFException
public void noteConnectorDeregistration(java.lang.Long jobID, int oldStatusValue) throws ManifoldCFException
jobID
- is the identifier of the job.oldStatusValue
- is the current status value for the job.ManifoldCFException
public void noteNotificationConnectorRegistration(java.lang.Long jobID, int oldStatusValue) throws ManifoldCFException
jobID
- is the identifier of the job.oldStatusValue
- is the current status value for the job.ManifoldCFException
public void noteConnectorRegistration(java.lang.Long jobID, int oldStatusValue) throws ManifoldCFException
jobID
- is the identifier of the job.oldStatusValue
- is the current status value for the job.ManifoldCFException
public void noteConnectionChange(java.lang.String connectionName) throws ManifoldCFException
ManifoldCFException
public void noteNotificationConnectionChange(java.lang.String connectionName) throws ManifoldCFException
ManifoldCFException
public void noteOutputConnectionChange(java.lang.String connectionName) throws ManifoldCFException
ManifoldCFException
public void noteTransformationConnectionChange(java.lang.String connectionName) throws ManifoldCFException
ManifoldCFException
public boolean checkJobActive(java.lang.Long jobID) throws ManifoldCFException
ManifoldCFException
public void resetDeleteStartupWorkerStatus(java.lang.String processID) throws ManifoldCFException
ManifoldCFException
public void resetNotificationWorkerStatus(java.lang.String processID) throws ManifoldCFException
ManifoldCFException
public void resetStartupWorkerStatus(java.lang.String processID) throws ManifoldCFException
ManifoldCFException
public void resetSeedingWorkerStatus(java.lang.String processID) throws ManifoldCFException
ManifoldCFException
public void retryStartup(java.lang.Long jobID, boolean requestMinimum, long failTime, int failCount) throws ManifoldCFException
jobID
- is the job identifier.requestMinimum
- is true for a minimal crawl.failTime
- is the fail time, -1 == nonefailCount
- is the fail count to use, -1 == none.ManifoldCFException
public void retrySeeding(java.lang.Long jobID, long failTime, int failCount) throws ManifoldCFException
jobID
- is the job identifier.failTime
- is the fail time, -1 == nonefailCount
- is the fail count to use, -1 == none.ManifoldCFException
public void retryNotification(java.lang.Long jobID, long failTime, int failCount) throws ManifoldCFException
jobID
- is the job identifier.failTime
- is the fail time, -1 == nonefailCount
- is the fail count to use, -1 == none.ManifoldCFException
public void retryDeleteNotification(java.lang.Long jobID, long failTime, int failCount) throws ManifoldCFException
jobID
- is the job identifier.failTime
- is the fail time, -1 == nonefailCount
- is the fail count to use, -1 == none.ManifoldCFException
public void startJob(java.lang.Long jobID, java.lang.Long windowEnd, boolean requestMinimum) throws ManifoldCFException
jobID
- is the job identifier.windowEnd
- is the window end time, if anyrequestMinimum
- is true if a minimal job run is requestedManifoldCFException
public void assessMarkedJobs() throws ManifoldCFException
ManifoldCFException
public void returnJobToActive(java.lang.Long jobID) throws ManifoldCFException
jobID
- is the job identifier.ManifoldCFException
protected boolean checkTransformationsInstalled(java.lang.String[] transformationNames) throws ManifoldCFException
ManifoldCFException
protected boolean checkOutputsInstalled(java.lang.String[] outputNames) throws ManifoldCFException
ManifoldCFException
public void noteJobDeleteStarted(java.lang.Long jobID, long startTime) throws ManifoldCFException
jobID
- is the job identifier.startTime
- is the current time in milliseconds from start of epoch.ManifoldCFException
public void noteJobStarted(java.lang.Long jobID, long startTime, java.lang.String seedVersionString) throws ManifoldCFException
jobID
- is the job identifier.startTime
- is the current time in milliseconds from start of epoch.seedVersionString
- is the version string to record for the seeding.ManifoldCFException
public void noteJobSeeded(java.lang.Long jobID, java.lang.String seedVersionString) throws ManifoldCFException
jobID
- is the job id.seedVersionString
- is the job seed version string.ManifoldCFException
public void unwaitJob(java.lang.Long jobID, int newStatus, java.lang.Long windowEnd) throws ManifoldCFException
jobID
- is the job identifier.newStatus
- is the new status (either STATUS_ACTIVE or STATUS_PAUSED or
STATUS_ACTIVESEEDING or STATUS_PAUSEDSEEDING)windowEnd
- is the window end time, if any.ManifoldCFException
public void waitJob(java.lang.Long jobID, int newStatus) throws ManifoldCFException
jobID
- is the job identifier.newStatus
- is the new status (either STATUS_ACTIVEWAIT or STATUS_PAUSEDWAIT or
STATUS_ACTIVEWAITSEEDING or STATUS_PAUSEDWAITSEEDING)ManifoldCFException
public boolean abortJob(java.lang.Long jobID, java.lang.String errorText) throws ManifoldCFException
jobID
- is the job id.errorText
- is the error, or null if none.ManifoldCFException
public void abortRestartJob(java.lang.Long jobID, boolean requestMinimum) throws ManifoldCFException
jobID
- is the job id.requestMinimum
- is true if the minimal job run is requested.ManifoldCFException
public void pauseJob(java.lang.Long jobID) throws ManifoldCFException
jobID
- is the job id.ManifoldCFException
public void restartJob(java.lang.Long jobID) throws ManifoldCFException
jobID
- is the job id.ManifoldCFException
public void writeTransientStatus(java.lang.Long jobID, int status, java.lang.Long reseedTime, java.lang.String processID) throws ManifoldCFException
jobID
- is the job id.status
- is the desired status.reseedTime
- is the reseed time.ManifoldCFException
public void writePermanentStatus(java.lang.Long jobID, int status, java.lang.Long reseedTime) throws ManifoldCFException
jobID
- is the job id.status
- is the desired status.reseedTime
- is the reseed time.ManifoldCFException
public void writePermanentStatus(java.lang.Long jobID, int status, java.lang.Long reseedTime, boolean clearFailTime) throws ManifoldCFException
jobID
- is the job id.status
- is the desired status.reseedTime
- is the reseed time.ManifoldCFException
protected void writeStatus(java.lang.Long jobID, int status, java.lang.Long reseedTime, java.lang.String processID, boolean clearFailTime) throws ManifoldCFException
jobID
- is the job id.status
- is the desired status.reseedTime
- is the reseed time.ManifoldCFException
public void writeTransientStatus(java.lang.Long jobID, int status, java.lang.String processID) throws ManifoldCFException
jobID
- is the job id.status
- is the desired status.ManifoldCFException
public void writePermanentStatus(java.lang.Long jobID, int status) throws ManifoldCFException
jobID
- is the job id.status
- is the desired status.ManifoldCFException
public void writePermanentStatus(java.lang.Long jobID, int status, boolean clearFailTime) throws ManifoldCFException
jobID
- is the job id.status
- is the desired status.ManifoldCFException
protected void writeStatus(java.lang.Long jobID, int status, java.lang.String processID, boolean clearFailTime) throws ManifoldCFException
jobID
- is the job id.status
- is the desired status.ManifoldCFException
public void updateLastTime(java.lang.Long jobID, long currentTime) throws ManifoldCFException
jobID
- is the job id.currentTime
- is the current time.ManifoldCFException
public void finishJob(java.lang.Long jobID, long finishTime) throws ManifoldCFException
jobID
- is the job id.finishTime
- is the finish time.ManifoldCFException
public void finishJobCleanup(java.lang.Long jobID) throws ManifoldCFException
jobID
- is the job id.ManifoldCFException
public void finishResumeJob(java.lang.Long jobID, long currentTime) throws ManifoldCFException
ManifoldCFException
public void finishStopJob(java.lang.Long jobID, long currentTime) throws ManifoldCFException
ManifoldCFException
public void notificationComplete(java.lang.Long jobID) throws ManifoldCFException
jobID
- is the job id.ManifoldCFException
public boolean checkIfReference(java.lang.String connectionName) throws ManifoldCFException
connectionName
- is the name of the connection.ManifoldCFException
public boolean checkIfNotificationReference(java.lang.String connectionName) throws ManifoldCFException
connectionName
- is the name of the connection.ManifoldCFException
public boolean checkIfOutputReference(java.lang.String connectionName) throws ManifoldCFException
connectionName
- is the name of the connection.ManifoldCFException
public boolean checkIfTransformationReference(java.lang.String connectionName) throws ManifoldCFException
connectionName
- is the name of the connection.ManifoldCFException
public IJobDescription[] findJobsForConnection(java.lang.String connectionName) throws ManifoldCFException
connectionName
- is the name of the connection.ManifoldCFException
public boolean deletingJobsPresent() throws ManifoldCFException
ManifoldCFException
public boolean cleaningJobsPresent() throws ManifoldCFException
ManifoldCFException
public boolean activeJobsPresent() throws ManifoldCFException
ManifoldCFException
public static int stringToStatus(java.lang.String value) throws ManifoldCFException
value
- is the string.ManifoldCFException
public static java.lang.String statusToString(int status) throws ManifoldCFException
status
- is the status.ManifoldCFException
public static int stringToType(java.lang.String value) throws ManifoldCFException
value
- is the string.ManifoldCFException
public static java.lang.String typeToString(int type) throws ManifoldCFException
type
- is the type.ManifoldCFException
public static int stringToAssessmentState(java.lang.String value) throws ManifoldCFException
ManifoldCFException
public static java.lang.String assessmentStateToString(int value) throws ManifoldCFException
ManifoldCFException
public static int stringToHopcountMode(java.lang.String value) throws ManifoldCFException
ManifoldCFException
public static java.lang.String hopcountModeToString(int value) throws ManifoldCFException
ManifoldCFException
public static int stringToStartMethod(java.lang.String value) throws ManifoldCFException
value
- is the string.ManifoldCFException
public static java.lang.String startMethodToString(int startMethod) throws ManifoldCFException
startMethod
- is the start method.ManifoldCFException
public static EnumeratedValues stringToEnumeratedValue(java.lang.String value) throws ManifoldCFException
value
- is the input.ManifoldCFException
public static java.lang.String enumeratedValueToString(EnumeratedValues values)
values
- is the enumerated value.protected static java.lang.String getJobsKey()
protected static java.lang.String getJobIDKey(java.lang.Long jobID)
protected static java.lang.String getJobStatusKey()
protected JobDescription[] getJobsMultiple(java.lang.Long[] ids) throws ManifoldCFException
ids
- is the set of ids to get jobs for.ManifoldCFException
protected void getJobsChunk(java.util.Map<java.lang.Long,JobDescription> returnValues, java.lang.String idList, java.util.ArrayList params) throws ManifoldCFException
returnValues
- is keyed by id and contains a JobDescription value.idList
- is the list of id's.params
- is the set of parameters.ManifoldCFException