org.sakaiproject.search.index.impl
Class SegmentState

java.lang.Object
  extended by org.sakaiproject.search.index.impl.SegmentState

public class SegmentState
extends Object

Author:
ieb

Nested Class Summary
 class SegmentState.FileRecord
           
 
Constructor Summary
SegmentState(SegmentInfo segInfo, File timestampFile)
           
 
Method Summary
 void analyze(SegmentInfo segInfo)
           
 boolean checkValidity(boolean logging, String message, SegmentState storedSegmentState)
          Check the validity of this segment against the stored segment
 long getTimeStamp()
           
 void save(File checksumFile)
           
 void setTimeStamp(long timeStamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentState

public SegmentState(SegmentInfo segInfo,
                    File timestampFile)
             throws IOException
Parameters:
timestampFile -
Throws:
IOException
IOException
Method Detail

save

public void save(File checksumFile)
          throws IOException
Parameters:
timestampFile -
Throws:
IOException

analyze

public void analyze(SegmentInfo segInfo)
Parameters:
segInfo -

getTimeStamp

public long getTimeStamp()
Returns:
the timeStamp

setTimeStamp

public void setTimeStamp(long timeStamp)
Parameters:
timeStamp - the timeStamp to set

checkValidity

public boolean checkValidity(boolean logging,
                             String message,
                             SegmentState storedSegmentState)
Check the validity of this segment against the stored segment

Parameters:
message -
logging -
storedSegmentState -


Copyright © 2003-2012 Sakai Project. All Rights Reserved.