Author: kwright
Date: Thu Dec 27 07:30:16 2012
New Revision: 1426137
URL: http://svn.apache.org/viewvc?rev=1426137&view=rev
Log:
Reduce history to 15 minutes
Modified:
manifoldcf/branches/CONNECTORS-590/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/TrackerClass.java
Modified:
manifoldcf/branches/CONNECTORS-590/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/TrackerClass.java
URL:
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-590/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/TrackerClass.java?rev=1426137&r1=1426136&r2=1426137&view=diff
==============================================================================
---
manifoldcf/branches/CONNECTORS-590/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/TrackerClass.java
(original)
+++
manifoldcf/branches/CONNECTORS-590/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/TrackerClass.java
Thu Dec 27 07:30:16 2012
@@ -27,9 +27,10 @@ import java.util.*;
*/
public class TrackerClass
{
- // The goal of this class is to keep track of at least the last two events
+ // The goal of this class is to keep track of at least some of the history
// potentially affecting each record.
-
+ protected final static long HISTORY_LENGTH = 60000L * 15; // 15 minutes
+
// Active transaction
protected final static Map<String,TransactionData> transactionData = new
HashMap<String,TransactionData>();
@@ -94,7 +95,7 @@ public class TrackerClass
if (td == null)
return;
// Only keep stuff around for an hour
- long removalCutoff = currentTime - (60000 * 60);
+ long removalCutoff = currentTime - HISTORY_LENGTH;
synchronized (history)
{
history.add(td);