| org.sakaiproject.search.index.ClusterFilesystem
All known Subclasses: org.sakaiproject.search.index.impl.JDBCClusterIndexStore,
ClusterFilesystem | public interface ClusterFilesystem (Code) | | ClusterFilesystem provides the mechanism by which the local search index is
syncronsed with the clustered file system
author: ieb |
centralIndexExists | boolean centralIndexExists()(Code) | | A low cost reliable mechanism for determining if an index exists in the cluster
|
getLastUpdate | long getLastUpdate()(Code) | | |
getLock | void getLock()(Code) | | if the thread already has a lock ignore get a lock on the index so that
it can be updated this should block untill a lock becomes free
|
getSegmentInfoList | List getSegmentInfoList()(Code) | | |
getTemporarySegment | File getTemporarySegment(boolean delete)(Code) | | get a clean temporary index space for building a detached segment
Parameters: delete - if true the temp index will be deleted first, there is only 1 tempindex per location |
isMultipleIndexers | boolean isMultipleIndexers()(Code) | | can the Cluster Filesystem cope with multiple indexers running at the
same time
|
recoverSegment | void recoverSegment(SegmentInfo segment)(Code) | | Recover a dammaged segment from the DB
Parameters: segment - |
releaseLock | void releaseLock()(Code) | | release the lock, only if there is one this should block untill a lock
becomes free
|
removeLocalSegment | void removeLocalSegment(SegmentInfo mergeSegment)(Code) | | Remove a segment from the index.
Parameters: mergeSegment - |
removeTemporarySegment | void removeTemporarySegment()(Code) | | removes the temporary segment
|
saveAllSegments | List<SegmentInfo> saveAllSegments()(Code) | | Forces all segments from this system into the DB, does not delete any
inthe db.
|
saveSegments | List<SegmentInfo> saveSegments()(Code) | | saves the segments returning a list of segments that were sent to the
central store
|
setLocation | void setLocation(String location)(Code) | | set the location information for the cluster file store
Parameters: location - |
updateSegments | List<SegmentInfo> updateSegments()(Code) | | Update all the segments in the cluster file system, retruning a list of
segment names with the current segment as the last in the list.
|
|
|