org.sakaiproject.search.index.impl
Class ClusterSegmentsStorage

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

public class ClusterSegmentsStorage
extends Object


Constructor Summary
ClusterSegmentsStorage(SearchService searchService, String searchIndexDirectory, JDBCClusterIndexStore clusterIndexStore, boolean localStructuredStorage, boolean debug)
           
 
Method Summary
protected  File packPatch()
          pack a segment into the zip
protected  File packSegment(SegmentInfo addsi, long newVersion)
          pack a segment into the zip
protected  void unpackPatch(InputStream packetStream)
          unpack a segment from a zip
protected  void unpackSegment(SegmentInfo addsi, InputStream packetStream, long version)
          unpack a segment from a zip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterSegmentsStorage

public ClusterSegmentsStorage(SearchService searchService,
                              String searchIndexDirectory,
                              JDBCClusterIndexStore clusterIndexStore,
                              boolean localStructuredStorage,
                              boolean debug)
Method Detail

unpackSegment

protected void unpackSegment(SegmentInfo addsi,
                             InputStream packetStream,
                             long version)
                      throws IOException
unpack a segment from a zip

Parameters:
addsi -
packetStream -
version -
Throws:
IOException

unpackPatch

protected void unpackPatch(InputStream packetStream)
                    throws IOException
unpack a segment from a zip

Parameters:
addsi -
packetStream -
version -
Throws:
IOException

packSegment

protected File packSegment(SegmentInfo addsi,
                           long newVersion)
                    throws IOException
pack a segment into the zip

Parameters:
addsi -
Returns:
Throws:
IOException

packPatch

protected File packPatch()
                  throws IOException
pack a segment into the zip

Parameters:
addsi -
Returns:
Throws:
IOException


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