|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClusterFilesystem
ClusterFilesystem provides the mechanism by which the local search index is syncronsed with the clustered file system
| Method Summary | |
|---|---|
boolean |
centralIndexExists()
A low cost reliable mechanism for determining if an index exists in the cluster |
long |
getLastUpdate()
|
void |
getLock()
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 |
List |
getSegmentInfoList()
|
File |
getTemporarySegment(boolean delete)
get a clean temporary index space for building a detached segment |
boolean |
isMultipleIndexers()
can the Cluster Filesystem cope with multiple indexers running at the same time |
SegmentInfo |
newSegment()
create a new segment |
void |
recoverSegment(SegmentInfo segment)
Recover a dammaged segment from the DB |
void |
releaseLock()
release the lock, only if there is one this should block untill a lock becomes free |
void |
removeLocalSegment(SegmentInfo mergeSegment)
Remove a segment from the index. |
void |
removeTemporarySegment()
removes the temporary segment |
List<SegmentInfo> |
saveAllSegments()
Forces all segments from this system into the DB, does not delete any inthe db. |
List<SegmentInfo> |
saveSegments()
saves the segments returning a list of segments that were sent to the central store |
SegmentInfo |
saveTemporarySegment()
Save the temporary segment into a permanent segment |
void |
setLocation(String location)
set the location information for the cluster file store |
List<SegmentInfo> |
updateSegments()
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. |
| Method Detail |
|---|
List<SegmentInfo> updateSegments()
List<SegmentInfo> saveSegments()
List<SegmentInfo> saveAllSegments()
SegmentInfo newSegment()
throws IOException
IOExceptionvoid setLocation(String location)
location - File getTemporarySegment(boolean delete)
delete - if true the temp index will be deleted first, there is only 1 temp
index per location
void removeTemporarySegment()
void recoverSegment(SegmentInfo segment)
segment - void removeLocalSegment(SegmentInfo mergeSegment)
mergeSegment - long getLastUpdate()
List getSegmentInfoList()
void getLock()
throws IOException
IOExceptionvoid releaseLock()
boolean isMultipleIndexers()
SegmentInfo saveTemporarySegment()
throws IOException
IOExceptionboolean centralIndexExists()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||