mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
76927: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 67096: Merged BRANCHES/DEV/aowian/plat1_solr4 to BRANCHES/DEV/PLATFORM1 BRANCHES/DEV/PLATFORM1: 65032: ACE-916: Carve out tracking from SOLR 1.4 - Initial checkin. Does not compile 65034: ACE-916: Carve out tracking from SOLR 1.4 - Another checkin. Does not compile 65036: ACE-916: Carve out tracking from SOLR 1.4 - Another checkin. Does not compile - Added InformationServer interface 65393: ACE-916: Carve out tracking from SOLR 1.4 - Another checkin. Does not compile 65963: ACE-916: Carve out tracking from SOLR 1.4 - Changed references of toDocument method to LegacySolrInformationServer 65988: ACE-916: Carve out tracking from SOLR 1.4 - Created individual classes and got CoreTracker and LegacySolrInformationServer to compile 66090: ACE-916: Carve out tracking from SOLR 1.4 - Getting closer to no red 66091: ACE-916: Carve out tracking from SOLR 1.4 - Getting closer to no red 66092: ACE-916: Carve out tracking from SOLR 1.4 - Getting closer to no red 66847: ACE-916: Carve out tracking from SOLR 1.4 - Updated eclipse .project files to include SONAR nature - Updated solr4 pom to use different port - Added adapter for solr data object in SOLR Client, therefore introducing dependency on legacy jars while keeping the main client code version agnostic - TODO: Finish making Tracker API work in client project, and explore moving trackers into client project 66863: ACE-916: Carve out tracking from SOLR 1.4 - Moved Tracker, TrackerStats, etc into Client project, and abstracted some data objects. - TODO: Deal with AlfrescoSolrDataModel 66926: ACE-916: Carve out tracking from SOLR 1.4 - Removed some classes that had already been moved - TODO: Deal with AlfrescoSolrDataModel 66957: ACE-916: Carve out tracking from SOLR 1.4 - Moved adapters into legacy solr project and removed client project's dependency on legacy jars. - TODO: Deal with AlfrescoSolrDataModel 66959: ACE-916: Carve out tracking from SOLR 1.4 - Moved AlfrescoSolrDataModel to InformationServer and exposed needed APIs - Finally, the red is gone, and the code compiles. 67027: ACE-916: Carve out tracking from SOLR 1.4 - Removed unused import 67028: ACE-916: Carve out tracking from SOLR 1.4 - Merged PLATFORM1 to aowian/plat1_solr4 67029: ACE-916: Carve out tracking from SOLR 1.4 - Merged PLATFORM1 to aowian/plat1_solr4 67076: ACE-916: Carve out tracking from SOLR 1.4 - Reverse merged from aowian/plat1_solr4 to aowian/plat1_solr4 at -67028 67090: ACE-916: Carve out tracking from SOLR 1.4 - Merged PLATFORM1 at 67076 to aowian/plat1_solr4 67093: ACE-916: Carve out tracking from SOLR 1.4 - Merged PLATFORM1 at 67085 to aowian/plat1_solr4 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@77771 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
232 lines
5.9 KiB
Java
232 lines
5.9 KiB
Java
/*
|
|
* Copyright (C) 2014 Alfresco Software Limited.
|
|
*
|
|
* This file is part of Alfresco
|
|
*
|
|
* Alfresco is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Alfresco is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
package org.alfresco.solr;
|
|
|
|
|
|
/**
|
|
* This class was moved from org.alfresco.solr.tracker.CoreTracker
|
|
*/
|
|
public class TrackerState
|
|
{
|
|
private volatile long lastChangeSetIdOnServer;
|
|
|
|
private volatile long lastChangeSetCommitTimeOnServer;
|
|
|
|
private volatile long lastIndexedChangeSetId;
|
|
|
|
private volatile long lastIndexedTxCommitTime = 0;
|
|
|
|
private volatile long lastIndexedTxId = 0;
|
|
|
|
private volatile long lastIndexedChangeSetCommitTime = 0;
|
|
|
|
private volatile long lastTxCommitTimeOnServer = 0;
|
|
|
|
private volatile long lastTxIdOnServer = 0;
|
|
|
|
private volatile long lastIndexedTxIdBeforeHoles = -1;
|
|
|
|
private volatile long lastIndexedChangeSetIdBeforeHoles = -1;
|
|
|
|
private volatile boolean running = false;
|
|
|
|
private volatile boolean checkedFirstTransactionTime = false;
|
|
|
|
private volatile boolean check = false;
|
|
|
|
private long timeToStopIndexing;
|
|
|
|
private long lastGoodChangeSetCommitTimeInIndex;
|
|
|
|
private long lastGoodTxCommitTimeInIndex ;
|
|
|
|
private long timeBeforeWhichThereCanBeNoHoles;
|
|
|
|
public long getLastChangeSetIdOnServer()
|
|
{
|
|
return lastChangeSetIdOnServer;
|
|
}
|
|
|
|
public void setLastChangeSetIdOnServer(long lastChangeSetIdOnServer)
|
|
{
|
|
this.lastChangeSetIdOnServer = lastChangeSetIdOnServer;
|
|
}
|
|
|
|
public long getLastChangeSetCommitTimeOnServer()
|
|
{
|
|
return lastChangeSetCommitTimeOnServer;
|
|
}
|
|
|
|
public void setLastChangeSetCommitTimeOnServer(long lastChangeSetCommitTimeOnServer)
|
|
{
|
|
this.lastChangeSetCommitTimeOnServer = lastChangeSetCommitTimeOnServer;
|
|
}
|
|
|
|
public long getLastIndexedChangeSetId()
|
|
{
|
|
return lastIndexedChangeSetId;
|
|
}
|
|
|
|
public void setLastIndexedChangeSetId(long lastIndexedChangeSetId)
|
|
{
|
|
this.lastIndexedChangeSetId = lastIndexedChangeSetId;
|
|
}
|
|
|
|
public long getLastIndexedTxCommitTime()
|
|
{
|
|
return lastIndexedTxCommitTime;
|
|
}
|
|
|
|
public void setLastIndexedTxCommitTime(long lastIndexedTxCommitTime)
|
|
{
|
|
this.lastIndexedTxCommitTime = lastIndexedTxCommitTime;
|
|
}
|
|
|
|
public long getLastIndexedTxId()
|
|
{
|
|
return lastIndexedTxId;
|
|
}
|
|
|
|
public void setLastIndexedTxId(long lastIndexedTxId)
|
|
{
|
|
this.lastIndexedTxId = lastIndexedTxId;
|
|
}
|
|
|
|
public long getLastIndexedChangeSetCommitTime()
|
|
{
|
|
return lastIndexedChangeSetCommitTime;
|
|
}
|
|
|
|
public void setLastIndexedChangeSetCommitTime(long lastIndexedChangeSetCommitTime)
|
|
{
|
|
this.lastIndexedChangeSetCommitTime = lastIndexedChangeSetCommitTime;
|
|
}
|
|
|
|
public long getLastTxCommitTimeOnServer()
|
|
{
|
|
return lastTxCommitTimeOnServer;
|
|
}
|
|
|
|
public void setLastTxCommitTimeOnServer(long lastTxCommitTimeOnServer)
|
|
{
|
|
this.lastTxCommitTimeOnServer = lastTxCommitTimeOnServer;
|
|
}
|
|
|
|
public long getLastTxIdOnServer()
|
|
{
|
|
return lastTxIdOnServer;
|
|
}
|
|
|
|
public void setLastTxIdOnServer(long lastTxIdOnServer)
|
|
{
|
|
this.lastTxIdOnServer = lastTxIdOnServer;
|
|
}
|
|
|
|
public long getLastIndexedTxIdBeforeHoles()
|
|
{
|
|
return lastIndexedTxIdBeforeHoles;
|
|
}
|
|
|
|
public void setLastIndexedTxIdBeforeHoles(long lastIndexedTxIdBeforeHoles)
|
|
{
|
|
this.lastIndexedTxIdBeforeHoles = lastIndexedTxIdBeforeHoles;
|
|
}
|
|
|
|
public long getLastIndexedChangeSetIdBeforeHoles()
|
|
{
|
|
return lastIndexedChangeSetIdBeforeHoles;
|
|
}
|
|
|
|
public void setLastIndexedChangeSetIdBeforeHoles(long lastIndexedChangeSetIdBeforeHoles)
|
|
{
|
|
this.lastIndexedChangeSetIdBeforeHoles = lastIndexedChangeSetIdBeforeHoles;
|
|
}
|
|
|
|
public boolean isRunning()
|
|
{
|
|
return running;
|
|
}
|
|
|
|
public void setRunning(boolean running)
|
|
{
|
|
this.running = running;
|
|
}
|
|
|
|
public boolean isCheckedFirstTransactionTime()
|
|
{
|
|
return checkedFirstTransactionTime;
|
|
}
|
|
|
|
public void setCheckedFirstTransactionTime(boolean checkedFirstTransactionTime)
|
|
{
|
|
this.checkedFirstTransactionTime = checkedFirstTransactionTime;
|
|
}
|
|
|
|
public boolean isCheck()
|
|
{
|
|
return check;
|
|
}
|
|
|
|
public void setCheck(boolean check)
|
|
{
|
|
this.check = check;
|
|
}
|
|
|
|
public long getTimeToStopIndexing()
|
|
{
|
|
return timeToStopIndexing;
|
|
}
|
|
|
|
public void setTimeToStopIndexing(long timeToStopIndexing)
|
|
{
|
|
this.timeToStopIndexing = timeToStopIndexing;
|
|
}
|
|
|
|
public long getLastGoodChangeSetCommitTimeInIndex()
|
|
{
|
|
return lastGoodChangeSetCommitTimeInIndex;
|
|
}
|
|
|
|
public void setLastGoodChangeSetCommitTimeInIndex(long lastGoodChangeSetCommitTimeInIndex)
|
|
{
|
|
this.lastGoodChangeSetCommitTimeInIndex = lastGoodChangeSetCommitTimeInIndex;
|
|
}
|
|
|
|
public long getLastGoodTxCommitTimeInIndex()
|
|
{
|
|
return lastGoodTxCommitTimeInIndex;
|
|
}
|
|
|
|
public void setLastGoodTxCommitTimeInIndex(long lastGoodTxCommitTimeInIndex)
|
|
{
|
|
this.lastGoodTxCommitTimeInIndex = lastGoodTxCommitTimeInIndex;
|
|
}
|
|
|
|
public long getTimeBeforeWhichThereCanBeNoHoles()
|
|
{
|
|
return timeBeforeWhichThereCanBeNoHoles;
|
|
}
|
|
|
|
public void setTimeBeforeWhichThereCanBeNoHoles(long timeBeforeWhichThereCanBeNoHoles)
|
|
{
|
|
this.timeBeforeWhichThereCanBeNoHoles = timeBeforeWhichThereCanBeNoHoles;
|
|
}
|
|
}
|
|
|