Class TrackerClass
- java.lang.Object
-
- org.apache.manifoldcf.crawler.jobs.TrackerClass
-
public class TrackerClass extends java.lang.ObjectDebugging class to keep track of recent modifications to the jobqueue table, along with context as to where it occurred. If a jobqueue state error occurs, we can then print out all of the pertinent history and find the culprit.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTrackerClass.CommitEventprotected static classTrackerClass.DataChangeprotected static classTrackerClass.GlobalChangeprotected static classTrackerClass.HistoryRecordprotected static classTrackerClass.JobChangeprotected static classTrackerClass.PrecommitEventprotected static classTrackerClass.PrereadEventprotected static classTrackerClass.ReadEventprotected static classTrackerClass.RecordChangeprotected static classTrackerClass.TransactionData
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.List<TrackerClass.HistoryRecord>historyprotected static longHISTORY_LENGTHprotected static java.util.Map<java.lang.String,TrackerClass.TransactionData>transactionData
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voidaddChange(TrackerClass.DataChange dc)static voidnoteCommit()Note a commit operation.static voidnoteGlobalChange(java.lang.String description)Add a global event, as yet uncommitted, which has the potential to affect the state of any record.static voidnoteJobChange(java.lang.Long jobID, java.lang.String description)Add a global event, as yet uncommitted, which has the potential to affect any record's state in a given job.static voidnotePrecommit()Note that we are about to commit.static voidnotePreread(java.lang.Long recordID)Note about to read status operation.static voidnoteRead(java.lang.Long recordID)Note a read status operation.static voidnoteRecordChange(java.lang.Long recordID, int newStatus, java.lang.String description)Add a single record event, as yet uncommittedstatic voidnoteRollback()Note a rollback operation.static voidprintForensics(java.lang.Long recordID, int existingStatus)
-
-
-
Field Detail
-
HISTORY_LENGTH
protected static final long HISTORY_LENGTH
- See Also:
- Constant Field Values
-
transactionData
protected static final java.util.Map<java.lang.String,TrackerClass.TransactionData> transactionData
-
history
protected static final java.util.List<TrackerClass.HistoryRecord> history
-
-
Method Detail
-
noteRecordChange
public static void noteRecordChange(java.lang.Long recordID, int newStatus, java.lang.String description)Add a single record event, as yet uncommitted
-
noteJobChange
public static void noteJobChange(java.lang.Long jobID, java.lang.String description)Add a global event, as yet uncommitted, which has the potential to affect any record's state in a given job.
-
noteGlobalChange
public static void noteGlobalChange(java.lang.String description)
Add a global event, as yet uncommitted, which has the potential to affect the state of any record.
-
addChange
protected static void addChange(TrackerClass.DataChange dc)
-
notePrecommit
public static void notePrecommit()
Note that we are about to commit.
-
noteRead
public static void noteRead(java.lang.Long recordID)
Note a read status operation.
-
notePreread
public static void notePreread(java.lang.Long recordID)
Note about to read status operation.
-
noteCommit
public static void noteCommit()
Note a commit operation.
-
noteRollback
public static void noteRollback()
Note a rollback operation.
-
printForensics
public static void printForensics(java.lang.Long recordID, int existingStatus)
-
-