com.faunos.skwish.sys.mgr
Class LiveSegManager
java.lang.Object
com.faunos.skwish.sys.mgr.LiveSegManager
public class LiveSegManager
- extends Object
- Author:
- Babak Farhang
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LiveSegManager
public LiveSegManager(List<UnitDir.Seg> liveSegments)
setMergeListener
public void setMergeListener(SegMergeListener mergeListener)
setUndertaker
public void setUndertaker(SegUndertaker undertaker)
getView
public List<Segment> getView()
hasWork
public boolean hasWork()
getWork
public Callable<LiveSegMerge> getWork()
getFixedSegments
public List<LiveSegManager.FixedSegment> getFixedSegments()
getFixedSegments
public List<LiveSegManager.FixedSegment> getFixedSegments(List<LiveSegManager.FixedSegment> out)
getBaseSegments
public List<UnitDir.Seg> getBaseSegments()
getBaseSegments
public List<UnitDir.Seg> getBaseSegments(List<UnitDir.Seg> out)
getSegmentCount
public int getSegmentCount()
getLock
public Lock getLock()
addSeg
public void addSeg(UnitDir.Seg newSeg)
updateMerged
public void updateMerged(UnitDir.Seg purgeableSeg)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException