|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.jobs.JobManager
public class JobManager
This is the main job manager. It provides methods that support both job definition, and the threads that execute the jobs.
| Nested Class Summary | |
|---|---|
protected static class |
JobManager.JobqueueRecord
Class for tracking existing jobqueue row data |
protected static class |
JobManager.MutableInteger
Mutable integer class. |
protected static class |
JobManager.QueueHashItem
This class contains information per job on how many queue items have so far been accumulated. |
protected static class |
JobManager.ThrottleJobItem
This class represents the information stored PER JOB in the throttling structure. |
protected static class |
JobManager.ThrottleLimit
This class provides the throttling limits for the job queueing query. |
protected static class |
JobManager.ThrottleLimitSpec
This is a class which describes an individual throttle limit, in fetches. |
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected Carrydown |
carryDown
|
protected IRepositoryConnectionManager |
connectionMgr
|
protected IDBInterface |
database
|
protected EventManager |
eventManager
|
protected HopCount |
hopCount
|
protected static java.lang.String |
hopLock
|
protected JobQueue |
jobQueue
|
protected Jobs |
jobs
|
protected ILockManager |
lockManager
|
protected IOutputConnectionManager |
outputMgr
|
protected static java.util.Random |
random
|
protected IThreadContext |
threadContext
|
| Fields inherited from interface org.apache.manifoldcf.crawler.interfaces.IJobManager |
|---|
ACTION_REMOVE, ACTION_RESCAN, DOCSTATE_NEVERPROCESSED, DOCSTATE_PREVIOUSLYPROCESSED, DOCSTATUS_DELETING, DOCSTATUS_EXPIRING, DOCSTATUS_INACTIVE, DOCSTATUS_PROCESSING, DOCSTATUS_READYFOREXPIRATION, DOCSTATUS_READYFORPROCESSING, DOCSTATUS_WAITINGFOREVER, DOCSTATUS_WAITINGFOREXPIRATION, DOCSTATUS_WAITINGFORPROCESSING |
| Constructor Summary | |
|---|---|
JobManager(IThreadContext threadContext,
IDBInterface database)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addBucketExtract(java.lang.StringBuffer sb,
java.util.ArrayList list,
java.lang.String columnPrefix,
java.lang.String columnName,
BucketDescription bucketDesc)
Turn a bucket description into a return column. |
protected boolean |
addCriteria(java.lang.StringBuffer sb,
java.util.ArrayList list,
java.lang.String fieldPrefix,
java.lang.String connectionName,
StatusFilterCriteria criteria,
boolean whereEmitted)
Add criteria clauses to query. |
boolean |
addDocument(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String docIDHash,
java.lang.String docID,
java.lang.String parentIdentifierHash,
java.lang.String relationshipType,
int hopcountMethod,
java.lang.String[] dataNames,
java.lang.Object[][] dataValues,
long currentTime,
double priority,
java.lang.String[] prereqEventNames)
Add a document to the queue. |
protected void |
addDocumentCriteria(java.lang.StringBuffer sb,
java.util.ArrayList list,
java.lang.Long currentTimeValue,
java.lang.Long currentPriorityValue)
|
boolean[] |
addDocuments(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] docIDHashes,
java.lang.String[] docIDs,
java.lang.String parentIdentifierHash,
java.lang.String relationshipType,
int hopcountMethod,
java.lang.String[][] dataNames,
java.lang.Object[][][] dataValues,
long currentTime,
double[] documentPriorities,
java.lang.String[][] prereqEventNames)
Add documents to the queue in bulk. |
boolean[] |
addDocumentsInitial(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] docIDHashes,
java.lang.String[] docIDs,
boolean overrideSchedule,
int hopcountMethod,
long currentTime,
double[] documentPriorities,
java.lang.String[][] prereqEventNames)
Add an initial set of documents to the queue. |
protected void |
addLimits(java.lang.StringBuffer sb,
int startRow,
int maxRowCount)
Add limit and offset. |
protected void |
addOrdering(java.lang.StringBuffer sb,
java.lang.String[] completeFieldList,
SortOrder sort)
Add ordering. |
void |
addRemainingDocumentsInitial(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] docIDHashes,
int hopcountMethod)
Add an initial set of remaining documents to the queue. |
boolean |
beginEventSequence(java.lang.String eventName)
Begin an event sequence. |
protected static java.util.HashMap |
buildReorderMap(java.lang.String[] originalIDHashes,
java.lang.String[] reorderedIDHashes)
Build a reorder map, describing how to convert an original index into a reordered index. |
protected DocumentDescription[] |
calculateAffectedDeleteCarrydownChildren(java.lang.Long jobID,
java.lang.String[] docIDHashes)
Helper method: Find the document descriptions that will be affected due to carrydown row deletions. |
protected DocumentDescription[] |
calculateAffectedRestoreCarrydownChildren(java.lang.Long jobID,
java.lang.String[] parentIDHashes)
Helper method: Calculate the unique set of affected carrydown children resulting from a "restoreRecords" operation. |
boolean |
carrydownChangeDocument(DocumentDescription documentDescription,
long currentTime,
double docPriority)
Requeue a document because of carrydown changes. |
boolean[] |
carrydownChangeDocumentMultiple(DocumentDescription[] documentDescriptions,
long currentTime,
double[] docPriorities)
Requeue a document set because of carrydown changes. |
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 |
checkJobActive(java.lang.Long jobID)
Verify that a specific job is indeed still active. |
boolean |
checkJobBusy(java.lang.Long jobID)
Verify if a job is still processing documents, or no longer has any outstanding active documents |
protected static java.lang.Long |
checkTimeMatch(long startTime,
long currentTimestamp,
EnumeratedValues daysOfWeek,
EnumeratedValues daysOfMonth,
EnumeratedValues months,
EnumeratedValues years,
EnumeratedValues hours,
EnumeratedValues minutes,
java.lang.String timezone,
java.lang.Long duration)
Check if the specified job parameters have a 'hit' within the specified interval. |
void |
completeEventSequence(java.lang.String eventName)
Complete an event sequence. |
IJobDescription |
createJob()
Create a new job. |
void |
deinstall()
Uninstall. |
void |
deleteIngestedDocumentIdentifiers(DocumentDescription[] identifiers)
Delete ingested document identifiers (as part of deleting the owning job). |
void |
deleteJob(java.lang.Long id)
Delete a job. |
void |
deleteJobsReadyForDelete()
Delete jobs in need of being deleted (which are marked "ready for delete"). |
void |
doneDocumentsInitial(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
boolean isPartial,
int hopcountMethod)
Signal that a seeding pass has been done. |
protected static java.lang.String[] |
eliminateDuplicates(java.lang.String[] docIDHashes)
Eliminate duplicates, and sort |
protected boolean |
emitClauseStart(java.lang.StringBuffer sb,
boolean whereEmitted)
Emit a WHERE or an AND, depending... |
boolean |
errorAbort(java.lang.Long jobID,
java.lang.String errorText)
Abort a running job due to a fatal error condition. |
void |
exportConfiguration(java.io.OutputStream os)
Export configuration |
protected void |
fetchAndProcessDocuments(java.util.ArrayList answers,
java.lang.Long currentTimeValue,
java.lang.Long currentPriorityValue,
JobManager.ThrottleLimit vList,
IRepositoryConnection[] connections)
Fetch and process documents matching the passed-in criteria |
boolean[] |
findHopCounts(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] docIDHashes,
java.lang.String linkType,
int limit,
int hopcountMethod)
Get the specified hop counts, with the limit as described. |
IJobDescription[] |
findJobsForConnection(java.lang.String connectionName)
Get the job IDs associated with a given connection name. |
DocumentDescription[] |
finishDocuments(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] parentIdentifierHashes,
int hopcountMethod)
Complete adding child documents to the queue, for a set of documents. |
void |
finishJobAborts(long timestamp,
java.util.ArrayList abortJobs)
Complete the sequence that aborts jobs and makes them runnable again. |
void |
finishJobs()
Put all eligible jobs in the "shutting down" state. |
IResultSet |
genDocumentStatus(java.lang.String connectionName,
StatusFilterCriteria filterCriteria,
SortOrder sortOrder,
int startRow,
int rowCount)
Run a 'document status' report. |
IResultSet |
genQueueStatus(java.lang.String connectionName,
StatusFilterCriteria filterCriteria,
SortOrder sortOrder,
BucketDescription idBucketDescription,
int startRow,
int rowCount)
Run a 'queue status' report. |
IJobDescription[] |
getAllJobs()
Load a sorted list of job descriptions. |
java.lang.String[] |
getAllSeeds(java.lang.Long jobID)
Get all the current seeds. |
JobStatus[] |
getAllStatus()
Get a list of all jobs, and their status information. |
DocumentSetAndFlags |
getExpiredDocuments(int n,
long currentTime)
Get up to the next n documents to be expired. |
JobStatus[] |
getFinishedJobs()
Get a list of completed jobs, and their statistics. |
protected java.lang.String |
getHopLockName(java.lang.Long jobID)
Get the hoplock for a given job ID |
JobStartRecord[] |
getJobsReadyForDelete()
Get the list of jobs that are ready for deletion. |
JobStartRecord[] |
getJobsReadyForInactivity()
Find the list of jobs that need to have their connectors notified of job completion. |
JobStartRecord[] |
getJobsReadyForSeeding(long currentTime)
Get the list of jobs that are ready for seeding. |
JobStartRecord[] |
getJobsReadyForStartup()
Get the list of jobs that are ready for startup. |
DocumentDescription[] |
getNextAlreadyProcessedReprioritizationDocuments(long currentTime,
int n)
Get a list of already-processed documents to reprioritize. |
DocumentSetAndFlags |
getNextCleanableDocuments(int maxCount,
long currentTime)
Get list of cleanable document descriptions. |
DocumentDescription[] |
getNextDeletableDocuments(int maxCount,
long currentTime)
Get list of deletable document descriptions. |
DocumentDescription[] |
getNextDocuments(int n,
long currentTime,
long interval,
BlockingDocuments blockingDocuments,
PerformanceStatistics statistics,
DepthStatistics scanRecord)
/** Get up to the next n document(s) to be fetched and processed. |
DocumentDescription[] |
getNextNotYetProcessedReprioritizationDocuments(long currentTime,
int n)
Get a list of not-yet-processed documents to reprioritize. |
protected long |
getRandomAmount()
Sleep a random amount of time after a transaction abort. |
JobStatus[] |
getRunningJobs()
Get a list of running jobs. |
JobStatus |
getStatus(java.lang.Long jobID)
Get the status of a job. |
protected java.lang.String[] |
getUnindexableDocumentIdentifiers(DocumentDescription[] documentIdentifiers,
java.lang.String connectionName,
java.lang.String outputConnectionName)
Get a list of document identifiers that should actually be deleted from the index, from a list that might contain identifiers that are shared with other jobs, which are targeted to the same output connection. |
void |
importConfiguration(java.io.InputStream is)
Import configuration |
void |
inactivateJob(java.lang.Long jobID)
Inactivate a job, from the notification state. |
void |
install()
Install. |
IJobDescription |
load(java.lang.Long id)
Load a job for editing. |
IJobDescription |
load(java.lang.Long id,
boolean readOnly)
Load a job. |
protected static java.lang.String |
makeCompositeID(java.lang.String docIDHash,
java.lang.String connectionName)
Create a composite document hash key. |
protected JobStatus[] |
makeJobStatus(java.lang.String whereClause,
java.util.ArrayList whereParams)
Make a job status array from a query result. |
void |
manualAbort(java.lang.Long jobID)
Manually abort a running job. |
void |
manualAbortRestart(java.lang.Long jobID)
Manually restart a running job. |
void |
manualStart(java.lang.Long jobID)
Manually start a job. |
void |
markDocumentCompleted(DocumentDescription documentDescription)
Note completion of document processing by a job thread of a document. |
void |
markDocumentCompletedMultiple(DocumentDescription[] documentDescriptions)
Note completion of document processing by a job thread of a document. |
DocumentDescription[] |
markDocumentDeleted(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
DocumentDescription documentDescription,
int hopcountMethod)
Note deletion as result of document processing by a job thread of a document. |
DocumentDescription[] |
markDocumentDeletedMultiple(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
DocumentDescription[] documentDescriptions,
int hopcountMethod)
Note deletion as result of document processing by a job thread of a document. |
void |
noteConnectionChange(java.lang.String connectionName)
Note a change in connection configuration. |
protected void |
noteConnectionDeregistration(java.lang.String query,
java.util.ArrayList list)
Note deregistration for a batch of connection names. |
protected void |
noteConnectionRegistration(java.lang.String query,
java.util.ArrayList list)
Note registration for a batch of connection names. |
void |
noteConnectorDeregistration(java.lang.String[] connectionNames)
Note the deregistration of a connector used by the specified connections. |
void |
noteConnectorRegistration(java.lang.String[] connectionNames)
Note the registration of a connector used by the specified connections. |
void |
noteJobDeleteStarted(java.lang.Long jobID,
long startTime)
Note job delete started. |
void |
noteJobSeeded(java.lang.Long jobID,
long seedTime)
Note job seeded. |
void |
noteJobStarted(java.lang.Long jobID,
long startTime)
Note job started. |
void |
noteOutputConnectionChange(java.lang.String connectionName)
Note a change in output connection configuration. |
protected void |
noteOutputConnectionDeregistration(java.lang.String query,
java.util.ArrayList list)
Note deregistration for a batch of output connection names. |
protected void |
noteOutputConnectionRegistration(java.lang.String query,
java.util.ArrayList list)
Note registration for a batch of output connection names. |
void |
noteOutputConnectorDeregistration(java.lang.String[] connectionNames)
Note the deregistration of an output connector used by the specified connections. |
void |
noteOutputConnectorRegistration(java.lang.String[] connectionNames)
Note the registration of an output connector used by the specified connections. |
void |
pauseJob(java.lang.Long jobID)
Pause a job. |
void |
prepareDeleteScan(java.lang.Long jobID)
Prepare for a delete scan. |
void |
prepareForStart()
Reset the job queue immediately after starting up. |
void |
prepareFullScan(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
int hopcountMethod)
Prepare for a full scan. |
void |
prepareIncrementalScan(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
int hopcountMethod)
Prepare for an incremental scan. |
protected void |
processDeleteHashSet(java.lang.Long jobID,
java.util.HashMap resultHash,
java.lang.String queryPart,
java.util.ArrayList list)
Helper method: look up rows affected by a deleteRecords operation. |
protected void |
processParentHashSet(java.lang.Long jobID,
java.util.HashMap resultHash,
java.lang.String queryPart,
java.util.ArrayList list)
Helper method: look up rows affected by a restoreRecords operation. |
protected EnumeratedValues |
readEnumeratedValues(java.io.InputStream is)
|
void |
requeueDocument(DocumentDescription documentDescription,
java.lang.Long executeTime,
int action)
Requeue a document for further processing in the future. |
void |
requeueDocumentMultiple(DocumentDescription[] documentDescriptions,
java.lang.Long[] executeTimes,
int[] actions)
Requeue a document for further processing in the future. |
void |
resetCleaningDocument(DocumentDescription documentDescription,
long checkTime)
Reset a cleaning document back to its former state. |
void |
resetCleaningDocumentMultiple(DocumentDescription[] documentDescriptions,
long checkTime)
Reset a set of cleaning documents for further processing in the future. |
void |
resetDeleteStartupWorkerStatus()
Reset as part of restoring delete startup threads. |
void |
resetDeletingDocument(DocumentDescription documentDescription,
long checkTime)
Reset a deleting document back to its former state. |
void |
resetDeletingDocumentMultiple(DocumentDescription[] documentDescriptions,
long checkTime)
Reset a set of deleting documents for further processing in the future. |
void |
resetDocCleanupWorkerStatus()
Reset as part of restoring doc cleanup threads. |
void |
resetDocDeleteWorkerStatus()
Reset as part of restoring doc delete threads. |
void |
resetDocument(DocumentDescription documentDescription,
long executeTime,
int action,
long failTime,
int failCount)
Reset an active document back to its former state. |
void |
resetDocumentMultiple(DocumentDescription[] documentDescriptions,
long executeTime,
int action,
long failTime,
int failCount)
Reset a set of documents for further processing in the future. |
void |
resetDocumentWorkerStatus()
Reset as part of restoring document worker threads. |
void |
resetJobs(long currentTime,
java.util.ArrayList resetJobs)
Reset eligible jobs either back to the "inactive" state, or make them active again. |
void |
resetJobSchedule(java.lang.Long jobID)
Reset job schedule. |
void |
resetNotificationWorkerStatus()
Reset as part of restoring notification threads. |
void |
resetNotifyJob(java.lang.Long jobID)
Reset a job that is notifying back to "ready for notify" state. |
void |
resetSeedingWorkerStatus()
Reset as part of restoring seeding threads. |
void |
resetSeedJob(java.lang.Long jobID)
Reset a seeding job back to "active" state. |
void |
resetStartDeleteJob(java.lang.Long jobID)
Reset a job starting for delete back to "ready for delete" state. |
void |
resetStartupJob(java.lang.Long jobID)
Reset a starting job back to "ready for startup" state. |
void |
resetStartupWorkerStatus()
Reset as part of restoring startup threads. |
void |
restartJob(java.lang.Long jobID)
Restart a paused job. |
java.lang.String[] |
retrieveParentData(java.lang.Long jobID,
java.lang.String docIDHash,
java.lang.String dataName)
Retrieve specific parent data for a given document. |
CharacterInput[] |
retrieveParentDataAsFiles(java.lang.Long jobID,
java.lang.String docIDHash,
java.lang.String dataName)
Retrieve specific parent data for a given document. |
void |
save(IJobDescription jobDescription)
Save a job. |
protected void |
sleepFor(long amt)
|
void |
startJobs(long currentTime,
java.util.ArrayList unwaitList)
Start all jobs in need of starting. |
void |
waitJobs(long currentTime,
java.util.ArrayList waitList)
Put active or paused jobs in wait state, if they've exceeded their window. |
void |
writeDocumentPriorities(long currentTime,
DocumentDescription[] documentDescriptions,
double[] priorities)
Save a set of document priorities. |
protected static void |
writeEnumeratedValues(java.io.OutputStream os,
EnumeratedValues ev)
|
| 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 static final java.lang.String hopLock
protected IDBInterface database
protected IOutputConnectionManager outputMgr
protected IRepositoryConnectionManager connectionMgr
protected ILockManager lockManager
protected IThreadContext threadContext
protected JobQueue jobQueue
protected Jobs jobs
protected HopCount hopCount
protected Carrydown carryDown
protected EventManager eventManager
protected static java.util.Random random
| Constructor Detail |
|---|
public JobManager(IThreadContext threadContext,
IDBInterface database)
throws ManifoldCFException
threadContext - is the thread context.database - is the database.
ManifoldCFException| Method Detail |
|---|
public void install()
throws ManifoldCFException
install in interface IJobManagerManifoldCFException
public void deinstall()
throws ManifoldCFException
deinstall in interface IJobManagerManifoldCFException
public void exportConfiguration(java.io.OutputStream os)
throws java.io.IOException,
ManifoldCFException
exportConfiguration in interface IJobManagerjava.io.IOException
ManifoldCFException
protected static void writeEnumeratedValues(java.io.OutputStream os,
EnumeratedValues ev)
throws java.io.IOException
java.io.IOException
public void importConfiguration(java.io.InputStream is)
throws java.io.IOException,
ManifoldCFException
importConfiguration in interface IJobManagerjava.io.IOException
ManifoldCFException
protected EnumeratedValues readEnumeratedValues(java.io.InputStream is)
throws java.io.IOException
java.io.IOException
public void noteConnectorDeregistration(java.lang.String[] connectionNames)
throws ManifoldCFException
noteConnectorDeregistration in interface IJobManagerconnectionNames - is the set of connection names.
ManifoldCFException
protected void noteConnectionDeregistration(java.lang.String query,
java.util.ArrayList list)
throws ManifoldCFException
ManifoldCFException
public void noteConnectorRegistration(java.lang.String[] connectionNames)
throws ManifoldCFException
noteConnectorRegistration in interface IJobManagerconnectionNames - is the set of connection names.
ManifoldCFException
protected void noteConnectionRegistration(java.lang.String query,
java.util.ArrayList list)
throws ManifoldCFException
ManifoldCFException
public void noteConnectionChange(java.lang.String connectionName)
throws ManifoldCFException
noteConnectionChange in interface IJobManagerManifoldCFException
public void noteOutputConnectorDeregistration(java.lang.String[] connectionNames)
throws ManifoldCFException
noteOutputConnectorDeregistration in interface IJobManagerconnectionNames - is the set of connection names.
ManifoldCFException
protected void noteOutputConnectionDeregistration(java.lang.String query,
java.util.ArrayList list)
throws ManifoldCFException
ManifoldCFException
public void noteOutputConnectorRegistration(java.lang.String[] connectionNames)
throws ManifoldCFException
noteOutputConnectorRegistration in interface IJobManagerconnectionNames - is the set of connection names.
ManifoldCFException
protected void noteOutputConnectionRegistration(java.lang.String query,
java.util.ArrayList list)
throws ManifoldCFException
ManifoldCFException
public void noteOutputConnectionChange(java.lang.String connectionName)
throws ManifoldCFException
noteOutputConnectionChange in interface IJobManagerManifoldCFException
public IJobDescription[] getAllJobs()
throws ManifoldCFException
getAllJobs in interface IJobManagerManifoldCFException
public IJobDescription createJob()
throws ManifoldCFException
createJob in interface IJobManagerManifoldCFExceptionprotected java.lang.String getHopLockName(java.lang.Long jobID)
public void deleteJob(java.lang.Long id)
throws ManifoldCFException
deleteJob in interface IJobManagerid - is the job's identifier. This method will purge all the records belonging to the job from the database, as
well as remove all documents indexed by the job from the index.
ManifoldCFException
public IJobDescription load(java.lang.Long id)
throws ManifoldCFException
load in interface IJobManagerid - is the job's identifier.
ManifoldCFException
public IJobDescription load(java.lang.Long id,
boolean readOnly)
throws ManifoldCFException
load in interface IJobManagerid - is the job's identifier.readOnly - is true if a read-only object is desired.
ManifoldCFException
public void save(IJobDescription jobDescription)
throws ManifoldCFException
save in interface IJobManagerjobDescription - is the job description.
ManifoldCFException
public boolean checkIfReference(java.lang.String connectionName)
throws ManifoldCFException
checkIfReference in interface IJobManagerconnectionName - is the name of the connection.
ManifoldCFException
public boolean checkIfOutputReference(java.lang.String connectionName)
throws ManifoldCFException
checkIfOutputReference in interface IJobManagerconnectionName - is the name of the connection.
ManifoldCFException
public IJobDescription[] findJobsForConnection(java.lang.String connectionName)
throws ManifoldCFException
findJobsForConnection in interface IJobManagerconnectionName - is the name of the connection.
ManifoldCFException
public void prepareForStart()
throws ManifoldCFException
prepareForStart in interface IJobManagerManifoldCFException
public void resetDocumentWorkerStatus()
throws ManifoldCFException
resetDocumentWorkerStatus in interface IJobManagerManifoldCFException
public void resetSeedingWorkerStatus()
throws ManifoldCFException
resetSeedingWorkerStatus in interface IJobManagerManifoldCFException
public void resetDocDeleteWorkerStatus()
throws ManifoldCFException
resetDocDeleteWorkerStatus in interface IJobManagerManifoldCFException
public void resetDocCleanupWorkerStatus()
throws ManifoldCFException
resetDocCleanupWorkerStatus in interface IJobManagerManifoldCFException
public void resetDeleteStartupWorkerStatus()
throws ManifoldCFException
resetDeleteStartupWorkerStatus in interface IJobManagerManifoldCFException
public void resetNotificationWorkerStatus()
throws ManifoldCFException
resetNotificationWorkerStatus in interface IJobManagerManifoldCFException
public void resetStartupWorkerStatus()
throws ManifoldCFException
resetStartupWorkerStatus in interface IJobManagerManifoldCFException
public void deleteIngestedDocumentIdentifiers(DocumentDescription[] identifiers)
throws ManifoldCFException
deleteIngestedDocumentIdentifiers in interface IJobManageridentifiers - is the set of document identifiers.
ManifoldCFException
public DocumentSetAndFlags getNextCleanableDocuments(int maxCount,
long currentTime)
throws ManifoldCFException
getNextCleanableDocuments in interface IJobManagermaxCount - is the maximum number of documents to return.currentTime - is the current time; some fetches do not occur until a specific time.
ManifoldCFException
protected static java.lang.String makeCompositeID(java.lang.String docIDHash,
java.lang.String connectionName)
public DocumentDescription[] getNextDeletableDocuments(int maxCount,
long currentTime)
throws ManifoldCFException
getNextDeletableDocuments in interface IJobManagermaxCount - is the maximum number of documents to return.currentTime - is the current time; some fetches do not occur until a specific time.
ManifoldCFException
protected java.lang.String[] getUnindexableDocumentIdentifiers(DocumentDescription[] documentIdentifiers,
java.lang.String connectionName,
java.lang.String outputConnectionName)
throws ManifoldCFException
documentIdentifiers - is the set of document identifiers to consider.connectionName - is the connection name for ALL the document identifiers.outputConnectionName - is the output connection name for ALL the document identifiers.
ManifoldCFException
public DocumentDescription[] getNextAlreadyProcessedReprioritizationDocuments(long currentTime,
int n)
throws ManifoldCFException
getNextAlreadyProcessedReprioritizationDocuments in interface IJobManagercurrentTime - is the current time stamp for this prioritization pass. Avoid
picking up any documents that are labeled with this timestamp or after.n - is the maximum number of document descriptions desired.
ManifoldCFException
public DocumentDescription[] getNextNotYetProcessedReprioritizationDocuments(long currentTime,
int n)
throws ManifoldCFException
getNextNotYetProcessedReprioritizationDocuments in interface IJobManagercurrentTime - is the current time stamp for this prioritization pass. Avoid
picking up any documents that are labeled with this timestamp or after.n - is the maximum number of document descriptions desired.
ManifoldCFException
public void writeDocumentPriorities(long currentTime,
DocumentDescription[] documentDescriptions,
double[] priorities)
throws ManifoldCFException
writeDocumentPriorities in interface IJobManagercurrentTime - is the time in milliseconds since epoch.documentDescriptions - are the document descriptions.priorities - are the desired priorities.
ManifoldCFException
public DocumentSetAndFlags getExpiredDocuments(int n,
long currentTime)
throws ManifoldCFException
getExpiredDocuments in interface IJobManagern - is the maximum number of records desired.currentTime - is the current time.
ManifoldCFException
public DocumentDescription[] getNextDocuments(int n,
long currentTime,
long interval,
BlockingDocuments blockingDocuments,
PerformanceStatistics statistics,
DepthStatistics scanRecord)
throws ManifoldCFException
getNextDocuments in interface IJobManagern - is the maximum number of records desired.currentTime - is the current time; some fetches do not occur until a specific time.interval - is the number of milliseconds that this set of documents should represent (for throttling).blockingDocuments - is the place to record documents that were encountered, are eligible for reprioritization,
but could not be queued due to throttling considerations.statistics - are the current performance statistics per connection, which are used to balance the queue stuffing
so that individual connections are not overwhelmed.scanRecord - retains the bins from all documents encountered from the query, even those that were skipped due
to being overcommitted.
ManifoldCFException
protected void addDocumentCriteria(java.lang.StringBuffer sb,
java.util.ArrayList list,
java.lang.Long currentTimeValue,
java.lang.Long currentPriorityValue)
throws ManifoldCFException
ManifoldCFException
protected void fetchAndProcessDocuments(java.util.ArrayList answers,
java.lang.Long currentTimeValue,
java.lang.Long currentPriorityValue,
JobManager.ThrottleLimit vList,
IRepositoryConnection[] connections)
throws ManifoldCFException
ManifoldCFException
public boolean checkJobActive(java.lang.Long jobID)
throws ManifoldCFException
checkJobActive in interface IJobManagerjobID - is the job identifier.
ManifoldCFException
public boolean checkJobBusy(java.lang.Long jobID)
throws ManifoldCFException
checkJobBusy in interface IJobManagerManifoldCFException
public void markDocumentCompletedMultiple(DocumentDescription[] documentDescriptions)
throws ManifoldCFException
markDocumentCompletedMultiple in interface IJobManagerdocumentDescriptions - are the description objects for the documents that were processed.
ManifoldCFException
public void markDocumentCompleted(DocumentDescription documentDescription)
throws ManifoldCFException
markDocumentCompleted in interface IJobManagerdocumentDescription - is the description object for the document that was processed.
ManifoldCFException
public DocumentDescription[] markDocumentDeletedMultiple(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
DocumentDescription[] documentDescriptions,
int hopcountMethod)
throws ManifoldCFException
markDocumentDeletedMultiple in interface IJobManagerdocumentDescriptions - are the set of description objects for the documents that were processed.hopcountMethod - describes how to handle deletions for hopcount purposes.
ManifoldCFException
protected DocumentDescription[] calculateAffectedDeleteCarrydownChildren(java.lang.Long jobID,
java.lang.String[] docIDHashes)
throws ManifoldCFException
ManifoldCFException
protected void processDeleteHashSet(java.lang.Long jobID,
java.util.HashMap resultHash,
java.lang.String queryPart,
java.util.ArrayList list)
throws ManifoldCFException
ManifoldCFException
public DocumentDescription[] markDocumentDeleted(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
DocumentDescription documentDescription,
int hopcountMethod)
throws ManifoldCFException
markDocumentDeleted in interface IJobManagerdocumentDescription - is the description object for the document that was processed.hopcountMethod - describes how to handle deletions for hopcount purposes.
ManifoldCFException
public void requeueDocumentMultiple(DocumentDescription[] documentDescriptions,
java.lang.Long[] executeTimes,
int[] actions)
throws ManifoldCFException
requeueDocumentMultiple in interface IJobManagerdocumentDescriptions - is the set of description objects for the document that was processed.executeTimes - are the times that the documents should be rescanned. Null indicates "never".actions - are what should be done when the time arrives. Choices are ACTION_RESCAN or ACTION_REMOVE.
ManifoldCFException
public void requeueDocument(DocumentDescription documentDescription,
java.lang.Long executeTime,
int action)
throws ManifoldCFException
requeueDocument in interface IJobManagerdocumentDescription - is the description object for the document that was processed.executeTime - is the time that the document should be rescanned. Null indicates "never".action - is what should be done when the time arrives. Choices include ACTION_RESCAN or ACTION_REMOVE.
ManifoldCFException
public void resetDocumentMultiple(DocumentDescription[] documentDescriptions,
long executeTime,
int action,
long failTime,
int failCount)
throws ManifoldCFException
resetDocumentMultiple in interface IJobManagerdocumentDescriptions - is the set of description objects for the document that was processed.executeTime - is the time that the documents should be rescanned.failTime - is the time beyond which a service interruption will be considered a hard failure.failCount - is the number of retries beyond which a service interruption will be considered a hard failure.
ManifoldCFException
public void resetCleaningDocumentMultiple(DocumentDescription[] documentDescriptions,
long checkTime)
throws ManifoldCFException
resetCleaningDocumentMultiple in interface IJobManagerdocumentDescriptions - is the set of description objects for the document that was cleaned.checkTime - is the minimum time for the next cleaning attempt.
ManifoldCFException
public void resetCleaningDocument(DocumentDescription documentDescription,
long checkTime)
throws ManifoldCFException
resetCleaningDocument in interface IJobManagerdocumentDescription - is the description of the document that was cleaned.checkTime - is the minimum time for the next cleaning attempt.
ManifoldCFException
public void resetDeletingDocumentMultiple(DocumentDescription[] documentDescriptions,
long checkTime)
throws ManifoldCFException
resetDeletingDocumentMultiple in interface IJobManagerdocumentDescriptions - is the set of description objects for the document that was processed.checkTime - is the minimum time for the next cleaning attempt.
ManifoldCFException
public void resetDeletingDocument(DocumentDescription documentDescription,
long checkTime)
throws ManifoldCFException
resetDeletingDocument in interface IJobManagerdocumentDescription - is the description object for the document that was cleaned.checkTime - is the minimum time for the next cleaning attempt.
ManifoldCFException
public void resetDocument(DocumentDescription documentDescription,
long executeTime,
int action,
long failTime,
int failCount)
throws ManifoldCFException
resetDocument in interface IJobManagerdocumentDescription - is the description object for the document that was processed.executeTime - is the time that the document should be rescanned.failTime - is the time that the document should be considered to have failed, if it has not been
successfully read until then.failCount - is the number of permitted failures before a hard error is signalled.
ManifoldCFExceptionprotected static java.lang.String[] eliminateDuplicates(java.lang.String[] docIDHashes)
protected static java.util.HashMap buildReorderMap(java.lang.String[] originalIDHashes,
java.lang.String[] reorderedIDHashes)
public boolean[] addDocumentsInitial(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] docIDHashes,
java.lang.String[] docIDs,
boolean overrideSchedule,
int hopcountMethod,
long currentTime,
double[] documentPriorities,
java.lang.String[][] prereqEventNames)
throws ManifoldCFException
addDocumentsInitial in interface IJobManagerjobID - is the job identifier.legalLinkTypes - is the set of legal link types that this connector generates.docIDs - are the local document identifiers.overrideSchedule - is true if any existing document schedule should be overridden.hopcountMethod - is either accurate, nodelete, or neverdelete.currentTime - is the current time in milliseconds since epoch.documentPriorities - are the document priorities corresponding to the document identifiers.prereqEventNames - are the events that must be completed before each document can be processed.docIDHashes - are the hashes of the local document identifiers (primary key).
ManifoldCFException
public void addRemainingDocumentsInitial(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] docIDHashes,
int hopcountMethod)
throws ManifoldCFException
addRemainingDocumentsInitial in interface IJobManagerjobID - is the job identifier.legalLinkTypes - is the set of legal link types that this connector generates.docIDHashes - are the local document identifier hashes.hopcountMethod - is either accurate, nodelete, or neverdelete.
ManifoldCFException
public void doneDocumentsInitial(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
boolean isPartial,
int hopcountMethod)
throws ManifoldCFException
doneDocumentsInitial in interface IJobManagerjobID - is the job identifier.legalLinkTypes - is the set of legal link types that this connector generates.isPartial - is set if the seeds provided are only a partial list. Some connectors cannot
supply a full list of seeds on every seeding iteration; this acknowledges that limitation.hopcountMethod - describes how to handle deletions for hopcount purposes.
ManifoldCFException
public boolean[] findHopCounts(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] docIDHashes,
java.lang.String linkType,
int limit,
int hopcountMethod)
throws ManifoldCFException
findHopCounts in interface IJobManagerjobID - is the job identifier.legalLinkTypes - is the set of legal link types that this connector generates.docIDHashes - are the hashes for the set of documents to find the hopcount for.linkType - is the kind of link to find the hopcount for.limit - is the limit, beyond which a negative distance may be returned.hopcountMethod - is the method for managing hopcounts that is in effect.
ManifoldCFException
public java.lang.String[] getAllSeeds(java.lang.Long jobID)
throws ManifoldCFException
getAllSeeds in interface IJobManagerjobID - is the job identifier.
ManifoldCFException
public boolean[] addDocuments(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] docIDHashes,
java.lang.String[] docIDs,
java.lang.String parentIdentifierHash,
java.lang.String relationshipType,
int hopcountMethod,
java.lang.String[][] dataNames,
java.lang.Object[][][] dataValues,
long currentTime,
double[] documentPriorities,
java.lang.String[][] prereqEventNames)
throws ManifoldCFException
addDocuments in interface IJobManagerjobID - is the job identifier.legalLinkTypes - is the set of legal link types that this connector generates.docIDHashes - are the local document identifier hashes.parentIdentifierHash - is the optional parent identifier hash of this document. Pass null if none.relationshipType - is the optional link type between this document and its parent. Pass null if there
is no relationship with a parent.hopcountMethod - is the desired method for managing hopcounts.dataNames - are the names of the data to carry down to the child from this parent.dataValues - are the values to carry down to the child from this parent, corresponding to dataNames above. If CharacterInput objects are passed in here,
it is the caller's responsibility to clean these up.currentTime - is the time in milliseconds since epoch that will be recorded for this operation.documentPriorities - are the desired document priorities for the documents.prereqEventNames - are the events that must be completed before a document can be queued.docIDs - are the local document identifiers.
ManifoldCFException
public boolean addDocument(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String docIDHash,
java.lang.String docID,
java.lang.String parentIdentifierHash,
java.lang.String relationshipType,
int hopcountMethod,
java.lang.String[] dataNames,
java.lang.Object[][] dataValues,
long currentTime,
double priority,
java.lang.String[] prereqEventNames)
throws ManifoldCFException
addDocument in interface IJobManagerjobID - is the job identifier.legalLinkTypes - is the set of legal link types that this connector generates.docIDHash - is the local document identifier hash value.parentIdentifierHash - is the optional parent identifier hash of this document. Pass null if none.relationshipType - is the optional link type between this document and its parent. Pass null if there
is no relationship with a parent.hopcountMethod - is the desired method for managing hopcounts.dataNames - are the names of the data to carry down to the child from this parent.dataValues - are the values to carry down to the child from this parent, corresponding to dataNames above.currentTime - is the time in milliseconds since epoch that will be recorded for this operation.priority - is the desired document priority for the document.prereqEventNames - are the events that must be completed before the document can be processed.
ManifoldCFException
public DocumentDescription[] finishDocuments(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
java.lang.String[] parentIdentifierHashes,
int hopcountMethod)
throws ManifoldCFException
finishDocuments in interface IJobManagerjobID - is the job identifier.legalLinkTypes - is the set of legal link types that this connector generates.parentIdentifierHashes - are the document identifier hashes for whom child link extraction just took place.hopcountMethod - describes how to handle deletions for hopcount purposes.
ManifoldCFException
protected DocumentDescription[] calculateAffectedRestoreCarrydownChildren(java.lang.Long jobID,
java.lang.String[] parentIDHashes)
throws ManifoldCFException
ManifoldCFException
protected void processParentHashSet(java.lang.Long jobID,
java.util.HashMap resultHash,
java.lang.String queryPart,
java.util.ArrayList list)
throws ManifoldCFException
ManifoldCFException
public boolean beginEventSequence(java.lang.String eventName)
throws ManifoldCFException
beginEventSequence in interface IJobManagereventName - is the name of the event.
ManifoldCFException
public void completeEventSequence(java.lang.String eventName)
throws ManifoldCFException
completeEventSequence in interface IJobManagereventName - is the name of the event.
ManifoldCFException
public boolean[] carrydownChangeDocumentMultiple(DocumentDescription[] documentDescriptions,
long currentTime,
double[] docPriorities)
throws ManifoldCFException
carrydownChangeDocumentMultiple in interface IJobManagerdocumentDescriptions - is the set of description objects for the documents that have had their parent carrydown information changed.docPriorities - are the document priorities to assign to the documents, if needed.
ManifoldCFException
public boolean carrydownChangeDocument(DocumentDescription documentDescription,
long currentTime,
double docPriority)
throws ManifoldCFException
carrydownChangeDocument in interface IJobManagerdocumentDescription - is the description object for the document that has had its parent carrydown information changed.docPriority - is the document priority to assign to the document, if needed.
ManifoldCFExceptionprotected long getRandomAmount()
protected void sleepFor(long amt)
throws ManifoldCFException
ManifoldCFException
public java.lang.String[] retrieveParentData(java.lang.Long jobID,
java.lang.String docIDHash,
java.lang.String dataName)
throws ManifoldCFException
retrieveParentData in interface IJobManagerjobID - is the job identifier.docIDHash - is the document identifier hash value.dataName - is the kind of data to retrieve.
ManifoldCFException
public CharacterInput[] retrieveParentDataAsFiles(java.lang.Long jobID,
java.lang.String docIDHash,
java.lang.String dataName)
throws ManifoldCFException
retrieveParentDataAsFiles in interface IJobManagerjobID - is the job identifier.docIDHash - is the document identifier hash value.dataName - is the kind of data to retrieve.
ManifoldCFException
public void startJobs(long currentTime,
java.util.ArrayList unwaitList)
throws ManifoldCFException
startJobs in interface IJobManagercurrentTime - is the current time in milliseconds since epoch.unwaitList - is filled in with the set of job ID objects that were resumed.
ManifoldCFException
public void waitJobs(long currentTime,
java.util.ArrayList waitList)
throws ManifoldCFException
waitJobs in interface IJobManagercurrentTime - is the current time in milliseconds since epoch.waitList - is filled in with the set of job ID's that were put into a wait state.
ManifoldCFException
public void resetJobSchedule(java.lang.Long jobID)
throws ManifoldCFException
resetJobSchedule in interface IJobManagerjobID - is the job identifier.
ManifoldCFException
protected static java.lang.Long checkTimeMatch(long startTime,
long currentTimestamp,
EnumeratedValues daysOfWeek,
EnumeratedValues daysOfMonth,
EnumeratedValues months,
EnumeratedValues years,
EnumeratedValues hours,
EnumeratedValues minutes,
java.lang.String timezone,
java.lang.Long duration)
startTime - is the start time.currentTimestamp - is the end time.daysOfWeek - is the enumerated days of the week, or null.daysOfMonth - is the enumerated days of the month, or null.months - is the enumerated months, or null.years - is the enumerated years, or null.hours - is the enumerated hours, or null.minutes - is the enumerated minutes, or null.
public void manualStart(java.lang.Long jobID)
throws ManifoldCFException
manualStart in interface IJobManagerjobID - is the ID of the job to start.
ManifoldCFException
public void noteJobDeleteStarted(java.lang.Long jobID,
long startTime)
throws ManifoldCFException
noteJobDeleteStarted in interface IJobManagerjobID - is the job id.startTime - is the job delete start time.
ManifoldCFException
public void noteJobStarted(java.lang.Long jobID,
long startTime)
throws ManifoldCFException
noteJobStarted in interface IJobManagerjobID - is the job id.startTime - is the job start time.
ManifoldCFException
public void noteJobSeeded(java.lang.Long jobID,
long seedTime)
throws ManifoldCFException
noteJobSeeded in interface IJobManagerjobID - is the job id.seedTime - is the job seed time.
ManifoldCFException
public void prepareDeleteScan(java.lang.Long jobID)
throws ManifoldCFException
prepareDeleteScan in interface IJobManagerjobID - is the job id.
ManifoldCFException
public void prepareFullScan(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
int hopcountMethod)
throws ManifoldCFException
prepareFullScan in interface IJobManagerjobID - is the job id.legalLinkTypes - are the link types allowed for the job.hopcountMethod - describes how to handle deletions for hopcount purposes.
ManifoldCFException
public void prepareIncrementalScan(java.lang.Long jobID,
java.lang.String[] legalLinkTypes,
int hopcountMethod)
throws ManifoldCFException
prepareIncrementalScan in interface IJobManagerjobID - is the job id.legalLinkTypes - are the link types allowed for the job.hopcountMethod - describes how to handle deletions for hopcount purposes.
ManifoldCFException
public void manualAbort(java.lang.Long jobID)
throws ManifoldCFException
manualAbort in interface IJobManagerjobID - is the job to abort.
ManifoldCFException
public void manualAbortRestart(java.lang.Long jobID)
throws ManifoldCFException
manualAbortRestart in interface IJobManagerjobID - is the job to abort.
ManifoldCFException
public boolean errorAbort(java.lang.Long jobID,
java.lang.String errorText)
throws ManifoldCFException
errorAbort in interface IJobManagerjobID - is the job to abort.errorText - is the error text.
ManifoldCFException
public void pauseJob(java.lang.Long jobID)
throws ManifoldCFException
pauseJob in interface IJobManagerjobID - is the job identifier to pause.
ManifoldCFException
public void restartJob(java.lang.Long jobID)
throws ManifoldCFException
restartJob in interface IJobManagerjobID - is the job identifier to restart.
ManifoldCFException
public JobStartRecord[] getJobsReadyForSeeding(long currentTime)
throws ManifoldCFException
getJobsReadyForSeeding in interface IJobManagercurrentTime - is the current time in milliseconds since epoch.
ManifoldCFException
public JobStartRecord[] getJobsReadyForDelete()
throws ManifoldCFException
getJobsReadyForDelete in interface IJobManagerManifoldCFException
public JobStartRecord[] getJobsReadyForStartup()
throws ManifoldCFException
getJobsReadyForStartup in interface IJobManagerManifoldCFException
public void inactivateJob(java.lang.Long jobID)
throws ManifoldCFException
inactivateJob in interface IJobManagerjobID - is the ID of the job to inactivate.
ManifoldCFException
public void resetStartDeleteJob(java.lang.Long jobID)
throws ManifoldCFException
resetStartDeleteJob in interface IJobManagerjobID - is the job id.
ManifoldCFException
public void resetNotifyJob(java.lang.Long jobID)
throws ManifoldCFException
resetNotifyJob in interface IJobManagerjobID - is the job id.
ManifoldCFException
public void resetStartupJob(java.lang.Long jobID)
throws ManifoldCFException
resetStartupJob in interface IJobManagerjobID - is the job id.
ManifoldCFException
public void resetSeedJob(java.lang.Long jobID)
throws ManifoldCFException
resetSeedJob in interface IJobManagerjobID - is the job id.
ManifoldCFException
public void deleteJobsReadyForDelete()
throws ManifoldCFException
deleteJobsReadyForDelete in interface IJobManagerManifoldCFException
public void finishJobs()
throws ManifoldCFException
finishJobs in interface IJobManagerManifoldCFException
public JobStartRecord[] getJobsReadyForInactivity()
throws ManifoldCFException
getJobsReadyForInactivity in interface IJobManagerManifoldCFException
public void finishJobAborts(long timestamp,
java.util.ArrayList abortJobs)
throws ManifoldCFException
finishJobAborts in interface IJobManagertimestamp - is the current time.abortJobs - is the set of IJobDescription objects that were aborted (and stopped).
ManifoldCFException
public void resetJobs(long currentTime,
java.util.ArrayList resetJobs)
throws ManifoldCFException
resetJobs in interface IJobManagercurrentTime - is the current time in milliseconds since epoch.resetJobs - is filled in with the set of IJobDescription objects that were reset.
ManifoldCFException
public JobStatus getStatus(java.lang.Long jobID)
throws ManifoldCFException
getStatus in interface IJobManagerManifoldCFException
public JobStatus[] getAllStatus()
throws ManifoldCFException
getAllStatus in interface IJobManagerManifoldCFException
public JobStatus[] getRunningJobs()
throws ManifoldCFException
getRunningJobs in interface IJobManagerManifoldCFException
public JobStatus[] getFinishedJobs()
throws ManifoldCFException
getFinishedJobs in interface IJobManagerManifoldCFException
protected JobStatus[] makeJobStatus(java.lang.String whereClause,
java.util.ArrayList whereParams)
throws ManifoldCFException
whereClause - is the where clause for the jobs we are interested in.
ManifoldCFException
public IResultSet genDocumentStatus(java.lang.String connectionName,
StatusFilterCriteria filterCriteria,
SortOrder sortOrder,
int startRow,
int rowCount)
throws ManifoldCFException
genDocumentStatus in interface IJobManagerconnectionName - is the name of the connection.filterCriteria - are the criteria used to limit the records considered for the report.sortOrder - is the specified sort order of the final report.startRow - is the first row to include.rowCount - is the number of rows to include.
ManifoldCFException
public IResultSet genQueueStatus(java.lang.String connectionName,
StatusFilterCriteria filterCriteria,
SortOrder sortOrder,
BucketDescription idBucketDescription,
int startRow,
int rowCount)
throws ManifoldCFException
genQueueStatus in interface IJobManagerconnectionName - is the name of the connection.filterCriteria - are the criteria used to limit the records considered for the report.sortOrder - is the specified sort order of the final report.idBucketDescription - is the bucket description for generating the identifier class.startRow - is the first row to include.rowCount - is the number of rows to include.
ManifoldCFException
protected void addBucketExtract(java.lang.StringBuffer sb,
java.util.ArrayList list,
java.lang.String columnPrefix,
java.lang.String columnName,
BucketDescription bucketDesc)
protected boolean addCriteria(java.lang.StringBuffer sb,
java.util.ArrayList list,
java.lang.String fieldPrefix,
java.lang.String connectionName,
StatusFilterCriteria criteria,
boolean whereEmitted)
throws ManifoldCFException
ManifoldCFException
protected boolean emitClauseStart(java.lang.StringBuffer sb,
boolean whereEmitted)
protected void addOrdering(java.lang.StringBuffer sb,
java.lang.String[] completeFieldList,
SortOrder sort)
protected void addLimits(java.lang.StringBuffer sb,
int startRow,
int maxRowCount)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||