|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SegmentInfo
Represents Information about a search segment
| Method Summary | |
|---|---|
boolean |
checkSegmentValidity(boolean logging,
String message)
Check the validity of the segment |
void |
compareTo(String message,
SegmentInfo recoverSegInfo)
Compares this segment to the supplied segment, based on the in memory state of the live segment state |
void |
debugSegment(String string)
|
void |
doFinalDelete()
Perform a final delete removing all files from the local disk |
long |
getLocalSegmentLastModified()
Get the time the segment was last modified |
long |
getLocalSegmentSize()
Get the size of the segment on disk |
String |
getName()
Get the name of the segment |
File |
getSegmentLocation()
The File that is the segment location on the local filesystem (may not exist) |
long |
getSize()
get the size of the segment. |
long |
getTotalSize()
Get the size of the segment |
long |
getVersion()
get the current version of the segment |
boolean |
isClusterSegment()
Is the segment part of the cluster or just a stray directory. |
boolean |
isCreated()
If the segment in a created state (ie not new and not deleted) |
boolean |
isDeleted()
Was the segment deleted |
boolean |
isInDb()
Is the segment in the DB |
boolean |
isLocalLock()
Does this thread have a local lock on the segment |
void |
loadSize()
calculate the total size (this is expensive) |
void |
lockLocalSegment()
Perform a lock on the segment for local operations |
void |
setCreated()
Mark the segment as created |
void |
setDeleted()
Mark the segment as deleted for later deletion |
void |
setNew()
Mark the segment as brand new |
void |
setTimeStamp(long l)
Set the timestamp on th segment |
void |
setVersion(long newVersion)
Set the version of the segment |
void |
touchSegment()
make the segment as updated |
void |
unlockLocalSegment()
Unlock the segment |
| Method Detail |
|---|
boolean isClusterSegment()
String getName()
long getVersion()
boolean isCreated()
File getSegmentLocation()
void setDeleted()
boolean isInDb()
void setVersion(long newVersion)
newVersion - boolean isDeleted()
void setTimeStamp(long l)
throws IOException
l -
IOExceptionvoid setNew()
long getLocalSegmentLastModified()
long getLocalSegmentSize()
void setCreated()
boolean checkSegmentValidity(boolean logging,
String message)
throws Exception
Exceptionlong getTotalSize()
void touchSegment()
throws IOException
IOExceptionvoid loadSize()
long getSize()
void doFinalDelete()
void lockLocalSegment()
boolean isLocalLock()
void unlockLocalSegment()
void debugSegment(String string)
string -
void compareTo(String message,
SegmentInfo recoverSegInfo)
string - recoverSegInfo -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||