Class TrackerClass
- java.lang.Object
-
- org.apache.manifoldcf.crawler.jobs.TrackerClass
-
public class TrackerClass extends java.lang.Object
Debugging 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 class
TrackerClass.CommitEvent
protected static class
TrackerClass.DataChange
protected static class
TrackerClass.GlobalChange
protected static class
TrackerClass.HistoryRecord
protected static class
TrackerClass.JobChange
protected static class
TrackerClass.PrecommitEvent
protected static class
TrackerClass.PrereadEvent
protected static class
TrackerClass.ReadEvent
protected static class
TrackerClass.RecordChange
protected static class
TrackerClass.TransactionData
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.List<TrackerClass.HistoryRecord>
history
protected static long
HISTORY_LENGTH
protected 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 void
addChange(TrackerClass.DataChange dc)
static void
noteCommit()
Note a commit operation.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.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.static void
notePrecommit()
Note that we are about to commit.static void
notePreread(java.lang.Long recordID)
Note about to read status operation.static void
noteRead(java.lang.Long recordID)
Note a read status operation.static void
noteRecordChange(java.lang.Long recordID, int newStatus, java.lang.String description)
Add a single record event, as yet uncommittedstatic void
noteRollback()
Note a rollback operation.static void
printForensics(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)
-
-